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


Java Abstraction类代码示例

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


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

示例1: selectionChanged

import org.eclipse.uml2.uml.Abstraction; //导入依赖的package包/类
/**
 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
 *      org.eclipse.jface.viewers.ISelection)
 */
public void selectionChanged(IAction action, ISelection selection) {
    objList.clear();
    objList = ProjectUtil.getSelectedEObjects(selection);

    if (objList == null || objList.size() < 1) {
        return;
    }

    for (EObject eobject : objList) {
        if (eobject instanceof Lifeline || eobject instanceof Abstraction || eobject instanceof Association
            || eobject instanceof BehaviorExecutionSpecification || eobject instanceof CombinedFragment
            || eobject instanceof Comment || eobject instanceof Connector || eobject instanceof ControlFlow
            || eobject instanceof Dependency || eobject instanceof ExecutionEvent
            || eobject instanceof ExecutionOccurrenceSpecification || eobject instanceof Extend
            || eobject instanceof Generalization || eobject instanceof Include
            || eobject instanceof InteractionOperand || eobject instanceof InterfaceRealization
            || eobject instanceof Message || eobject instanceof MessageOccurrenceSpecification
            || eobject instanceof ObjectFlow || eobject instanceof Realization
            || eobject instanceof ReceiveOperationEvent || eobject instanceof SendOperationEvent
            || eobject instanceof Usage) {
            objList.clear();
            return;
        }
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:30,代码来源:CopyAction.java

示例2: getTypeOperations

import org.eclipse.uml2.uml.Abstraction; //导入依赖的package包/类
/**
 * 해당 Type의 Operation을 리턴한다.
 * 
 * 
 * @param type
 * @return List<Operation>
 * @author 황선림
 */
public static List<Operation> getTypeOperations(Type type) {

    List<Operation> result = new ArrayList<Operation>();
    if (type == null) {
        return result;

    } else if (type instanceof org.eclipse.uml2.uml.Class) {
        org.eclipse.uml2.uml.Class c = (org.eclipse.uml2.uml.Class) type;

        result.addAll(getProperOperations(c.getAllOperations()));

        // operation within interface
        EList<Interface> list = c.getAllImplementedInterfaces();
        for (int i = 0; i < list.size(); i++) {
            result.addAll(getProperOperations(list.get(i).getAllOperations()));
        }

    } else if (type instanceof Interface) {
        result = getProperOperations(((Interface) type).getAllOperations());

    } else {
        return result;

    }

    // operation within Abstract class
    EList<Dependency> dependencyList = type.getClientDependencies();
    EList<NamedElement> suppliers = null;
    for (Dependency dependency : dependencyList) {
        if (dependency instanceof Abstraction) {
            suppliers = dependency.getSuppliers();
            for (NamedElement element : suppliers) {
                if (element instanceof Class) {
                    result.addAll(getProperOperations(((Class) element).getAllOperations()));
                }
            }
        }
    }

    return result;

}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:51,代码来源:SequenceManagerUtil.java

示例3: createAbstraction

import org.eclipse.uml2.uml.Abstraction; //导入依赖的package包/类
/**
 * 
 * 
 * @return org.eclipse.uml2.uml.Abstraction
 */
public static org.eclipse.uml2.uml.Abstraction createAbstraction() {
    Abstraction abstraction = FACTORY.createAbstraction();
    abstraction.addKeyword("abstraction");
    return abstraction;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:11,代码来源:UMLHelper.java

示例4: setReferencedElement

import org.eclipse.uml2.uml.Abstraction; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * This is specialized for the more specific type known in this context.
 * @generated
 */
@Override
public void setReferencedElement(Abstraction newReferencedElement) {
    super.setReferencedElement(newReferencedElement);
}
 
开发者ID:Cooperate-Project,项目名称:CooperateModelingEnvironment,代码行数:11,代码来源:AbstractionImpl.java


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