/* * Created on May 14, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ package CDBuilder.couplingSyntaxEditor; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.editors.text.TextEditor; /** * @author Sherwin Sim and Lucie Zhao * * @version 1 May - August 2003 * * This class is the main implementation for the CD++ editor * This editor does syntax colouring for .ma files */ public class cseEditor extends TextEditor { /** the colour manager responsible for syntax colours */ private ColorManager colorManager; /** initializes the colour manager, the configuration and the document * provider */ public cseEditor() { super(); colorManager = new ColorManager(); setSourceViewerConfiguration(new cseConfiguration(colorManager)); setDocumentProvider(new cseDocumentProvider()); } /** * @see IWorkbenchPart#dispose() */ public void dispose() { colorManager.dispose(); super.dispose(); } }