|
Eclipse JDT Release 3.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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. | |
| JavaTextTools(IPreferenceStore store,
boolean autoDisposeOnDisplayDispose)
Creates a new Java text tools collection. | |
| JavaTextTools(IPreferenceStore store,
Preferences coreStore)
Creates a new Java text tools collection. | |
| JavaTextTools(IPreferenceStore store,
Preferences coreStore,
boolean autoDisposeOnDisplayDispose)
Creates a new Java text tools collection. | |
| Method Summary | |
| protected void | adaptToPreferenceChange(PropertyChangeEvent event)
Deprecated. As of 3.0, no replacement |
| boolean | affectsBehavior(PropertyChangeEvent event)
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration.affectsTextPresentation(PropertyChangeEvent) |
| 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()
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration.getCodeScanner() |
| IColorManager | getColorManager()
Returns the color manager which is used to manage any Java-specific colors needed for such things like syntax highlighting. |
| protected Preferences | getCorePreferenceStore()
Returns this text tool's core preference store. |
| RuleBasedScanner | getJavaDocScanner()
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration.getJavaDocScanner() |
| RuleBasedScanner | getMultilineCommentScanner()
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration.getMultilineCommentScanner() |
| String[] | getPartitionManagingPositionCategories()
Deprecated. As of 3.0, replaced by TextUtilities.computePartitionManagingCategories(IDocument) |
| 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. |
| protected IPreferenceStore | getPreferenceStore()
Returns this text tool's preference store. |
| RuleBasedScanner | getSinglelineCommentScanner()
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration.getSinglelineCommentScanner() |
| RuleBasedScanner | getStringScanner()
Deprecated. As of 3.0, replaced by JavaSourceViewerConfiguration.getStringScanner() |
| void | setupJavaDocumentPartitioner(IDocument document)
Sets up the Java document partitioner for the given document for the default partitioning. |
| void | setupJavaDocumentPartitioner(IDocument document,
String partitioning)
Sets up the Java document partitioner for the given document for the given partitioning. |
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JavaTextTools(IPreferenceStore store)
public JavaTextTools(IPreferenceStore store,
boolean autoDisposeOnDisplayDispose)
public JavaTextTools(IPreferenceStore store,
Preferences coreStore)
public JavaTextTools(IPreferenceStore store,
Preferences coreStore,
boolean autoDisposeOnDisplayDispose)
| Method Detail |
public void dispose()
public IColorManager getColorManager()
public RuleBasedScanner getCodeScanner()
public RuleBasedScanner getMultilineCommentScanner()
public RuleBasedScanner getSinglelineCommentScanner()
public RuleBasedScanner getStringScanner()
public RuleBasedScanner getJavaDocScanner()
Note that the start sequence "/**" and the corresponding end sequence are part of the Javadoc comment.
public IPartitionTokenScanner getPartitionScanner()
public IDocumentPartitioner createDocumentPartitioner()
public String[] getPartitionManagingPositionCategories()
If the partitioners don't use document position categories, the returned result is null.
public boolean affectsBehavior(PropertyChangeEvent event)
protected void adaptToPreferenceChange(PropertyChangeEvent event)
public void setupJavaDocumentPartitioner(IDocument document)
public void setupJavaDocumentPartitioner(IDocument document,
String partitioning)
protected IPreferenceStore getPreferenceStore()
protected Preferences getCorePreferenceStore()
|
Eclipse JDT Release 3.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||