Package org.eclipse.ui

Examples of org.eclipse.ui.IEditorPart.addPropertyListener()


    lastActivePage = currentPage;
    lastPerspective = persp;
    lastInput = input;

    if (activeEditor != null) {
      activeEditor.addPropertyListener(editorPropertyListener);
    }

    recomputeTitle();
  }
View Full Code Here


            @Override
            public void run() {
              try {
                final IEditorPart editor = page.openEditor(
                    editorInput, descFinal.getId());
                editor.addPropertyListener(new IPropertyListener() {
                  public void propertyChanged(Object source,
                      int propId) {
                    if (IEditorPart.PROP_DIRTY == propId) {
                      if (editor instanceof AbstractDecoratedTextEditor && (!editor.isDirty())) {
                        System.out.println("Save");
View Full Code Here

        lastPerspective = persp;
        lastInput = input;

        if ( activeEditor != null )
        {
            activeEditor.addPropertyListener( editorPropertyListener );
        }

        recomputeTitle();
    }
View Full Code Here

        lastPerspective = persp;
        lastInput = input;

        if ( activeEditor != null )
        {
            activeEditor.addPropertyListener( editorPropertyListener );
        }

        recomputeTitle();
    }
}
View Full Code Here

    embeddedEditors.add(editor);

    Composite composite = new Composite(editorComposite, SWT.NONE);
    composite.setLayout(new FillLayout());
    editor.createPartControl(composite);
    editor.addPropertyListener(getPropertyListener());

    // This is the fundamental part of our implementation.
    // Editors are activated when we get an Activate
    // event from the editor's composite.
    associate(editor, composite);
View Full Code Here

        lastActivePage = currentPage;
        lastPerspective = persp;
        lastInput = input;
       
        if (activeEditor != null) {
            activeEditor.addPropertyListener(editorPropertyListener);
        }

        recomputeTitle();
    }
    private void recomputeTitle() {
View Full Code Here

    try {
      DocItem docRoot = null;

      IEditorPart iep = getSite().getPage().getActiveEditor();

      iep.addPropertyListener(this);
      getSite().getPage().addPartListener(this);

      ITextEditor ite = (ITextEditor) iep;
      ICFDocument icfd = null;
      CFDocument cfd = null;
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.