Package org.eclipse.ui

Examples of org.eclipse.ui.IPartService.addPartListener()


    }

    private void createListeners()
    {
        IPartService ps = (IPartService) getViewSite().getService(IPartService.class);
        ps.addPartListener(new EditorViewPartListener(this));
        viewer.getGraphControl().addControlListener(new ControlAdapter()
        {
            @Override
            public void controlResized(ControlEvent e)
            {
View Full Code Here


     */
    public FindReplaceDialogStub(IWorkbenchPartSite site) {
      this(site.getShell());
      fWindow= site.getWorkbenchWindow();
      IPartService service= fWindow.getPartService();
      service.addPartListener(this);
      partActivated(service.getActivePart());
    }

    /**
     * Creates a new find/replace dialog accessor anchored at the given shell.
View Full Code Here

    });
    createManaCurveChart();
   
    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IPartService service = window.getPartService();
    service.addPartListener(this);

    IWorkbenchPartReference aref = service.getActivePartReference();
    if(aref != null) {
      IWorkbenchPart apart = aref.getPart(false);
      if (apart instanceof EditorPart) {
View Full Code Here

    tooltip.setPopupDelay(2500);
    tooltip.activate();

    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IPartService service = window.getPartService();
    service.addPartListener(this);

    IWorkbenchPartReference aref = service.getActivePartReference();
    if (aref != null) {
      IWorkbenchPart apart = aref.getPart(false);
      installSelectionListener(apart);
View Full Code Here

     */
    public FindReplaceDialogStub(IWorkbenchPartSite site) {
      this(site.getShell());
      fWindow= site.getWorkbenchWindow();
      IPartService service= fWindow.getPartService();
      service.addPartListener(this);
      partActivated(service.getActivePart());
    }

    /**
     * Creates a new find/replace dialog accessor anchored at the given shell.
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);
    }

    @Override
    public void partOpened(IWorkbenchPartReference partRef) {
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.