Package org.eclipse.core.commands.contexts

Examples of org.eclipse.core.commands.contexts.Context.define()


     */
    private void addActionSet(ActionSetDescriptor desc) {
    children.add(desc);
    Context actionSetContext = contextService.getContext(desc.getId());
    if (!actionSetContext.isDefined()) {
      actionSetContext.define(desc.getLabel(), desc.getDescription(),
          "org.eclipse.ui.contexts.actionSet"); //$NON-NLS-1$
    }
  }

  /**
 
View Full Code Here


      if ((parentId != null) && (parentId.length() == 0)) {
        parentId = null;
      }

      final Context context = contextManager.getContext(contextId);
      context.define(name, description, parentId);
    }

    logWarnings(
        warningsToLog,
        "Warnings while parsing the contexts from the 'org.eclipse.ui.contexts', 'org.eclipse.ui.commands' and 'org.eclipse.ui.acceleratorScopes' extension points."); //$NON-NLS-1$
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.