Package org.eclipse.core.commands

Examples of org.eclipse.core.commands.Command.define()


  protected IContributionItem[] createContributionItemsForEntry(IRosterEntry entry) {
    if (addEntry(entry)) {
      String commandId = ROSTERCOMMAND_PREFIX + getNextCommandIdIndex();
      // Get existing/new command
      Command command = commandService.getCommand(commandId);
      command.define(commandId, null, commandService.getCategory(commandId + ".c")); //$NON-NLS-1$
      IHandler handler = command.getHandler();
      // Only mess with it if it was of old type
      if (handler != null && handler instanceof AbstractRosterMenuHandler) {
        AbstractRosterMenuHandler drh = (AbstractRosterMenuHandler) handler;
        if (drh != null) {
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.