Examples of handleLifecycleEvent()


Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

   
    if (input == null) {
      close(isSaveOnCloseNeeded());
     
      if (fSavable != null) {
        listener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,  SaveablesLifecycleEvent.POST_CLOSE,  getSaveables(), false));
        fSavable.disconnectEditor();
        fSavable= null;
      }
     
    } else {
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

      }
     
    } else {
      boolean mustSendLifeCycleEvent= false;
      if (fSavable != null) {
        listener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,  SaveablesLifecycleEvent.POST_CLOSE,  getSaveables(), false));
        fSavable.disconnectEditor();
        fSavable= null;
        mustSendLifeCycleEvent= true;
      }
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

      if (ruler instanceof CompositeRuler)
        updateContributedRulerColumns((CompositeRuler) ruler);
     
      // Send savable life-cycle if needed.
      if (mustSendLifeCycleEvent && listener != null)
        listener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,  SaveablesLifecycleEvent.POST_OPEN, getSaveables(), false));
     
    }
   
  }
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

    if (input == null) {
      close(isSaveOnCloseNeeded());

      if (fSavable != null) {
        listener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,  SaveablesLifecycleEvent.POST_CLOSE,  getSaveables(), false));
        fSavable.disconnectEditor();
        fSavable= null;
      }

    } else {
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

      }

    } else {
      boolean mustSendLifeCycleEvent= false;
      if (fSavable != null) {
        listener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,  SaveablesLifecycleEvent.POST_CLOSE,  getSaveables(), false));
        fSavable.disconnectEditor();
        fSavable= null;
        mustSendLifeCycleEvent= true;
      }
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

      if (ruler instanceof CompositeRuler)
        updateContributedRulerColumns((CompositeRuler) ruler);

      // Send savable life-cycle if needed.
      if (mustSendLifeCycleEvent && listener != null)
        listener.handleLifecycleEvent(new SaveablesLifecycleEvent(this,  SaveablesLifecycleEvent.POST_OPEN, getSaveables(), false));

    }

  }
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

      IWorkbenchPart part = container.getWorkbenchPart();
      if (part != null) {
        ISaveablesLifecycleListener lifecycleListener = getSaveablesLifecycleListener(part);
        // Remove this saveable from the lifecycle listener
        if (!init)
          lifecycleListener
              .handleLifecycleEvent(new SaveablesLifecycleEvent(
                  part, SaveablesLifecycleEvent.POST_CLOSE,
                  new Saveable[] { this }, false));
        // Now fix the hashing so it uses the connected document
        initializeHashing();
View Full Code Here

Examples of org.eclipse.ui.ISaveablesLifecycleListener.handleLifecycleEvent()

                  part, SaveablesLifecycleEvent.POST_CLOSE,
                  new Saveable[] { this }, false));
        // Now fix the hashing so it uses the connected document
        initializeHashing();
        // Finally, add this saveable back to the listener
        lifecycleListener
            .handleLifecycleEvent(new SaveablesLifecycleEvent(part,
                SaveablesLifecycleEvent.POST_OPEN,
                new Saveable[] { this }, false));
      }
    }
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.