Examples of ITextEditorExtension2


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

Examples of org.eclipse.ui.texteditor.ITextEditorExtension2

    //--------------------------------------------------------------------- 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
Copyright © 2018 www.massapi.com. 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.