Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IStatusLineManager.find()


            WorkbenchWindow window = (WorkbenchWindow) associatedWindow;
            IStatusLineManager statusLine = window.getStatusLineManager();
            // TODO implicit dependency on IDE's action builder
            // @issue implicit dependency on IDE's action builder
            if (statusLine != null) { // this can be null if we're exiting
                IContributionItem item = statusLine
                        .find("ModeContributionItem"); //$NON-NLS-1$
                if (item instanceof StatusLineContributionItem) {
                    return ((StatusLineContributionItem) item);
                }
            }
View Full Code Here


            return null;
        IStatusLineManager bar = getContext().getActionBars().getStatusLineManager();
    if (bar == null) {
      return null;
    }
    LineItem item = (LineItem) bar.find(ID);
    if (item == null) {
      item = new LineItem(ID);
      bar.appendToGroup(StatusLineManager.END_GROUP, item);
      bar.update(true);
    }
View Full Code Here

  private void retrieveStatusLineItems() {
    IEditorActionBarContributor contributor = getEditorSite().getActionBarContributor();
    if (contributor instanceof EditorActionBarContributor) {
      IStatusLineManager slm = ((EditorActionBarContributor) contributor).getActionBars().getStatusLineManager();

      statusLineMain = (StatusLineContributionItem) slm.find("MainDeck");
      statusLineSideboard = (StatusLineContributionItem) slm.find("Sideboard");
      statusLineLand = (StatusLineContributionItem) slm.find("Land");
    }
  }
View Full Code Here

    IEditorActionBarContributor contributor = getEditorSite().getActionBarContributor();
    if (contributor instanceof EditorActionBarContributor) {
      IStatusLineManager slm = ((EditorActionBarContributor) contributor).getActionBars().getStatusLineManager();

      statusLineMain = (StatusLineContributionItem) slm.find("MainDeck");
      statusLineSideboard = (StatusLineContributionItem) slm.find("Sideboard");
      statusLineLand = (StatusLineContributionItem) slm.find("Land");
    }
  }

  /**
 
View Full Code Here

    if (contributor instanceof EditorActionBarContributor) {
      IStatusLineManager slm = ((EditorActionBarContributor) contributor).getActionBars().getStatusLineManager();

      statusLineMain = (StatusLineContributionItem) slm.find("MainDeck");
      statusLineSideboard = (StatusLineContributionItem) slm.find("Sideboard");
      statusLineLand = (StatusLineContributionItem) slm.find("Land");
    }
  }

  /**
   * @return Returns the dirty.
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.