本文整理了Java中net.sf.taverna.t2.workflowmodel.Edit.getSubject()
方法的一些代码示例,展示了Edit.getSubject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Edit.getSubject()
方法的具体详情如下:
包路径:net.sf.taverna.t2.workflowmodel.Edit
类名称:Edit
方法名:getSubject
[英]Return the object to which this edit applies
[中]返回应用此编辑的对象
代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-view
Object subject = edit.getSubject();
if (subject instanceof Dataflow) {
DataflowSelectionModel selectionModel = DataflowSelectionManager
.getInstance().getDataflowSelectionModel(
(Dataflow) edit.getSubject());
Object objectOfEdit = null;
if (edit instanceof AddProcessorEdit) {
代码示例来源:origin: net.sf.taverna.t2.ui-api/contextual-views-api
private void considerEdit(EditManagerEvent message, Edit edit) {
// boolean result = false;
if (edit instanceof CompoundEdit) {
for (Edit subEdit : ((CompoundEdit) edit).getChildEdits()) {
considerEdit(message, subEdit);
}
} else {
Object subject = edit.getSubject();
if (subject == owningProcessor) {
// panel.reevaluate();
setTitle(getRelativeName(owningDataflow, activity));
} else if (subject == owningDataflow) {
if (!owningDataflow.getProcessors().contains(owningProcessor)) {
ActivityConfigurationAction.clearDialog(activity);
}
} else if (subject == activity) {
if (message instanceof DataFlowUndoEvent) {
logger.info("undo of activity edit found");
panel.refreshConfiguration();
} else if (message instanceof DataFlowRedoEvent) {
logger.info("redo of activity edit found");
panel.refreshConfiguration();
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!