AddBeanshellAction () { super (ADD_BEANSHELL, ActivityIconManager.getInstance().iconForActivity( new BeanshellActivity())); }
public ActivityConfigurationAction(A activity) { this.activity = activity; putValue(SMALL_ICON, ActivityIconManager.getInstance().iconForActivity(activity)); }
AddInteractionAction() { super(ADD_INTERACTION, ActivityIconManager.getInstance() .iconForActivity(new InteractionActivity())); }
@Override protected Action createAction() { AbstractAction action = new AbstractAction("Text constant", ActivityIconManager.getInstance() .iconForActivity(new StringConstantActivity())){ public void actionPerformed(ActionEvent e) { Dataflow workflow = FileManager.getInstance().getCurrentDataflow(); WorkflowView.importServiceDescription(StringConstantTemplateService.getServiceDescription(), false); } }; return action; }
@Override protected Action createAction() { AbstractAction action = new AbstractAction("Rshell", ActivityIconManager.getInstance() .iconForActivity(new RshellActivity())){ public void actionPerformed(ActionEvent e) { WorkflowView.importServiceDescription(RshellTemplateService.getServiceDescription(), false); } }; return action; }
public AddConditionAction(Dataflow dataflow, Processor control, Processor target, Component component) { super(dataflow, component); this.control = control; this.target = target; Activity<?> activity = control.getActivityList().get(0); Icon activityIcon = ActivityIconManager.getInstance().iconForActivity(activity); putValue(SMALL_ICON, activityIcon); putValue(NAME, control.getLocalName()); }
AddStringConstantMenuAction() { super(); putValue(SMALL_ICON, ActivityIconManager.getInstance() .iconForActivity(new StringConstantActivity())); putValue(NAME, ADD_STRING_CONSTANT); putValue(SHORT_DESCRIPTION, ADD_STRING_CONSTANT); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK)); }
AddRShellMenuAction () { super(); putValue(SMALL_ICON, ActivityIconManager.getInstance() .iconForActivity(new RshellActivity())); putValue(NAME, ADD_RSHELL); putValue(SHORT_DESCRIPTION, "RShell"); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK)); }
AddBeanshellMenuAction () { super (); putValue(SMALL_ICON, ActivityIconManager.getInstance().iconForActivity( new BeanshellActivity())); putValue(NAME, ADD_BEANSHELL); putValue(SHORT_DESCRIPTION, "Beanshell service"); putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK)); }
AddInteractionMenuAction() { super(); this.putValue(SMALL_ICON, ActivityIconManager.getInstance() .iconForActivity(new InteractionActivity())); this.putValue(NAME, ADD_INTERACTION); this.putValue(SHORT_DESCRIPTION, "Interaction service"); this.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke( KeyEvent.VK_I, InputEvent.SHIFT_DOWN_MASK | InputEvent.ALT_DOWN_MASK)); }
/** * Annotate the Activity with the name of the Institution or person who * created the activity. Useful for Localworkers that have been altered by a * user */ private void addAnnotation() { // FIXME use a more useful name or a different type of annotation, this // is just here as a marker so that // the colour manager works HostInstitution hostInstitutionAnnotation = new HostInstitution(); hostInstitutionAnnotation.setText("UserNameHere"); try { // force the dataflow view to update with the annotation added, // therefore triggering the localworker to be coloured as a // beanshell EditManager.getInstance().doDataflowEdit( (Dataflow) ModelMap.getInstance().getModel( ModelMapConstants.CURRENT_DATAFLOW), EditsRegistry.getEdits().getAddAnnotationChainEdit( activity, hostInstitutionAnnotation)); ActivityIconManager.getInstance().resetIcon(activity); } catch (EditException e) { logger.error(e); } }