Package org.eclipse.m2m.atl.adt.ui.text
Class AtlTextTools
- java.lang.Object
-
- org.eclipse.m2m.atl.adt.ui.text.AtlTextTools
-
public class AtlTextTools extends java.lang.ObjectA 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
Constructors Constructor Description AtlTextTools(org.eclipse.jface.preference.IPreferenceStore preferenceStore)Creates a new instance of the ATL text tools.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes all the individual tools of this tools collection.AtlCodeScannergetCodeScanner()Gets the highlight syntaxing coloration motor.AtlColorManagergetColorManager()Gets the associated color manager.org.eclipse.jface.preference.IPreferenceStoregetPreferenceStore()Gets the preference fPreferenceeStore used by the text tools.voidsetCodeScanner(AtlCodeScanner codeScanner)Sets the new code scanner to use.voidsetNewPreferenceStore(org.eclipse.jface.preference.IPreferenceStore newPreferenceStore)Sets the new preference fPreferenceeStore to use.
-
-
-
Constructor Detail
-
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 Detail
-
dispose
public void dispose()
Disposes all the individual tools of this tools collection.
-
getCodeScanner
public AtlCodeScanner getCodeScanner()
Gets the highlight syntaxing coloration motor.- Returns:
- the code scanner
-
getColorManager
public AtlColorManager 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
public void setCodeScanner(AtlCodeScanner codeScanner)
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
-
-