Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.SubContributionManager


            Display.getDefault().syncExec(new Runnable() {

                @Override
                public void run() {
                    if (statusLineManager instanceof SubContributionManager) {
                        SubContributionManager sub = (SubContributionManager)statusLineManager;
                        StatusLineManager parent = (StatusLineManager) sub.getParent();
                        parent.setErrorMessage(message);
                        parent.update(true);
                    } else {
                        statusLineManager.setErrorMessage(message);
                        statusLineManager.update(true);
View Full Code Here


     */
    if (toolBarContributionItem != null) {
      // Create a placeholder and place it in the cool bar manager.
      ICoolBarManager coolBarManager = getCoolBarManager();
      if (coolBarManager instanceof SubContributionManager) {
        SubContributionManager subManager = (SubContributionManager) coolBarManager;
        IContributionManager manager = subManager.getParent();
        if (manager instanceof ContributionManager) {
          final IContributionItem replacementItem = new PlaceholderContributionItem(
              toolBarContributionItem);
          boolean succeeded = ((ContributionManager) manager)
              .replaceItem(replacementItem.getId(),
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.SubContributionManager

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.