Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.ITextEditorExtension2


      return false;
   
    boolean modifiable;
    ITextEditor editor= getEditor();
    if (editor instanceof ITextEditorExtension2) {
      ITextEditorExtension2 ext= (ITextEditorExtension2) editor;
      modifiable= ext.isEditorInputModifiable();
    } else if (editor instanceof ITextEditorExtension) {
      ITextEditorExtension ext= (ITextEditorExtension) editor;
      modifiable= ext.isEditorInputReadOnly();
    } else if (editor != null) {
      modifiable= editor.isEditable();
    } else {
      modifiable= true;
    }
View Full Code Here


    //--------------------------------------------------------------------- END: actions that are activated after Ctrl+2

    public static void checkValidateState(IEditorPart iEditorPart) {
        if (iEditorPart instanceof ITextEditorExtension2) {
            ITextEditorExtension2 editor = (ITextEditorExtension2) iEditorPart;
            editor.validateEditorInputState();

        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.ITextEditorExtension2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.