当前位置: 首页>>代码示例>>Java>>正文


Java ActivityFinalNode类代码示例

本文整理汇总了Java中org.eclipse.uml2.uml.ActivityFinalNode的典型用法代码示例。如果您正苦于以下问题:Java ActivityFinalNode类的具体用法?Java ActivityFinalNode怎么用?Java ActivityFinalNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ActivityFinalNode类属于org.eclipse.uml2.uml包,在下文中一共展示了ActivityFinalNode类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateNodesToBeAdded

import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
/**
 * Returns the types of nodes that are to be added
 * @return Returns the types of nodes that are to be added
 */
private List<java.lang.Class<? extends Element>> generateNodesToBeAdded() {
	List<java.lang.Class<? extends Element>> nodes = new LinkedList<>(Arrays.asList(
			AcceptEventAction.class,
			Activity.class,
			ActivityFinalNode.class,
			AddStructuralFeatureValueAction.class,
			AddVariableValueAction.class,
			BroadcastSignalAction.class,
			CallBehaviorAction.class, 
			CallOperationAction.class,
			CreateObjectAction.class,
			DecisionNode.class,
			DestroyObjectAction.class,
			FinalNode.class,
			FlowFinalNode.class,
			ForkNode.class,
			InitialNode.class,
			JoinNode.class,
			MergeNode.class,
			OpaqueAction.class,
			ReadSelfAction.class,
			ReadStructuralFeatureAction.class,
			ReadVariableAction.class,
			SendObjectAction.class,
			SendSignalAction.class,
			ValueSpecificationAction.class
		));
	
	if(PreferencesManager.getBoolean(PreferencesManager.ACTIVITY_DIAGRAM_COMMENT_PREF))
		nodes.add(Comment.class);
	
	return nodes;
}
 
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:38,代码来源:ActivityDiagramElementsManager.java

示例2: isFinal

import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
/**
 * Is the action a final action (i.e. followed by an ActivityFinalNode)?
 */
public static boolean isFinal(Action toCheck) {
    for (ActivityEdge outgoing : toCheck.getOutgoings())
        if (outgoing.getTarget() instanceof ActivityFinalNode)
            return true;
    return false;
}
 
开发者ID:abstratt,项目名称:textuml,代码行数:10,代码来源:ActivityUtils.java

示例3: makeFinal

import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
/** Makes an action a final action (i.e. followed by an ActivityFinalNode). */
public static void makeFinal(StructuredActivityNode block, Action lastAction) {
    ActivityFinalNode finalNode = (ActivityFinalNode) block.createNode(null,
            UMLPackage.Literals.ACTIVITY_FINAL_NODE);
    ControlFlow controlFlow = (ControlFlow) block.createEdge(null, UMLPackage.Literals.CONTROL_FLOW);
    controlFlow.setSource(lastAction);
    controlFlow.setTarget(finalNode);
}
 
开发者ID:abstratt,项目名称:textuml,代码行数:9,代码来源:ActivityUtils.java

示例4: getFinalAction

import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
public static Action getFinalAction(StructuredActivityNode startingPoint) {
    ActivityFinalNode finalNode = (ActivityFinalNode) ActivityUtils.findNode(startingPoint,
            new MDDUtil.EClassMatcher(Literals.ACTIVITY_FINAL_NODE));
    if (finalNode == null)
        return null;
    return getControlSource(finalNode);
}
 
开发者ID:abstratt,项目名称:textuml,代码行数:8,代码来源:ActivityUtils.java

示例5: createFinalNode

import org.eclipse.uml2.uml.ActivityFinalNode; //导入依赖的package包/类
public ActivityFinalNode createFinalNode(String name) {
	return (ActivityFinalNode) createNode(name, UMLPackage.Literals.ACTIVITY_FINAL_NODE);
}
 
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:4,代码来源:ActivityEditor.java


注:本文中的org.eclipse.uml2.uml.ActivityFinalNode类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。