Package org.eclipse.ui

Examples of org.eclipse.ui.IPartListener2


    /* Register Listeners */
    registerListeners();
  }

  private void registerListeners() {
    fPartListener = new IPartListener2() {

      /* Mark *new* News as *unread* ot *read* */
      public void partHidden(IWorkbenchPartReference partRef) {
        if (FeedView.this.equals(partRef.getPart(false)) && fInput.getMark() instanceof IBookMark)
          if (System.currentTimeMillis() - fOpenTime > HANDLE_NEWS_SEEN_DELAY)
View Full Code Here


      }
    };
    DynamicDAO.addEntityListener(IFolder.class, fFolderListener);

    /* Listen for Editors activated for the linking Feature */
    fPartListener = new IPartListener2() {
      public void partActivated(IWorkbenchPartReference ref) {
        if (ref.getPart(true) instanceof IEditorPart) {

          /* Workaround for Bug 573 */
          JobRunner.runInUIThread(50, fViewer.getTree(), new Runnable() {
View Full Code Here

    /* Register Listeners */
    registerListeners();
  }

  private void registerListeners() {
    fPartListener = new IPartListener2() {

      public void partHidden(IWorkbenchPartReference partRef) {}

      /* Hook into Global Actions for this Editor */
      public void partBroughtToTop(IWorkbenchPartReference partRef) {
View Full Code Here

    /* Register Listeners */
    registerListeners();
  }

  private void registerListeners() {
    fPartListener = new IPartListener2() {

      /* Mark *new* News as *unread* */
      public void partHidden(IWorkbenchPartReference partRef) {
        if (FeedView.this.equals(partRef.getPart(false)) && fInput.getMark() instanceof IBookMark)
          if (System.currentTimeMillis() - fOpenTime > HANDLE_NEWS_SEEN_DELAY)
View Full Code Here

      }
    };
    DynamicDAO.addEntityListener(IFolder.class, fFolderListener);

    /* Listen for Editors activated for the linking Feature */
    fPartListener = new IPartListener2() {
      public void partActivated(IWorkbenchPartReference ref) {
        if (ref.getPart(true) instanceof IEditorPart)
          editorActivated(fViewSite.getPage().getActiveEditor());
      }

View Full Code Here

      }
    };
    DynamicDAO.addEntityListener(IFolder.class, fFolderListener);

    /* Listen for Editors activated for the linking Feature */
    fPartListener = new IPartListener2() {
      public void partActivated(IWorkbenchPartReference ref) {
        if (ref.getPart(true) instanceof IEditorPart) {

          /* Workaround for Bug 573 */
          JobRunner.runInUIThread(50, fViewer.getTree(), new Runnable() {
View Full Code Here

  private boolean justOpened() {
    return System.currentTimeMillis() - fOpenTime < HANDLE_NEWS_SEEN_BLOCK_DELAY;
  }

  private void registerListeners() {
    fPartListener = new IPartListener2() {

      /* Mark *new* News as *unread* or *read* */
      public void partHidden(IWorkbenchPartReference partRef) {

        /* Return early if event is too close after opening the feed */
 
View Full Code Here

    /**
     * Initializes the PartListener.
     */
    private void initPartListener()
    {
        view.getSite().getPage().addPartListener( new IPartListener2()
        {
            /**
              * This implementation deactivates the shortcuts when the part is deactivated.
              */
            public void partDeactivated( IWorkbenchPartReference partRef )
View Full Code Here

          IPerspectiveDescriptor perspective) {
        updateTitle(false);
      }
    });
    configurer.getWindow().getPartService().addPartListener(
        new IPartListener2() {
          public void partActivated(IWorkbenchPartReference ref) {
            if (ref instanceof IEditorReference) {
              updateTitle(false);
            }
          }
View Full Code Here

    /**
     * Adds a listener to {@link #page} that deactivates the view when part is hidden and reactivates it when it is made
     * visible.  This is to prevent a bunch of featurestore accesses when view is not visible.
     */
    private void addPageListener( ) {
        activePartListener = new IPartListener2(){
            public void partActivated( IWorkbenchPartReference partRef ) {
            }
            public void partBroughtToTop( IWorkbenchPartReference partRef ) {
            }
            public void partClosed( IWorkbenchPartReference partRef ) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IPartListener2

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.