Examples of CommandConfig


Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

   * @param args ...
   */
  public static void main(String[] args)
  {
    EditCommandConfigDialogLayoutTester pane = new EditCommandConfigDialogLayoutTester(
        LayoutTesterDelegate.shell, new CommandConfig("command",
            ResourceType.BOTH, true, "name for resources", true,
            "name for text selection", false));

    LayoutTesterDelegate.openDialog(pane);
  }
View Full Code Here

Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

    // opens up for the first time.
    store.setDefault(KEY_NUMBER_OF_CUSTOM_COMMANDS,
        DEFAULT_CUSTOM_COMMANDS.length);
    for (int i = 0; i < DEFAULT_CUSTOM_COMMANDS.length; i++)
    {
      CommandConfig commandConfig = DEFAULT_CUSTOM_COMMANDS[i];
      store.setDefault(getCommandEnabledForResourcesMenuKey(i),
          commandConfig.isEnabledForResourcesMenu());
      store.setDefault(getCommandNameForResourcesMenuKey(i),
          commandConfig.getNameForResourcesMenu());
      store.setDefault(getCommandEnabledForTextSelectionMenuKey(i),
          commandConfig.isEnabledForTextSelectionMenu());
      store.setDefault(getCommandNameForTextSelectionMenuKey(i),
          commandConfig.getNameForTextSelectionMenu());
      store.setDefault(getPassSelectedTextKey(i),
          commandConfig.isPassSelectedText());
      store.setDefault(getCommandKey(i), commandConfig.getCommand());
    }
  }
View Full Code Here

Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

  public EditCommandConfigDialog(Shell parentShell,
      List<CommandConfig> commandConfigList)
  {
    this(parentShell);

    this.commandConfig = new CommandConfig();
    this.commandConfigList = commandConfigList;
  }
View Full Code Here

Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

        SWT.SAVE);
    if (exportFilename != null)
    {
      try
      {
        CommandConfig commandConfigForExport = new CommandConfig();
        this.flushViewToModel(commandConfigForExport);
        this.sharedFileManager.exportCommandConfigToFile(
            commandConfigForExport, new File(exportFilename));
      }
      catch (IOException e)
View Full Code Here

Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

    // remove multiple selected indices from end to start
    boolean changed = false;
    for (int i = selectionIndices.length - 1; i >= 0; i--)
    {
      int selectedIndex = selectionIndices[i];
      CommandConfig removedCommandConfig = this.getModel()
          .getCommandConfigList().remove(selectedIndex);
      if (removedCommandConfig.isStoreAsSharedFile())
      {
        this.sharedFileManager.delete(removedCommandConfig);
      }
      changed = true;
    }
View Full Code Here

Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

        "Import Custom Command Definition", SWT.OPEN);
    if (importFilename != null)
    {
      try
      {
        CommandConfig commandConfig = this.sharedFileManager
            .importCommandConfigFromFile(new File(importFilename));
        this.getModel().getCommandConfigList().add(commandConfig);
        this.refreshViewFromModel();
      }
      catch (ParseException e)
View Full Code Here

Examples of de.bastiankrol.startexplorer.customcommands.CommandConfig

      boolean enabledForTextSelectionMenu = store
          .getBoolean(getCommandEnabledForTextSelectionMenuKey(i));
      String nameForTextSelectionMenu = store
          .getString(getCommandNameForTextSelectionMenuKey(i));
      boolean passSelectedText = store.getBoolean(getPassSelectedTextKey(i));
      CommandConfig commandConfig = new CommandConfig(command, resourceType,
          enabledForResourcesMenu, nameForResourcesMenu,
          enabledForTextSelectionMenu, nameForTextSelectionMenu,
          passSelectedText);
      commandConfigList.add(commandConfig);
    }
View Full Code Here

Examples of org.activiti.engine.impl.interceptor.CommandConfig

      log.error(outputMessage.toString());
     
      log.info("dropping and recreating db");
     
      CommandExecutor commandExecutor = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getCommandExecutor();
      CommandConfig config = new CommandConfig().transactionNotSupported();
      commandExecutor.execute(config, new Command<Object>() {
        public Object execute(CommandContext commandContext) {
          DbSqlSession session = commandContext.getSession(DbSqlSession.class);
          session.dbSchemaDrop();
          session.dbSchemaCreate();
View Full Code Here

Examples of org.activiti.engine.impl.interceptor.CommandConfig

    }

    @Override
    protected void initDefaultCommandConfig() {
        if (defaultCommandConfig == null) {
            defaultCommandConfig = new CommandConfig().setContextReusePossible(true);
        }
    }
View Full Code Here

Examples of org.activiti.engine.impl.interceptor.CommandConfig

  protected void handleFailedJob(final Throwable exception) {
    commandExecutor.execute(new Command<Void>() {

      @Override
      public Void execute(CommandContext commandContext) {
        CommandConfig commandConfig = commandExecutor.getDefaultConfig().transactionRequiresNew();
        FailedJobCommandFactory failedJobCommandFactory = commandContext.getFailedJobCommandFactory();
        Command<Object> cmd = failedJobCommandFactory.getCommand(job.getId(), exception);

        log.trace("Using FailedJobCommandFactory '" + failedJobCommandFactory.getClass() + "' and command of type '" + cmd.getClass() + "'");
        commandExecutor.execute(commandConfig, cmd);
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.