Search in sources :

Example 6 with DefaultEncodingSupport

use of org.eclipse.ui.editors.text.DefaultEncodingSupport in project webtools.sourceediting by eclipse.

the class EncodingSupport method initialize.

/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.ui.editors.text.DefaultEncodingSupport#initialize(org.eclipse
	 * .ui.texteditor.StatusTextEditor)
	 */
public void initialize(StatusTextEditor textEditor) {
    super.initialize(textEditor);
    fStatusTextEditor = textEditor;
    IEncodingSupport encodingSupportDelegate = getEncodingSupportDelegate();
    if (encodingSupportDelegate instanceof DefaultEncodingSupport) {
        ((DefaultEncodingSupport) encodingSupportDelegate).initialize(textEditor);
    }
}
Also used : DefaultEncodingSupport(org.eclipse.ui.editors.text.DefaultEncodingSupport) IEncodingSupport(org.eclipse.ui.editors.text.IEncodingSupport)

Aggregations

DefaultEncodingSupport (org.eclipse.ui.editors.text.DefaultEncodingSupport)6 IEncodingSupport (org.eclipse.ui.editors.text.IEncodingSupport)5 CoreException (org.eclipse.core.runtime.CoreException)3 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)3 Accessor (org.eclipse.text.tests.Accessor)3 IWorkbench (org.eclipse.ui.IWorkbench)3 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)3 PartInitException (org.eclipse.ui.PartInitException)3 TextEditor (org.eclipse.ui.editors.text.TextEditor)3 StatusTextEditor (org.eclipse.ui.texteditor.StatusTextEditor)3 Test (org.junit.Test)3 Composite (org.eclipse.swt.widgets.Composite)2 ITextFileBuffer (org.eclipse.core.filebuffers.ITextFileBuffer)1 StyledText (org.eclipse.swt.custom.StyledText)1 Color (org.eclipse.swt.graphics.Color)1 GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Control (org.eclipse.swt.widgets.Control)1 Display (org.eclipse.swt.widgets.Display)1 Shell (org.eclipse.swt.widgets.Shell)1