Package org.eclipse.jface.action

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


        IContributionItem item = (IContributionItem) i.next();
        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


     * @since 3.1
     */
    private void invalidateParent() {
        IContributionManager parent = getParent();
        if (parent != null) {
      parent.markDirty();
    }
    }

    /* (non-Javadoc)
     * @see org.eclipse.ui.activities.IActivityManagerListener#activityManagerChanged(org.eclipse.ui.activities.ActivityManagerEvent)
View Full Code Here

      } else if (item instanceof MenuManager) {
        parent = ((MenuManager) item).getParent();
      }
      if (parent != null) {
        parent.markDirty();
        managersAwaitingUpdates.add(parent);
      }
    }

    /*
 
View Full Code Here

        // If items are added/removed in the sub-menu, we still need to propagate the dirty flag up,
        // even if the sub-menu is already dirty, since the result of isVisible() may change
        // due to the added/removed items.
        IContributionManager parent = getParent();
        if (parent != null) {
            parent.markDirty();
        }
    }

    /**
     * Returns whether the menu control is created
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.