Examples of define()


Examples of org.apache.tuscany.sdo.helper.XSDHelperImpl.define()

        super.setUp();
        this.script = readResource(scriptName);
        TypeHelper th = SDOUtil.createTypeHelper();
        XSDHelper xsdHelper = new XSDHelperImpl(th);
        URL url = getClass().getResource("helloworld.wsdl");
        xsdHelper.define(url.openStream(), null);

        dataBinding = new E4XDataBinding(getClass().getClassLoader(),th);
        dataBinding.addElementQName("getGreetings", new QName("http://helloworld.samples.tuscany.apache.org", "getGreetings"));
    }
View Full Code Here

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

      // Read out the description.
      final String description = readOptional(configurationElement,
          ATT_DESCRIPTION);

      final Category category = commandService.getCategory(categoryId);
      category.define(name, description);
    }

    // If there were any warnings, then log them now.
    logWarnings(
        warningsToLog,
View Full Code Here

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

      return;

    /* Define Command For Each Label */
    for (final ILabel label : labels) {
      Command command = commandService.getCommand(LABEL_ACTION_PREFIX + label.getOrder());
      command.define(NLS.bind(Messages.Controller_LABEL, label.getName()), NLS.bind(Messages.Controller_LABEL_MSG, label.getName()), commandService.getCategory(RSSOWL_KEYBINDING_CATEGORY));
      command.setHandler(new LabelNewsHandler(label));
    }
  }

  private void updateLabelCommands() {
View Full Code Here

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

 
  private IContributionItem createContributionItem(IServiceLocator serviceLocator, Action item) {
    ICommandService commandService = (ICommandService) serviceLocator.getService(ICommandService.class);
   
    Command command = commandService.getCommand("io.emmet.eclipse.commands." + item.getId());
    command.define(item.getName(), "", commandService.getCategory("io.emmet.eclipse.commands.category"));
   
    IHandlerService handlerService = (IHandlerService) serviceLocator.getService(IHandlerService.class);
    handlerService.activateHandler(command.getId(), handlerFactory(item.getId()));
   
    CommandContributionItemParameter p = new CommandContributionItemParameter(
View Full Code Here

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

  public void testDisabled() throws Exception {
    tracker.setEnabled(false);

    String commandId = System.currentTimeMillis() + "." + System.nanoTime();
    Command command = getCommandService().getCommand(commandId);
    command.define("a", "b", getCommandService().getDefinedCategories()[0]);

    getHandlerService().activateHandler(command.getId(), createHandler());
    getHandlerService().executeCommand(command.getId(), null);

    assertTrue(tracker.getData().isEmpty());
View Full Code Here

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

    String name = "cmdName";
    String description = "cmdDescription";
    String id = System.currentTimeMillis() + "." + System.nanoTime();
    Command command = getCommandService().getCommand(id);
    command.define(name, description,
        getCommandService().getDefinedCategories()[0]);

    long start = System.currentTimeMillis();
    getHandlerService().activateHandler(command.getId(), createHandler());
    getHandlerService().executeCommand(command.getId(), null);
View Full Code Here

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

      // Define the command.
      command = commandService.getCommand(commandId);
      final Category category = commandService.getCategory(null);
      final String name = LegacyActionTools.removeAcceleratorText(Action
          .removeMnemonics(label));
      command.define(name, tooltip, category, null);

      // TODO Decide the command state.
      final String style = readOptional(element, ATT_STYLE);
      if (STYLE_RADIO.equals(style)) {
        final State state = new RadioState();
View Full Code Here

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

      final AbstractParameterValueConverter parameterValueConverter = (converter == null) ? null
          : new ParameterValueConverterProxy(configurationElement);

      final ParameterType parameterType = commandService
          .getParameterType(parameterTypeId);
      parameterType.define(type, parameterValueConverter);
    }

    // If there were any warnings, then log them now.
    logWarnings(
        warningsToLog,
View Full Code Here

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

Examples of org.eclipse.jface.bindings.Scheme.define()

        }
      }

      // Define the scheme.
      final Scheme scheme = bindingManager.getScheme(id);
      scheme.define(name, description, parentId);
    }

    logWarnings(
        warningsToLog,
        "Warnings while parsing the key bindings from the 'org.eclipse.ui.bindings', 'org.eclipse.ui.acceleratorConfigurations' and 'org.eclipse.ui.commands' extension point"); //$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.