Tabnine Logo
ActivityIconManager.getInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getInstance
method
in
net.sf.taverna.t2.workbench.activityicons.ActivityIconManager

Best Java code snippets using net.sf.taverna.t2.workbench.activityicons.ActivityIconManager.getInstance (Showing top 11 results out of 315)

origin: net.sf.taverna.t2.ui-activities/beanshell-activity-ui

AddBeanshellAction () {
  super (ADD_BEANSHELL, ActivityIconManager.getInstance().iconForActivity(
        new BeanshellActivity()));
}
origin: net.sf.taverna.t2.ui-api/contextual-views-api

public ActivityConfigurationAction(A activity) {
  this.activity = activity;
  putValue(SMALL_ICON, ActivityIconManager.getInstance().iconForActivity(activity));
}
origin: net.sf.taverna.t2.ui-activities/interaction-activity-ui

AddInteractionAction() {
  super(ADD_INTERACTION, ActivityIconManager.getInstance()
      .iconForActivity(new InteractionActivity()));
}
origin: net.sf.taverna.t2.ui-activities/stringconstant-activity-ui

@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;
}
origin: net.sf.taverna.t2.ui-activities/rshell-activity-ui

@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;
}
origin: net.sf.taverna.t2.ui-components/design-ui

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());        
}
origin: net.sf.taverna.t2.ui-activities/stringconstant-activity-ui

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));
  
}
origin: net.sf.taverna.t2.ui-activities/rshell-activity-ui

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));
  
}
origin: net.sf.taverna.t2.ui-activities/beanshell-activity-ui

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));
}
origin: net.sf.taverna.t2.ui-activities/interaction-activity-ui

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));
}
origin: net.sf.taverna.t2.ui-activities/localworker-activity-ui

/**
 * 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);
  }
}
net.sf.taverna.t2.workbench.activityiconsActivityIconManagergetInstance

Javadoc

Get the singleton instance of this registry.

Popular methods of ActivityIconManager

  • iconForActivity
    Returns an icon for the Activity.
  • getInstances
  • resetIcon

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now