本文整理汇总了Java中org.apache.taverna.workbench.selection.SelectionManager类的典型用法代码示例。如果您正苦于以下问题:Java SelectionManager类的具体用法?Java SelectionManager怎么用?Java SelectionManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SelectionManager类属于org.apache.taverna.workbench.selection包,在下文中一共展示了SelectionManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pasteTransferable
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public static void pasteTransferable(Transferable t,
EditManager editManager, MenuManager menuManager,
SelectionManager selectionManager, ServiceRegistry serviceRegistry) {
if (t.isDataFlavorSupported(processorFlavor))
pasteProcessor(t, editManager);
else if (t.isDataFlavorSupported(serviceDescriptionDataFlavor))
try {
ServiceDescription data = (ServiceDescription) t
.getTransferData(serviceDescriptionDataFlavor);
importServiceDescription(data, false, editManager, menuManager,
selectionManager, serviceRegistry);
} catch (UnsupportedFlavorException | IOException e) {
showException(UNABLE_TO_ADD_SERVICE, e);
logger.error(e);
}
}
示例2: DesignPerspectiveComponent
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public DesignPerspectiveComponent(
UIComponentFactorySPI graphViewComponentFactory,
UIComponentFactorySPI servicePanelComponentFactory,
UIComponentFactorySPI contextualViewComponentFactory,
UIComponentFactorySPI workflowExplorerFactory,
UIComponentFactorySPI reportViewComponentFactory,
FileManager fileManager, SelectionManager selectionManager,
MenuManager menuManager, EditManager editManager) {
this.graphViewComponentFactory = graphViewComponentFactory;
this.servicePanelComponentFactory = servicePanelComponentFactory;
this.contextualViewComponentFactory = contextualViewComponentFactory;
this.workflowExplorerFactory = workflowExplorerFactory;
this.reportViewComponentFactory = reportViewComponentFactory;
this.fileManager = fileManager;
this.selectionManager = selectionManager;
this.menuManager = menuManager;
this.editManager = editManager;
setBorder(null);
setOrientation(HORIZONTAL_SPLIT);
setDividerLocation(300);
setLeftComponent(createLeftComponent());
setRightComponent(createRightComponent());
}
示例3: DataflowActivityContextualView
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public DataflowActivityContextualView(Activity activity, EditManager editManager,
FileManager fileManager, MenuManager menuManager,
ActivityIconManager activityIconManager, ColourManager colourManager,
ServiceDescriptionRegistry serviceDescriptionRegistry,
WorkbenchConfiguration workbenchConfiguration, SelectionManager selectionManager) {
super(activity, colourManager);
this.editManager = editManager;
this.fileManager = fileManager;
this.menuManager = menuManager;
this.activityIconManager = activityIconManager;
this.colourManager = colourManager;
this.serviceDescriptionRegistry = serviceDescriptionRegistry;
this.workbenchConfiguration = workbenchConfiguration;
this.selectionManager = selectionManager;
addEditButtons();
}
示例4: ImportWorkflowWizard
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public ImportWorkflowWizard(Frame parentFrame, EditManager editManager,
FileManager fileManager, MenuManager menuManager, ColourManager colourManager,
WorkbenchConfiguration workbenchConfiguration, SelectionManager selectionManager) {
super(parentFrame, "Import workflow", true, null);
this.selectionManager = selectionManager;
destinationWorkflow = selectionManager.getSelectedWorkflow();
destinationProfile = selectionManager.getSelectedProfile();
destinationWorkflowBundle = selectionManager.getSelectedWorkflowBundle();
this.editManager = editManager;
this.fileManager = fileManager;
this.menuManager = menuManager;
this.colourManager = colourManager;
this.workbenchConfiguration = workbenchConfiguration;
setSize(600, 600);
add(makeContentPane(), BorderLayout.CENTER);
// Add some space
add(new JPanel(), BorderLayout.WEST);
add(new JPanel(), BorderLayout.NORTH);
add(new JPanel(), BorderLayout.SOUTH);
add(new JPanel(), BorderLayout.EAST);
findChosenDataflow(this, true);
updateAll();
}
示例5: cutProcessor
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public static void cutProcessor(EditManager editManager, SelectionManager selectionManager) {
// WorkflowBundle currentDataflow = (WorkflowBundle) ModelMap.getInstance().getModel(
// ModelMapConstants.CURRENT_DATAFLOW);
// DataflowSelectionModel dataFlowSelectionModel = selectionManager
// .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(p.getParent(), p, null, editManager, selectionManager);
// }
}
示例6: ServiceTransferHandler
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public ServiceTransferHandler(EditManager editManager,
MenuManager menuManager, SelectionManager selectionManager,
ServiceRegistry serviceRegistry) {
this.editManager = editManager;
this.menuManager = menuManager;
this.selectionManager = selectionManager;
this.serviceRegistry = serviceRegistry;
try {
serviceDescriptionDataFlavor = new DataFlavor(
javaJVMLocalObjectMimeType + ";class="
+ ServiceDescription.class.getCanonicalName(),
"ServiceDescription", getClass().getClassLoader());
} catch (ClassNotFoundException e) {
logger.warn("Could not find the class "
+ ServiceDescription.class);
}
}
示例7: ReplaceByComponentAction
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public ReplaceByComponentAction(ComponentPreference prefs,
ComponentFactory factory, EditManager em, SelectionManager sm,
ComponentServiceIcon icon) {
super("Replace by component...", icon.getIcon());
this.prefs = prefs;
this.em = em;
this.sm = sm;
this.factory = factory;
}
示例8: ComponentServiceCreatorAction
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public ComponentServiceCreatorAction(Processor processor, SelectionManager sm,
ComponentCreatorSupport support, ComponentServiceIcon icon) {
super("Create component...", icon.getIcon());
this.support = support;
p = processor;
profile = sm.getSelectedProfile();
}
示例9: ComponentSearchAction
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public ComponentSearchAction(ComponentPreference prefs,
ComponentFactory factory, EditManager em, MenuManager mm,
SelectionManager sm, ServiceRegistry sr, ComponentServiceIcon icon) {
super(SEARCH_FOR_COMPONENTS, icon.getIcon());
this.prefs = prefs;
this.factory = factory;
this.em = em;
this.mm = mm;
this.sm = sm;
this.sr = sr;
this.icon = icon;
}
示例10: WSDLActivityContextualView
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public WSDLActivityContextualView(Activity activity, EditManager editManager, FileManager fileManager,
SelectionManager selectionManager, ActivityIconManager activityIconManager,
ColourManager colourManager, CredentialManager credentialManager,
ServiceDescriptionRegistry serviceDescriptionRegistry) {
super(activity, editManager, selectionManager, colourManager);
this.fileManager = fileManager;
this.activityIconManager = activityIconManager;
this.credentialManager = credentialManager;
this.serviceDescriptionRegistry = serviceDescriptionRegistry;
}
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:11,代码来源:WSDLActivityContextualView.java
示例11: ReportViewComponent
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public ReportViewComponent(EditManager editManager, FileManager fileManager, MenuManager menuManager,
ReportManager reportManager, Workbench workbench,
SelectionManager selectionManager, List<VisitExplainer> visitExplainers) {
super();
this.editManager = editManager;
this.fileManager = fileManager;
this.menuManager = menuManager;
this.reportManager = reportManager;
this.workbench = workbench;
openedWorkflowsManager = selectionManager;
this.visitExplainers = visitExplainers;
reportManager.addObserver(new ReportManagerObserver());
fileManager.addObserver(fileManagerObserver);
initialise();
}
示例12: AbstractAddXMLSplitterAction
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public AbstractAddXMLSplitterAction(Activity activity,
JComponent owner, EditManager editManager, SelectionManager selectionManager) {
this.activity = activity;
this.owner = owner;
this.editManager = editManager;
this.selectionManager = selectionManager;
}
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:8,代码来源:AbstractAddXMLSplitterAction.java
示例13: CutProcessorAction
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public CutProcessorAction(Workflow dataflow, Processor processor,
Component component, EditManager editManager,
SelectionManager selectionManager) {
this.dataflow = dataflow;
this.processor = processor;
this.component = component;
this.editManager = editManager;
this.selectionManager = selectionManager;
putValue(SMALL_ICON, cutIcon);
putValue(NAME, "Cut");
putValue(MNEMONIC_KEY, VK_C);
}
示例14: getInstance
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public static Action getInstance(EditManager editManager,
MenuManager menuManager, SelectionManager selectionManager,
ServiceRegistry serviceRegistry) {
if (instance == null)
instance = new PasteGraphComponentAction(editManager, menuManager,
selectionManager, serviceRegistry);
return instance;
}
示例15: RunSelectorComponent
import org.apache.taverna.workbench.selection.SelectionManager; //导入依赖的package包/类
public RunSelectorComponent(RunService runSevice,
SelectionManager selectionManager, Path runStore) {
this.runService = runSevice;
this.selectionManager = selectionManager;
this.runStore = runStore;
selectionManager.addObserver(new SelectionManagerObserver());
}