gpt4 book ai didi

net.sf.taverna.t2.workbench.ui.workflowview.WorkflowView类的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 08:09:05 28 4
gpt4 key购买 nike

本文整理了Java中net.sf.taverna.t2.workbench.ui.workflowview.WorkflowView类的一些代码示例,展示了WorkflowView类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowView类的具体详情如下:
包路径:net.sf.taverna.t2.workbench.ui.workflowview.WorkflowView
类名称:WorkflowView

WorkflowView介绍

[英]Super class for all UIComponentSPIs that display a Workflow
[中]用于显示工作流的所有UIComponentSPI的超类

代码示例

代码示例来源:origin: net.sf.taverna.t2.ui-activities/rshell-activity-ui

public void actionPerformed(ActionEvent e) {
    WorkflowView.importServiceDescription(RshellTemplateService.getServiceDescription(),
        false);					
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/report-view

public void actionPerformed(ActionEvent e) {
  Action action = WorkflowView.getConfigureAction(configuredProcessor);
  if (action != null) {
    action.actionPerformed(e);
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

@Override
  public void exportToClipboard(JComponent comp, Clipboard clip, int action)
      throws IllegalStateException {
    super.exportToClipboard(comp, clip, action);
    if (action == COPY) {
      WorkflowView.copyProcessor();
    } else if (action == MOVE) {
      WorkflowView.cutProcessor();
    }
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public static void pasteTransferable(Transferable t) {
  if (t.isDataFlavorSupported(processorFlavor)) {
    pasteProcessor(t);
  } else if (t.isDataFlavorSupported(serviceDescriptionDataFlavor)) {
    try {
      ServiceDescription data = (ServiceDescription) t.getTransferData(serviceDescriptionDataFlavor);
      importServiceDescription(data, false);
    } catch (UnsupportedFlavorException e) {
      showException(UNABLE_TO_ADD_SERVICE,e);
      logger.error(e);
    } catch (IOException e) {
      showException(UNABLE_TO_ADD_SERVICE,e);
      logger.error(e);
    }
    
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

.doDataflowEdit(currentDataflow, new CompoundEdit(editList));
} catch (EditException e) {
  showException(UNABLE_TO_ADD_SERVICE, e);
  logger.warn("Could not add processor : edit error", e);
  p = null;
} catch (InstantiationException e) {
  showException(UNABLE_TO_ADD_SERVICE,e);
  logger.warn("Could not add processor : edit error", e);
  p = null;
} catch (IllegalAccessException e) {
  showException(UNABLE_TO_ADD_SERVICE,e);
  logger.error(e);
  Action action = getConfigureAction(p);
  if (action != null) {
    action.actionPerformed(new ActionEvent(sd, 0, ""));

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public void actionPerformed(ActionEvent e) {
  WorkflowView.copyProcessor();
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public void actionPerformed(ActionEvent e) {
  WorkflowView.cutProcessor(dataflow, processor, null);
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public void actionPerformed(ActionEvent e) {
    WorkflowView.copyProcessor(processor);
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public void actionPerformed(ActionEvent e) {
    WorkflowView.cutProcessor(dataflow, processor, component);
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/beanshell-activity-ui

public void actionPerformed(ActionEvent e) {
    WorkflowView.importServiceDescription(BeanshellTemplateService.getServiceDescription(),
    false);
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public static void cutProcessor(Dataflow dataflow, Processor processor, Component component) {
  copyProcessor(processor);
  new RemoveProcessorAction(dataflow, processor, component).actionPerformed(null);
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public static void cutProcessor() {
  Dataflow currentDataflow = (Dataflow) ModelMap.getInstance().getModel(ModelMapConstants.CURRENT_DATAFLOW);
  DataflowSelectionModel dataFlowSelectionModel = DataflowSelectionManager
  .getInstance().getDataflowSelectionModel(currentDataflow);
  // Get all selected components
  Set<Object> selectedWFComponents = dataFlowSelectionModel
      .getSelection();
  Processor p = null;
  for (Object selectedWFComponent : selectedWFComponents) {
    if (selectedWFComponent instanceof Processor) {
      p = (Processor) selectedWFComponent;
      break;
    }
  }
  if (p != null) {
    cutProcessor(currentDataflow, p, null);
  }        
}
public static void cutProcessor(Dataflow dataflow, Processor processor, Component component) {

代码示例来源:origin: net.sf.taverna.t2.ui-activities/stringconstant-activity-ui

public void actionPerformed(ActionEvent e) {
    WorkflowView.importServiceDescription(StringConstantTemplateService.getServiceDescription(),
        false);
  
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view

public static void copyProcessor() {
  Dataflow currentDataflow = (Dataflow) ModelMap.getInstance().getModel(ModelMapConstants.CURRENT_DATAFLOW);
  DataflowSelectionModel dataFlowSelectionModel = DataflowSelectionManager
  .getInstance().getDataflowSelectionModel(currentDataflow);
  // Get all selected components
  Set<Object> selectedWFComponents = dataFlowSelectionModel
      .getSelection();
  Processor p = null;
  for (Object selectedWFComponent : selectedWFComponents) {
    if (selectedWFComponent instanceof Processor) {
      p = (Processor) selectedWFComponent;
      break;
    }
  }
  if (p != null) {
    copyProcessor(p);
  }        
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/interaction-activity-ui

@Override
  public void actionPerformed(final ActionEvent e) {
    WorkflowView.importServiceDescription(
        InteractionServiceHtmlTemplateService
            .getServiceDescription(), false);
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/rshell-activity-ui

public void actionPerformed(ActionEvent e) {
  WorkflowView.importServiceDescription(RshellTemplateService.getServiceDescription(),
      false);							
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/component-activity-ui

private void doSearch(Registry chosenRegistry, Profile chosenProfile,
    SortedMap<String, String> prefixMap, String queryString) {
  if (chosenRegistry == null) {
    showMessageDialog(null, "Unable to determine registry",
        "Component Registry Problem", ERROR_MESSAGE);
    return;
  }
  if (chosenProfile == null) {
    showMessageDialog(null, "Unable to determine profile",
        "Component Profile Problem", ERROR_MESSAGE);
    return;
  }
  StringBuilder prefixString = new StringBuilder();
  for (Entry<String, String> entry : prefixMap.entrySet())
    if (!entry.getKey().equals(WFDESC_PREFIX))
      prefixString.append(constructPrefixString(entry));
  SearchChoicePanel searchChoicePanel = new SearchChoicePanel(
      chosenRegistry, prefixString.toString(), queryString);
  int answer = showOptionDialog(null, searchChoicePanel,
      "Matching components", OK_CANCEL_OPTION, QUESTION_MESSAGE,
      null, new String[] { "Add to workflow", "Cancel" }, "Cancel");
  if (answer == OK_OPTION) {
    Version.ID ident = searchChoicePanel.getVersionIdentification();
    if (ident != null)
      importServiceDescription(new ComponentServiceDesc(ident), false);
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/interaction-activity-ui

@Override
  public void actionPerformed(final ActionEvent e) {
    FileManager.getInstance().getCurrentDataflow();
    WorkflowView.importServiceDescription(
        InteractionServiceHtmlTemplateService
            .getServiceDescription(), false);
  }
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/stringconstant-activity-ui

public void actionPerformed(ActionEvent e) {
  
  Dataflow workflow = FileManager.getInstance().getCurrentDataflow();
  
  WorkflowView.importServiceDescription(StringConstantTemplateService.getServiceDescription(),
      false);

}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/beanshell-activity-ui

public void actionPerformed(ActionEvent e) {
    Dataflow workflow = FileManager.getInstance()
    .getCurrentDataflow();
WorkflowView.importServiceDescription(BeanshellTemplateService.getServiceDescription(),
    false);
  }
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com