Package org.eclipse.m2m.atl.adt.ui.text
Class AtlTextTools
java.lang.Object
org.eclipse.m2m.atl.adt.ui.text.AtlTextTools
A text tools allows to fPreferenceeStore one instance of all tools used in the plug-in. Thus every classes
should use the same tool.
-
Constructor Summary
ConstructorsConstructorDescriptionAtlTextTools
(org.eclipse.jface.preference.IPreferenceStore preferenceStore) Creates a new instance of the ATL text tools. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes all the individual tools of this tools collection.Gets the highlight syntaxing coloration motor.Gets the associated color manager.org.eclipse.jface.preference.IPreferenceStore
Gets the preference fPreferenceeStore used by the text tools.void
setCodeScanner
(AtlCodeScanner codeScanner) Sets the new code scanner to use.void
setNewPreferenceStore
(org.eclipse.jface.preference.IPreferenceStore newPreferenceStore) Sets the new preference fPreferenceeStore to use.
-
Constructor Details
-
AtlTextTools
public AtlTextTools(org.eclipse.jface.preference.IPreferenceStore preferenceStore) Creates a new instance of the ATL text tools. The only information we need is the fPreferenceeStore where user preferences are.- Parameters:
preferenceStore
- the associated preference fPreferenceeStore
-
-
Method Details
-
dispose
public void dispose()Disposes all the individual tools of this tools collection. -
getCodeScanner
Gets the highlight syntaxing coloration motor.- Returns:
- the code scanner
-
getColorManager
Gets the associated color manager.- Returns:
- the color manager
-
getPreferenceStore
public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()Gets the preference fPreferenceeStore used by the text tools.- Returns:
- the preference fPreferenceeStore
-
setCodeScanner
Sets the new code scanner to use.- Parameters:
codeScanner
- the new code scanner to be used
-
setNewPreferenceStore
public void setNewPreferenceStore(org.eclipse.jface.preference.IPreferenceStore newPreferenceStore) Sets the new preference fPreferenceeStore to use.- Parameters:
newPreferenceStore
- the new preference fPreferenceeStore to be used
-