|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jdt.ui.text.JavaTextTools
Tools required to configure a Java text viewer. The color manager and all scanner exist only one time, i.e. the same instances are returned to all clients. Thus, clients share those tools.
This class may be instantiated; it is not intended to be subclassed.
Constructor Summary | |
JavaTextTools(IPreferenceStore store)
Creates a new Java text tools collection. |
Method Summary | |
protected void |
adaptToPreferenceChange(PropertyChangeEvent event)
Adapts the behavior of the contained components to the change encoded in the given event. |
boolean |
affectsBehavior(PropertyChangeEvent event)
Determines whether the preference change encoded by the given event changes the behavior of one its contained components. |
IDocumentPartitioner |
createDocumentPartitioner()
Factory method for creating a Java-specific document partitioner using this object's partitions scanner. |
void |
dispose()
Disposes all the individual tools of this tools collection. |
RuleBasedScanner |
getCodeScanner()
Returns a scanner which is configured to scan Java source code. |
IColorManager |
getColorManager()
Returns the color manager which is used to manage any Java-specific colors needed for such things like syntax highlighting. |
RuleBasedScanner |
getJavaDocScanner()
Returns a scanner which is configured to scan JavaDoc compliant comments. |
RuleBasedScanner |
getMultilineCommentScanner()
Returns a scanner which is configured to scan Java multiline comments. |
String[] |
getPartitionManagingPositionCategories()
Returns the names of the document position categories used by the document partitioners created by this object to manage their partition information. |
IPartitionTokenScanner |
getPartitionScanner()
Returns a scanner which is configured to scan Java-specific partitions, which are multi-line comments, JavaDoc comments, and regular Java source code. |
RuleBasedScanner |
getSinglelineCommentScanner()
Returns a scanner which is configured to scan Java singleline comments. |
RuleBasedScanner |
getStringScanner()
Returns a scanner which is configured to scan Java strings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JavaTextTools(IPreferenceStore store)
store
- the preference store to initialize the text tools. The text tool
instance installs a listener on the passed preference store to adapt itself to
changes in the preference store. In general PreferenceConstants.
getPreferenceStore()
shoould be used to initialize the text tools.PreferenceConstants.getPreferenceStore()
Method Detail |
public void dispose()
public IColorManager getColorManager()
public RuleBasedScanner getCodeScanner()
public RuleBasedScanner getMultilineCommentScanner()
public RuleBasedScanner getSinglelineCommentScanner()
public RuleBasedScanner getStringScanner()
public RuleBasedScanner getJavaDocScanner()
public IPartitionTokenScanner getPartitionScanner()
public IDocumentPartitioner createDocumentPartitioner()
public String[] getPartitionManagingPositionCategories()
null
.
null
if there is nonepublic boolean affectsBehavior(PropertyChangeEvent event)
event
- the event to be investigated
true
if event causes a behavioral changeprotected void adaptToPreferenceChange(PropertyChangeEvent event)
event
- the event to which to adapt
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |