本文整理汇总了Java中org.eclipse.bpmn2.GlobalScriptTask类的典型用法代码示例。如果您正苦于以下问题:Java GlobalScriptTask类的具体用法?Java GlobalScriptTask怎么用?Java GlobalScriptTask使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GlobalScriptTask类属于org.eclipse.bpmn2包,在下文中一共展示了GlobalScriptTask类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getText
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
String label = ((GlobalScriptTask) object).getName();
return label == null || label.length() == 0 ? getString("_UI_GlobalScriptTask_type")
: getString("_UI_GlobalScriptTask_type") + " " + label;
}
示例2: notifyChanged
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(GlobalScriptTask.class)) {
case Bpmn2Package.GLOBAL_SCRIPT_TASK__SCRIPT:
case Bpmn2Package.GLOBAL_SCRIPT_TASK__SCRIPT_LANGUAGE:
fireNotifyChanged(new ViewerNotification(notification,
notification.getNotifier(), false, true));
return;
}
super.notifyChanged(notification);
}
示例3: basicSetGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetGlobalScriptTask(
GlobalScriptTask newGlobalScriptTask, NotificationChain msgs) {
return ((FeatureMap.Internal) getMixed()).basicAdd(
Bpmn2Package.Literals.DOCUMENT_ROOT__GLOBAL_SCRIPT_TASK,
newGlobalScriptTask, msgs);
}
示例4: marshallGlobalTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
protected void marshallGlobalTask(GlobalTask globalTask,
JsonGenerator generator) {
if (globalTask instanceof GlobalBusinessRuleTask) {
} else if (globalTask instanceof GlobalManualTask) {
} else if (globalTask instanceof GlobalScriptTask) {
} else if (globalTask instanceof GlobalUserTask) {
} else {
}
}
示例5: caseGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
@Override
public Adapter caseGlobalScriptTask(GlobalScriptTask object) {
return createGlobalScriptTaskAdapter();
}
示例6: setGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setGlobalScriptTask(GlobalScriptTask newGlobalScriptTask) {
((FeatureMap.Internal) getMixed()).set(
Bpmn2Package.Literals.DOCUMENT_ROOT__GLOBAL_SCRIPT_TASK,
newGlobalScriptTask);
}
示例7: caseGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
@Override
public Adapter caseGlobalScriptTask(GlobalScriptTask object) {
return createGlobalScriptTaskAdapter();
}
示例8: basicSetGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetGlobalScriptTask(GlobalScriptTask newGlobalScriptTask,
NotificationChain msgs) {
return ((FeatureMap.Internal) getMixed()).basicAdd(
Bpmn2Package.Literals.DOCUMENT_ROOT__GLOBAL_SCRIPT_TASK, newGlobalScriptTask, msgs);
}
示例9: getFixture
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* Returns the fixture for this Global Script Task test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected GlobalScriptTask getFixture() {
return (GlobalScriptTask) fixture;
}
示例10: caseGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* Returns the result of interpreting the object as an instance of '<em>Global Script Task</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Global Script Task</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGlobalScriptTask(GlobalScriptTask object) {
return null;
}
示例11: getGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GlobalScriptTask getGlobalScriptTask() {
return (GlobalScriptTask) getMixed().get(
Bpmn2Package.Literals.DOCUMENT_ROOT__GLOBAL_SCRIPT_TASK, true);
}
示例12: createGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GlobalScriptTask createGlobalScriptTask() {
GlobalScriptTaskImpl globalScriptTask = new GlobalScriptTaskImpl();
return globalScriptTask;
}
示例13: caseGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* Returns the result of interpreting the object as an instance of '<em>Global Script Task</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Global Script Task</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseGlobalScriptTask(GlobalScriptTask object) {
return null;
}
示例14: getGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GlobalScriptTask getGlobalScriptTask() {
return (GlobalScriptTask) getMixed().get(
Bpmn2Package.Literals.DOCUMENT_ROOT__GLOBAL_SCRIPT_TASK, true);
}
示例15: setGlobalScriptTask
import org.eclipse.bpmn2.GlobalScriptTask; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setGlobalScriptTask(GlobalScriptTask newGlobalScriptTask) {
((FeatureMap.Internal) getMixed()).set(
Bpmn2Package.Literals.DOCUMENT_ROOT__GLOBAL_SCRIPT_TASK, newGlobalScriptTask);
}