Package org.eclipse.ui

Examples of org.eclipse.ui.IPartListener


        update(CoolBarItem.ARCHIVE, selection, part, false);
      }
    };

    /* Part Listener across the Workbench */
    final IPartListener partListener = new IPartListener() {
      public void partOpened(IWorkbenchPart part) {
        if (part instanceof IEditorPart) {
          update(CoolBarItem.CLOSE, null, part, false);
          update(CoolBarItem.CLOSE_OTHERS, null, part, false);
          update(CoolBarItem.CLOSE_ALL, null, part, false);
View Full Code Here


        if (part != null) {
          this.initPart(part);
        }
      }
    }
    p.addPartListener(new IPartListener() {

      public void partActivated(IWorkbenchPart part) {

      }
View Full Code Here

  public MultiPageZoomComboContributionItem(IPartService partService, String[] initStrings) {
    super(GEFActionConstants.ZOOM_TOOLBAR_WIDGET);
    this.initStrings = initStrings;
    service = partService;
    Assert.isNotNull(partService);
    partService.addPartListener(partListener = new IPartListener() {
      public void partActivated(IWorkbenchPart part) {
        setZoomManager((ZoomManager) part.getAdapter(ZoomManager.class));
      }

      public void partBroughtToTop(IWorkbenchPart p) {
View Full Code Here

  @Override
  public void init(IViewSite site) throws PartInitException {
    super.init(site);

    listener = new IPartListener() {

      @Override
      public void partOpened(IWorkbenchPart part) {
        // TODO Auto-generated method stub
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IPartListener

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.