Package org.eclipse.wst.xsl.ui.internal.style
public class LineStyleProviderForXSL extends AbstractLineStyleProviderThis implements a Syntax Line Style Provider for XSL. It leverages some information from the XML Syntax Coloring, but adds specific coloring for XSL specific elements and attributes.
Field Summary | |
protected Highlighter | highlighter |
protected ReconcilerHighlighter | recHighlighter |
protected IStructuredDocument | structuredDocument |
Constructor Summary |
LineStyleProviderForXSL() |
Method Summary | |
protected void | addTextAttribute(java.lang.String colorKey) Looks up the colorKey in the preference store and adds the style information to list of TextAttributes |
protected void | commonInit(IStructuredDocument document
,
Highlighter highlighter) |
protected TextAttribute | createTextAttribute(RGB foreground
,
RGB background
,
boolean bold) |
protected TextAttribute | createTextAttribute(RGB foreground
,
RGB background
,
int style) |
protected TextAttribute | getAttributeFor(ITextRegionCollection collection
,
ITextRegion textRegion) |
protected TextAttribute | getAttributeFor(ITextRegion region) |
protected IPreferenceStore | getColorPreferences() |
protected IStructuredDocument | getDocument() |
protected Highlighter | getHighlighter() |
protected void | handlePropertyChange(PropertyChangeEvent event) |
public void | init(IStructuredDocument document
,
Highlighter highlighter) |
public void | init(IStructuredDocument structuredDocument
,
ISourceViewer sourceViewer) |
public void | init(IStructuredDocument structuredDocument
,
ReconcilerHighlighter highlighter) |
public boolean | isInitialized() Returns the initialized. |
protected void | loadColors() |
public boolean | prepareRegions(ITypedRegion typedRegion
,
int lineRequestStart
,
int lineRequestLength
,
java.util.Collection holdResults) |
protected boolean | prepareTextRegion(ITextRegionCollection blockedRegion
,
int partitionStartOffset
,
int partitionLength
,
java.util.Collection holdResults) |
protected boolean | prepareTextRegions(IStructuredDocumentRegion structuredDocumentRegion
,
int partitionStartOffset
,
int partitionLength
,
java.util.Collection holdResults) |
protected void | registerPreferenceManager() |
public void | release() |
protected void | unRegisterPreferenceManager() |
Field Detail |
protected Highlighter highlighter
protected ReconcilerHighlighter recHighlighter
protected IStructuredDocument structuredDocument
Constructor Detail |
public LineStyleProviderForXSL()
Methods Detail |
protected void addTextAttribute(java.lang.String colorKey)
Looks up the colorKey in the preference store and adds the style information to list of TextAttributes
colorKey
protected void commonInit(IStructuredDocument document
,
Highlighter highlighter)
document
highlighter
protected TextAttribute createTextAttribute(RGB foreground
,
RGB background
,
boolean bold)
foreground
background
bold
TextAttribute
protected TextAttribute createTextAttribute(RGB foreground
,
RGB background
,
int style)
foreground
background
style
TextAttribute
protected TextAttribute getAttributeFor(ITextRegionCollection collection
,
ITextRegion textRegion)
collection
textRegion
TextAttribute
protected TextAttribute getAttributeFor(ITextRegion region)
region
TextAttribute
protected IPreferenceStore getColorPreferences()
IPreferenceStore
protected IStructuredDocument getDocument()
IStructuredDocument
protected Highlighter getHighlighter()
Highlighter
protected void handlePropertyChange(PropertyChangeEvent event)
event
public void init(IStructuredDocument document
,
Highlighter highlighter)
document
highlighter
public void init(IStructuredDocument structuredDocument
,
ISourceViewer sourceViewer)
structuredDocument
sourceViewer
public void init(IStructuredDocument structuredDocument
,
ReconcilerHighlighter highlighter)
structuredDocument
highlighter
public boolean isInitialized()
Returns the initialized.
boolean
- boolean
protected void loadColors()
public boolean prepareRegions(ITypedRegion typedRegion
,
int lineRequestStart
,
int lineRequestLength
,
java.util.Collection holdResults)
typedRegion
lineRequestStart
lineRequestLength
holdResults
boolean
protected boolean prepareTextRegion(ITextRegionCollection blockedRegion
,
int partitionStartOffset
,
int partitionLength
,
java.util.Collection holdResults)
blockedRegion
partitionStartOffset
partitionLength
holdResults
boolean
protected boolean prepareTextRegions(IStructuredDocumentRegion structuredDocumentRegion
,
int partitionStartOffset
,
int partitionLength
,
java.util.Collection holdResults)
structuredDocumentRegion
partitionStartOffset
partitionLength
holdResults
boolean
protected void registerPreferenceManager()
public void release()
protected void unRegisterPreferenceManager()