Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IContributionManager.update()


        if (item instanceof ContributionItem) {
          item.setVisible(set);
          IContributionManager manager = ((ContributionItem) item)
              .getParent();
          manager.markDirty();
          manager.update(false);
          if (!coolBarManager.isDirty()) {
            coolBarManager.markDirty();
          }
          item.update(ICoolBarManager.SIZE);
        }
View Full Code Here


  private void updateManagers() {
    Object[] managers = managersAwaitingUpdates.toArray();
    managersAwaitingUpdates.clear();
    for (int i = 0; i < managers.length; i++) {
      IContributionManager mgr = (IContributionManager) managers[i];
      mgr.update(true);
      if (mgr instanceof ToolBarManager) {
        if (!updateCoolBar((ToolBarManager) mgr)) {
          updateTrim((ToolBarManager) mgr);
        }
      } else if (mgr instanceof MenuManager) {
View Full Code Here

          updateTrim((ToolBarManager) mgr);
        }
      } else if (mgr instanceof MenuManager) {
        IContributionManager parent = ((MenuManager) mgr).getParent();
        if (parent != null) {
          parent.update(true);
        }
      }
    }
  }
View Full Code Here

                StatusBarButton label = (StatusBarButton) bar.find(StatusBarButton.CRS_ITEM_ID);
                if (label == null) {
                    label = new StatusBarButton(StatusBarButton.CRS_ITEM_ID, full);
                    bar.appendToGroup(StatusLineManager.MIDDLE_GROUP, label);
                    label.setVisible(true);
                    bar.update(true);
                    return;
                }
                label.setText(full);
            }
        });
View Full Code Here

        ScaleRatioLabel label = (ScaleRatioLabel) bar.find(ScaleRatioLabel.SCALE_ITEM_ID);
        if (label == null) {
            label = new ScaleRatioLabel(this);
            bar.appendToGroup(StatusLineManager.MIDDLE_GROUP, label);
            label.setVisible(true);
            bar.update(true);
        }
        label.setViewportModel(getMap().getViewportModel());
    }

    private boolean isSame( String crs ) {
View Full Code Here

                   
//                    StatusBarToolOptionsPage label2 = new StatusBarToolOptionsPage("An Id",editor);
//                    bar.appendToGroup(StatusLineManager.BEGIN_GROUP, label2);
//                    label2.setVisible(true);
                   
                    bar.update(true);
                    return;
                }
                label.setText(full);
            }
        });
View Full Code Here

        ScaleRatioLabel label = (ScaleRatioLabel) bar.find(ScaleRatioLabel.SCALE_ITEM_ID);
        if (label == null) {
            label = new ScaleRatioLabel(this);
            bar.appendToGroup(StatusLineManager.MIDDLE_GROUP, label);
            label.setVisible(true);
            bar.update(true);
        }
        label.setViewportModel(getMap().getViewportModel());
    }

    private boolean isSame( String crs ) {
View Full Code Here

        IContributionItem[] toolbarItems = getConfiguration().getToolbarContributions(getTreeViewer());
        if (toolbarItems != null && toolbarItems.length > 0) {
          for (int i = 0; i < toolbarItems.length; i++) {
            toolbar.remove(toolbarItems[i]);
          }
          toolbar.update(false);
        }
      }

      IContributionManager menubar = getSite().getActionBars().getMenuManager();
      if (menubar != null) {
View Full Code Here

        if (menuItems != null && menuItems.length > 0) {
          for (int i = 0; i < menuItems.length; i++) {
            menubar.remove(menuItems[i]);
          }
          menubar.remove(IWorkbenchActionConstants.MB_ADDITIONS);
          menubar.update(false);
        }
      }
      // clear the DnD listeners and transfer types
      if (fDragAdapter != null && !fDragAdapter.isEmpty() && fDragSource != null && !fDragSource.isDisposed() && fDragSource.getTransfer().length > 0) {
        if (fActiveDragListeners != null) {
View Full Code Here

        IContributionItem[] toolbarItems = getConfiguration().getToolbarContributions(getTreeViewer());
        if (toolbarItems != null) {
          for (int i = 0; i < toolbarItems.length; i++) {
            toolbar.add(toolbarItems[i]);
          }
          toolbar.update(true);
        }
      }
      // view menu
      IContributionManager menu = getSite().getActionBars().getMenuManager();
      if (menu != null) {
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.