Package org.eclipse.ui

Examples of org.eclipse.ui.IPartService


    if (monitoredPart != null) {
      uninstallSelectionListener(monitoredPart);
    }
    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IPartService service = window.getPartService();
    service.removePartListener(this);

    factOrFiction.Activator.getDefault().getPluginPreferences().removePropertyChangeListener(this);

    super.dispose();
  }
View Full Code Here


     * @param site the part site
     */
    public FindReplaceDialogStub(IWorkbenchPartSite site) {
      this(site.getShell());
      fWindow= site.getWorkbenchWindow();
      IPartService service= fWindow.getPartService();
      service.addPartListener(this);
      partActivated(service.getActivePart());
    }
View Full Code Here

    }

    public void hookWindow(IWorkbenchWindow window) {
      window.addPageListener(this);
      window.addPerspectiveListener(this);
      IPartService partService = (IPartService) window
          .getService(IPartService.class);
      partService.addPartListener(this);
      windowChanged(window);
    }
View Full Code Here

        return part != null && part.equals(this);
    }

    private IWorkbenchPart getActivePart() {
        IWorkbenchWindow window = getSite().getWorkbenchWindow();
        IPartService service = window.getPartService();
        IWorkbenchPart part = service.getActivePart();
        return part;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IPartService

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.