Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IConfigurationElement


      final IConfigurationElement[] configurationElements,
      final int configurationElementCount) {
    final List warningsToLog = new ArrayList(1);

    for (int i = 0; i < configurationElementCount; i++) {
      final IConfigurationElement configurationElement = configurationElements[i];

      // Read out the command identifier.
      final String commandId = readRequired(configurationElement,
          ATT_COMMAND_ID, warningsToLog,
          "Handler submissions need a command id"); //$NON-NLS-1$
View Full Code Here


          .getNewWizardRegistry().findWizard(id);
            if (wizardDesc != null) {
                action = new NewWizardShortcutAction(workbenchWindow,
            wizardDesc);
        actions.put(id, action);
        IConfigurationElement element = (IConfigurationElement) Util
            .getAdapter(wizardDesc, IConfigurationElement.class);
        if (element != null) {
          workbenchWindow.getExtensionTracker().registerObject(
              element.getDeclaringExtension(), action,
              IExtensionTracker.REF_WEAK);
        }
            }
        }
        return action;
View Full Code Here

        // keep track of whether -any- of the widgets are resizeable
        boolean resizeable = false;

        for (Iterator widgetIter = widgets.iterator(); widgetIter.hasNext();) {
          IWorkbenchWidget widget = (IWorkbenchWidget) widgetIter.next();
          IConfigurationElement widgetElement = trimEntry.getElement(widget);
          if (widget != null) {
            resizeable |= trimEntry.fillMajor(widgetElement);
            renderTrim(grpComposite, widget, swtSide);
          }
        }
View Full Code Here

      addWarning(warningsToLog,
          "There can only be one visibility element", parentElement, //$NON-NLS-1$
          parentId);
    }

    final IConfigurationElement visibilityElement = visibilityElements[0];
    final ActionExpression visibilityActionExpression = new ActionExpression(
        visibilityElement);
    final LegacyActionExpressionWrapper wrapper = new LegacyActionExpressionWrapper(
        visibilityActionExpression, null);
    return wrapper;
View Full Code Here

    // Sort the actionSets extension point.
    final IConfigurationElement[] actionSetsExtensionPoint = registry
        .getConfigurationElementsFor(EXTENSION_ACTION_SETS);
    for (int i = 0; i < actionSetsExtensionPoint.length; i++) {
      final IConfigurationElement element = actionSetsExtensionPoint[i];
      final String name = element.getName();
      if (TAG_ACTION_SET.equals(name)) {
        addElementToIndexedArray(element, indexedConfigurationElements,
            INDEX_ACTION_SETS, actionSetCount++);
      }
    }

    // Sort the editorActions extension point.
    final IConfigurationElement[] editorActionsExtensionPoint = registry
        .getConfigurationElementsFor(EXTENSION_EDITOR_ACTIONS);
    for (int i = 0; i < editorActionsExtensionPoint.length; i++) {
      final IConfigurationElement element = editorActionsExtensionPoint[i];
      final String name = element.getName();
      if (TAG_EDITOR_CONTRIBUTION.equals(name)) {
        addElementToIndexedArray(element, indexedConfigurationElements,
            INDEX_EDITOR_CONTRIBUTIONS, editorContributionCount++);
      }
    }

    // Sort the popupMenus extension point.
    final IConfigurationElement[] popupMenusExtensionPoint = registry
        .getConfigurationElementsFor(EXTENSION_POPUP_MENUS);
    for (int i = 0; i < popupMenusExtensionPoint.length; i++) {
      final IConfigurationElement element = popupMenusExtensionPoint[i];
      final String name = element.getName();
      if (TAG_OBJECT_CONTRIBUTION.equals(name)) {
        addElementToIndexedArray(element, indexedConfigurationElements,
            INDEX_OBJECT_CONTRIBUTIONS, objectContributionCount++);
      } else if (TAG_VIEWER_CONTRIBUTION.equals(name)) {
        addElementToIndexedArray(element, indexedConfigurationElements,
            INDEX_VIEWER_CONTRIBUTIONS, viewerContributionCount++);
      }
    }

    // Sort the viewActions extension point.
    final IConfigurationElement[] viewActionsExtensionPoint = registry
        .getConfigurationElementsFor(EXTENSION_VIEW_ACTIONS);
    for (int i = 0; i < viewActionsExtensionPoint.length; i++) {
      final IConfigurationElement element = viewActionsExtensionPoint[i];
      final String name = element.getName();
      if (TAG_VIEW_CONTRIBUTION.equals(name)) {
        addElementToIndexedArray(element, indexedConfigurationElements,
            INDEX_VIEW_CONTRIBUTIONS, viewContributionCount++);
      }
    }
View Full Code Here

   */
  private final void readActions(final String primaryId,
      final IConfigurationElement[] elements, final List warningsToLog,
      final Expression visibleWhenExpression, final String viewId) {
    for (int i = 0; i < elements.length; i++) {
      final IConfigurationElement element = elements[i];

      /*
       * We might need the identifier to generate the command, so we'll
       * read it out now.
       */
 
View Full Code Here

    // stupid navigate group

    final List warningsToLog = new ArrayList(1);

    for (int i = 0; i < configurationElementCount; i++) {
      final IConfigurationElement element = configurationElements[i];

      // Read the action set identifier.
      final String id = readRequired(element, ATT_ID, warningsToLog,
          "Action sets need an id"); //$NON-NLS-1$
      if (id == null) {
View Full Code Here

      final IConfigurationElement[] configurationElements,
      final int configurationElementCount) {
    final List warningsToLog = new ArrayList(1);

    for (int i = 0; i < configurationElementCount; i++) {
      final IConfigurationElement element = configurationElements[i];

      // Read the editor contribution identifier.
      final String id = readRequired(element, ATT_ID, warningsToLog,
          "Editor contributions need an id"); //$NON-NLS-1$
      if (id == null) {
View Full Code Here

      final IConfigurationElement[] configurationElements,
      final int configurationElementCount) {
    final List warningsToLog = new ArrayList(1);

    for (int i = 0; i < configurationElementCount; i++) {
      final IConfigurationElement element = configurationElements[i];

      // Read the object contribution identifier.
      final String id = readRequired(element, ATT_ID, warningsToLog,
          "Object contributions need an id"); //$NON-NLS-1$
      if (id == null) {
View Full Code Here

      final IConfigurationElement[] configurationElements,
      final int configurationElementCount) {
    final List warningsToLog = new ArrayList(1);

    for (int i = 0; i < configurationElementCount; i++) {
      final IConfigurationElement element = configurationElements[i];

      // Read the view contribution identifier.
      final String id = readRequired(element, ATT_ID, warningsToLog,
          "View contributions need an id"); //$NON-NLS-1$
      if (id == null) {
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.IConfigurationElement

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.