Examples of addExecutionListener()


Examples of org.camunda.bpm.engine.impl.pvm.process.TransitionImpl.addExecutionListener()

   ProcessDefinitionImpl processDefinitionImpl = new ProcessDefinitionImpl("test");
   processDefinitionImpl.getExecutionListeners().put("start", Collections.<ExecutionListener>singletonList(new TestExecutionListener()));
   execution.setProcessDefinition(processDefinitionImpl);

   TransitionImpl transitionImpl = new TransitionImpl("test", new ProcessDefinitionImpl("test"));
   transitionImpl.addExecutionListener(new TestExecutionListener());
   execution.setTransition(transitionImpl);

   execution.setTransitionBeingTaken(transitionImpl);
   execution.getProcessInstanceStartContext().setInitial(activityImpl);
   execution.setSuperExecution(new ExecutionEntity());
View Full Code Here

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

  public void earlyStartup() {
    // TODO Auto-generated method stub
    String commandId = "org.eclipse.ui.file.save";
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
    Command command = service.getCommand(commandId);
    command.addExecutionListener(new IExecutionListener() {
     
      public void preExecute(String commandId, ExecutionEvent event) {
        // TODO Auto-generated method stub
       
      }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.addExecutionListener()

    else
      text.addVerifyKeyListener(this);
   
    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.addExecutionListener(this);

    fInstalled= true;
  }

  /**
 
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.addExecutionListener()

      fWidgetEventSource.addFocusListener(fEventListener);
    }

    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.addExecutionListener(fEventListener);
  }
 
  private void removeListeners(ITextViewer editor) {
    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.addExecutionListener()

      fWidgetEventSource.addFocusListener(fEventListener);
    }

    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.addExecutionListener(fEventListener);
  }

  private void removeListeners() {
    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.addExecutionListener()

    else
      text.addVerifyKeyListener(this);

    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.addExecutionListener(this);

    fInstalled= true;
  }

  /**
 
View Full Code Here

Examples of ptolemy.actor.Manager.addExecutionListener()

            // If there was a previous manager, unlisten.
            if (_manager != null) {
                _manager.removeExecutionListener(this);
            }

            manager.addExecutionListener(this);
            _manager = manager;
        }

        return manager;
    }
View Full Code Here

Examples of ptolemy.actor.Manager.addExecutionListener()

        getContentPane().add(_pane, BorderLayout.CENTER);

        Manager manager = model.getManager();

        if (manager != null) {
            manager.addExecutionListener(this);
        }

        // Make the go button the default.
        _pane.setDefaultButton();
View Full Code Here

Examples of ptolemy.actor.Manager.addExecutionListener()

            }

            Manager manager = model.getManager();

            if (manager != null) {
                manager.addExecutionListener(this);
            }
        }
    }

    ///////////////////////////////////////////////////////////////////
View Full Code Here

Examples of ptolemy.actor.Manager.addExecutionListener()

                if (manager == null) {
                    manager = new Manager(actor.workspace(), "manager");
                    actor.setManager(manager);
                }

                manager.addExecutionListener(this);
                _activeCount++;

                // Run the model in a new thread.
                manager.startRun();
            }
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.