• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Dependency类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: selectionChanged

import org.eclipse.uml2.uml.Dependency; //导入依赖的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: createDependency

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
private Dependency createDependency(Package pkg, FHIMInformationModel.Dependency dependencyModel) {
    String name = dependencyModel.getName();
    LOG.debug("Dependency: " + name);

    // Client.
    FHIMInformationModel.Type clientModel = dependencyModel.getClient();
    Type client = getTypeForModel(clientModel);
    LOG.debug("    client: " + client.getName());

    // Supplier.
    FHIMInformationModel.Type supplierModel = dependencyModel.getSupplier();
    Type supplier = getTypeForModel(supplierModel);
    LOG.debug("    supplier: " + supplier.getName());

    Dependency dependency = client.createDependency(supplier);
    dependency.setName(name);

    return dependency;
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:20,代码来源:Model2UMLConverter.java


示例3: testDependencyStereotypeApplication

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
public void testDependencyStereotypeApplication() throws CoreException {
    String profileSource = "";
    profileSource += "profile someProfile;\n";
    profileSource += "stereotype my_dep_stereotype extends UML::Dependency end;\n";
    profileSource += "end.\n";

    String modelSource = "";
    modelSource += "model someModel;\n";
    modelSource += "import base;\n";
    modelSource += "apply someProfile;\n";
    modelSource += "class SomeClass\n";
    modelSource += "  [my_dep_stereotype] dependency Integer;\n";
    modelSource += "end;\n";
    modelSource += "end.\n";
    parseAndCheck(profileSource, modelSource);
    Class class_ = (Class) getRepository().findNamedElement("someModel::SomeClass",
            IRepository.PACKAGE.getClassifier(), null);
    Dependency dependency = class_.getClientDependency(null);
    Stereotype stereotype = (Stereotype) getRepository().findNamedElement("someProfile::my_dep_stereotype",
            IRepository.PACKAGE.getStereotype(), null);
    assertNotNull(stereotype);
    assertTrue(dependency.isStereotypeApplied(stereotype));
}
 
开发者ID:abstratt,项目名称:textuml,代码行数:24,代码来源:StereotypeTests.java


示例4: setBase_Dependency

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public void setBase_Dependency(Dependency newBase_Dependency) {
	Dependency oldBase_Dependency = base_Dependency;
	base_Dependency = newBase_Dependency;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, ExtLibraryProfilePackage.BORROWS__BASE_DEPENDENCY, oldBase_Dependency, base_Dependency));
}
 
开发者ID:bmaggi,项目名称:library-training,代码行数:13,代码来源:BorrowsImpl.java


示例5: eSet

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
	case ExtLibraryProfilePackage.BORROWS__BASE_DEPENDENCY:
		setBase_Dependency((Dependency) newValue);
		return;
	}
	super.eSet(featureID, newValue);
}
 
开发者ID:bmaggi,项目名称:library-training,代码行数:16,代码来源:BorrowsImpl.java


示例6: eUnset

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
	case ExtLibraryProfilePackage.BORROWS__BASE_DEPENDENCY:
		setBase_Dependency((Dependency) null);
		return;
	}
	super.eUnset(featureID);
}
 
开发者ID:bmaggi,项目名称:library-training,代码行数:16,代码来源:BorrowsImpl.java


示例7: replaceRelatedModel

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * 추가적인 연결정보 처리 필요. 종속성과 파라미터에 대한 정보 변경만 되고 있음.
 * 
 * @param elementList
 * @param before
 * @param targetClass
 *            void
 */
private void replaceRelatedModel(List<Element> elementList, Class before, Class targetClass) {
    if (elementList == null) {
        return;
    }

    for (Element element : elementList) {
        if (element instanceof Property) {
            if (before.equals(((Property) element).getType())) {
                ((Property) element).setType(targetClass);
            }

        } else if (element instanceof Dependency) {
            if (((Dependency) element).getClients().contains(before)) {
                before.getClientDependencies().remove(element);
                ((Dependency) element).getClients().remove(before);
                ((Dependency) element).getClients().add(targetClass);
            } else if (((Dependency) element).getSuppliers().contains(before)) {
                ((Dependency) element).getSuppliers().remove(before);
                ((Dependency) element).getSuppliers().add(targetClass);
            }
            if (element.eContainer().equals(before)) {
                before.getClientDependencies().remove(element);
                targetClass.getClientDependencies().add((Dependency) element);
            }
        } else if (element instanceof Parameter) {
            ((Parameter) element).setType(targetClass);
        }
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:38,代码来源:SemanticModelHandler.java


示例8: checkRelationTarget

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * relation의 source와 target이 같은지 검사
 * 
 * @param relationship
 * @param sourceElement
 * @param targetElement
 * @return boolean
 */
private static boolean checkRelationTarget(Relationship relationship, NamedElement targetElement) {
    if (relationship instanceof Dependency) {
        Dependency dependency = (Dependency) relationship;
        EList<NamedElement> suppliers = dependency.getSuppliers();
        for (NamedElement element : suppliers) {
            if (targetElement.equals(element)) {
                return true;
            }
        }

    } else if (relationship instanceof Generalization) {
        Generalization generalization = (Generalization) relationship;
        if (targetElement.equals(generalization.getGeneral())) {
            return true;
        }

    } else if (relationship instanceof Association) {
        Association association = (Association) relationship;
        EList<Type> endTypes = association.getEndTypes();
        for (Type type : endTypes) {
            if (targetElement.equals(type)) {
                return true;
            }
        }

    }

    return false;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:38,代码来源:UMLModelerNotationModelHandler.java


示例9: deleteDirectedAttributes

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * @see nexcore.tool.uml.manager.command.DeleteUMLDirectedRelationshipCommand#deleteDirectedAttributes()
 */
@Override
protected void deleteDirectedAttributes() {
    Dependency dependency = (Dependency) this.targetElement;
    // this.source = dependency.getSources().get(0);
    // this.target = dependency.getTargets().get(0);
    dependency.getClients().clear();
    dependency.getSuppliers().clear();
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:12,代码来源:DeleteUMLDependencyCommand.java


示例10: getCommand

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * getCommand
 *  
 * @param selectedElement
 * @return Command
 */
public static Command getCommand(Element selectedElement) {

    if (null == selectedElement.eContainer()) {
        return null;
    }
    Command deleteCommand = null;
    if (selectedElement instanceof Diagram) {
        deleteCommand = new DeleteUMLDiagramCommand((Diagram) selectedElement);
    } else if (selectedElement instanceof Association) {
        deleteCommand = new DeleteUMLAssociationCommand((Association) selectedElement);
    } else if (selectedElement instanceof Dependency) {
        deleteCommand = new DeleteUMLDependencyCommand(selectedElement);
    } else if (selectedElement instanceof Include) {
        deleteCommand = new DeleteUMLIncludeCommand(selectedElement);
    } else if (selectedElement instanceof Extend) {
        deleteCommand = new DeleteUMLExtendCommand(selectedElement);
    } else if (selectedElement instanceof Generalization) {
        deleteCommand = new DeleteUMLGeneralizationCommand(selectedElement);
    } else if (selectedElement instanceof InterfaceRealization) {
        deleteCommand = new DeleteUMLInterfaceRealizationCommand(selectedElement);
    } else if (selectedElement instanceof Realization) {
        deleteCommand = new DeleteUMLRealizationCommand(selectedElement);
    } else if (selectedElement instanceof Property) {
        deleteCommand = new DeleteUMLPropertyCommand((Property) selectedElement);
    } else if (selectedElement instanceof ActivityEdge) {
        deleteCommand = new DeleteUMLActivityEdgeCommand((ActivityEdge) selectedElement);
    } else if (selectedElement instanceof ActivityNode) {
        deleteCommand = new DeleteUMLActivityNodeCommand((ActivityNode) selectedElement);
    } else if ((selectedElement instanceof Lifeline) || (selectedElement instanceof Message)) {
        deleteCommand = new DeleteUMLSequenceElementCommand((NamedElement)selectedElement);
    } else if (selectedElement instanceof NamedElement) {
        deleteCommand = new DeleteUMLPackageableElementCommand((NamedElement) selectedElement);
    }//
    return deleteCommand;
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:42,代码来源:DeleteUMLElementCommandFactory.java


示例11: handleNewTarget

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * 타켓의 변경 처리 void
 */
private void handleNewTarget() {

    oldTarget = (AbstractNode) connection.getTarget();

    diagram.getConnectionList().remove(connection);
    Dimension targetAnchor = connection.getTargetAnchor();
    if (targetAnchor != null) {
        targetAnchor.setWidth(targetAnchorPoint.x);
        targetAnchor.setHeight(targetAnchorPoint.y);
    }
    reconnectTarget(newTarget);
    diagram.getConnectionList().add(connection);

    if (this.connection.getUmlModel() instanceof Relationship) {
        Relationship relationship = (Relationship) this.connection.getUmlModel();
        if (relationship != null) {
            switch (relationship.eClass().getClassifierID()) {
                case UMLPackage.ASSOCIATION:
                    handleReconnectForAssociation((Association) relationship, this.oldTarget, this.newTarget);
                    break;
                case UMLPackage.EXTEND:
                    handlerNewTargetForExtend((Extend) relationship);
                    break;
                case UMLPackage.INCLUDE:
                    handlerNewTargetForInclude((Include) relationship);
                    break;
                case UMLPackage.GENERALIZATION:
                    handlerNewTargetForGeneralization((Generalization) relationship);
                    break;
                default:
                    if (relationship instanceof Dependency) {
                        handleNewTargetForDependency((Dependency) relationship);
                    }
                    return;
            }
        }
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:42,代码来源:ReconnectConnectionCommand.java


示例12: handleNewSource

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * 소스의 변경 처리. void
 */
private void handleNewSource() {
    oldSource = (AbstractNode) connection.getSource();

    diagram.getConnectionList().remove(connection);
    Dimension sourceAnchor = connection.getSourceAnchor();
    if (sourceAnchor != null) {
        sourceAnchor.setWidth(sourceAnchorPoint.x);
        sourceAnchor.setHeight(sourceAnchorPoint.y);
    }
    reconnectSource(newSource);
    diagram.getConnectionList().add(connection);

    if (this.connection.getUmlModel() instanceof Relationship) {
        Relationship relationship = (Relationship) this.connection.getUmlModel();
        if (relationship != null) {
            switch (relationship.eClass().getClassifierID()) {
                case UMLPackage.ASSOCIATION:
                    handleReconnectForAssociation((Association) relationship, this.oldSource, this.newSource);
                    break;
                case UMLPackage.EXTEND:
                case UMLPackage.INCLUDE:
                    if (relationship instanceof Include) {
                        handlerNewSourceForInclude((Include) relationship);
                    } else {
                        handlerNewSourceForExtend((Extend) relationship);
                    }
                    break;
                case UMLPackage.GENERALIZATION:
                    handlerNewSourceForGeneralization((Generalization) relationship);
                    break;
                default:
                    if (relationship instanceof Dependency) {
                        handleNewSourceForDependency((Dependency) relationship);
                    }
                    return;
            }
        }
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:43,代码来源:ReconnectConnectionCommand.java


示例13: undo

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * 
 * @see org.eclipse.gef.commands.Command#undo()
 */
public void undo() {
    NamedElement client = (NamedElement) sourceNode.getUmlModel();
    NamedElement supplier = (NamedElement) targetNode.getUmlModel();
    RelationType relationType = this.connection.getRelationType();

    if (RelationType.ABSTRACTION.equals(relationType) || RelationType.USAGE.equals(relationType)
        || RelationType.DEPENDENCY.equals(relationType)) {
        UMLManager.unsetDependency((Dependency) connection.getUmlModel());
    } else if (RelationType.EXTEND.equals(relationType)) {
        UMLManager.unsetExtendDependency((Extend) connection.getUmlModel());
    } else if (RelationType.INCLUDE.equals(relationType)) {
        UMLManager.unsetIncludeDependency((Include) connection.getUmlModel());
    } else if (RelationType.ASSOCIATION.equals(relationType) || RelationType.AGGREGATION.equals(relationType)
        || RelationType.COMPOSITION.equals(relationType) || RelationType.DIRECTED_AGGREGATION.equals(relationType)
        || RelationType.DIRECTED_ASSOCIATION.equals(relationType)
        || RelationType.DIRECTED_COMPOSITION.equals(relationType)) {
        UMLManager.unsetAssociation((Association) connection.getUmlModel());
    } else if (RelationType.GENERALIZATION.equals(relationType)) {
        UMLManager.unsetGeneralization((Generalization) connection.getUmlModel(), (Classifier) client);
    } else if (RelationType.REALIZATION.equals(relationType)
        || RelationType.INTERFACE_REALIZATION.equals(relationType)
        || RelationType.COMPONENT_REALIZATION.equals(relationType)) {
        UMLManager.unsetRealization((Realization) connection.getUmlModel(), supplier, client);
    } else if (RelationType.CONTROL_FLOW.equals(relationType)) {
        // UMLManager.setControlFlow((ControlFlow)connection.getUmlModel(),supplier,
        // client);
    } else if (RelationType.OBJECT_FLOW.equals(relationType)) {
        // UMLManager.setObjectFlow((ObjectFlow)connection.getUmlModel(),supplier,
        // client);
    }

    DiagramUtil.detachSourceOfConnection(connection);
    DiagramUtil.detachTargetOfConnection(connection);
    if (parent instanceof Diagram) {
        ((Diagram) parent).getConnectionList().remove(connection);
    } else if (parent instanceof ContainerNode) {
        ((ContainerNode) parent).getConnectionList().remove(connection);
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:44,代码来源:CreateConnectionCommand.java


示例14: buildDependencyModel

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
private FHIMInformationModel.Dependency buildDependencyModel(Dependency dependency) {
    String name = dependency.getName();
    LOG.debug("Dependency: " + name);

    // Expect exactly one client.
    EList<NamedElement> clients = dependency.getClients();
    int clientCount = clients.size();
    if (clientCount != 1) {
        LOG.warn("Expected 1 client, found " + clientCount);
    }
    NamedElement client = clients.get(0);
    String clientName = client.getName();
    LOG.debug("    client: " + clientName);
    FHIMInformationModel.Type clientModel = getTypeModel(clientName);

    // Expect exactly one supplier.
    EList<NamedElement> suppliers = dependency.getSuppliers();
    int supplierCount = suppliers.size();
    if (supplierCount != 1) {
        LOG.warn("Expected 1 supplier, found " + supplierCount);
    }
    NamedElement supplier = suppliers.get(0);
    String supplierName = supplier.getName();
    LOG.debug("    supplier: " + supplierName);
    FHIMInformationModel.Type supplierModel = getTypeModel(supplierName);

    return new FHIMInformationModel.Dependency(name, clientModel, supplierModel);
}
 
开发者ID:Apelon-VA,项目名称:ISAAC,代码行数:29,代码来源:UML2ModelConverter.java


示例15: renderObject

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
public boolean renderObject(Dependency dependency, IndentedPrintWriter writer, IRenderingSession context) {
    if (dependency.getSuppliers().isEmpty())
        return false;
    writer.write("dependency ");
    writer.write(TextUMLRenderingUtils.getQualifiedNameIfNeeded(dependency.getSuppliers().get(0),
            dependency.getNamespace()));
    writer.println(";");
    return true;
}
 
开发者ID:abstratt,项目名称:textuml,代码行数:10,代码来源:DependencyRenderer.java


示例16: caseADependencyDecl

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
@Override
public void caseADependencyDecl(ADependencyDecl node) {
    final Classifier referringClassifier = (Classifier) namespaceTracker.currentNamespace(null);
    final Dependency newDependency = (Dependency) referringClassifier.getNearestPackage().createPackagedElement(
            null, UMLPackage.Literals.DEPENDENCY);
    newDependency.getClients().add(referringClassifier);
    annotationProcessor.applyAnnotations(newDependency, node.getDependency());
    new DeferredCollectionFiller(sourceContext, referringClassifier, newDependency.getSuppliers()).process(node
            .getTypeIdentifier());
}
 
开发者ID:abstratt,项目名称:textuml,代码行数:11,代码来源:StructureGenerator.java


示例17: getPimConstraintModels

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
@Operation(contextual = true, kind = Operation.Kind.QUERY)
public static LinkedHashSet<Package> getPimConstraintModels(final Package self) {
    final LinkedHashSet<Package> pimConstraintModels = new LinkedHashSet<>();
    for (final Dependency d : self.getClientDependencies()) {
        if (UMLPackage.Literals.REALIZATION.isInstance(d) && getAppliedReferencesStereotype(d) != null) {
            pimConstraintModels
                    .addAll(EcoreUtil.<Package> getObjectsByType(d.getClients(), UMLPackage.Literals.PACKAGE));
        }
    }
    return pimConstraintModels;
}
 
开发者ID:info-sharing-environment,项目名称:NIEM-Modeling-Tool,代码行数:12,代码来源:NiemQvtLibrary.java


示例18: getTypeOperations

import org.eclipse.uml2.uml.Dependency; //导入依赖的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


示例19: connectControlToVO

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
/**
 * 
 * 
 * @param seqDgm
 * @param controlClassMap
 * @param voClassMap
 * @param seqElmtMap
 *            void
 */
public static void connectControlToVO(Diagram seqDgm, HashMap controlClassMap, HashMap voClassMap,
                                      HashMap seqElmtMap) {

    org.eclipse.uml2.uml.Class voClass = null;
    Dependency depend = null;
    NotationNode srcNode = null;
    NotationNode tgtNode = null;

    Set controlKeyset = controlClassMap.keySet();
    Set voKeyset = voClassMap.keySet();
    String controlKey = null;
    String voKey = null;
    org.eclipse.uml2.uml.Class controlClass = null;

    for (Iterator itr = controlKeyset.iterator(); itr.hasNext();) {
        controlKey = (String) itr.next();
        controlClass = (org.eclipse.uml2.uml.Class) controlClassMap.get(controlKey);

        for (Iterator itr2 = voKeyset.iterator(); itr2.hasNext();) {
            voKey = (String) itr2.next();
            voClass = (org.eclipse.uml2.uml.Class) voClassMap.get(voKey);

            try {
                depend = ClassDiagramUtil.getDependency(controlClass, voClass);
                srcNode = (NotationNode) seqElmtMap.get(controlClass.getName().toLowerCase());
                tgtNode = (NotationNode) seqElmtMap.get(voClass.getName().toLowerCase());

                if (srcNode != null && tgtNode != null && srcNode != tgtNode) {
                    // TODO: UMLModeler.getUMLDiagramHelper().createEdge()
                    // 개발
                    // UMLModeler.getUMLDiagramHelper().createEdge(srcNode,
                    // tgtNode, depend);
                }

            } catch (Exception e) {
                // Log.error("# " + seqDgm.getName() +
                // Messages.getString("CreateClassDiagram_LOG_MSG_ERROR_CREATEASSOC1")
                // + srcElmt.getName()+
                // Messages.getString("CreateClassDiagram_LOG_MSG_ERROR_CREATEASSOC2")
                // + tgtElmt.getName() +
                // Messages.getString("CreateClassDiagram_LOG_MSG_ERROR_CREATEASSOC3"));
                continue;
            }
        }
    }
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:56,代码来源:ClassDiagramUtil.java


示例20: getSupplierDependency

import org.eclipse.uml2.uml.Dependency; //导入依赖的package包/类
@Operation(contextual = true, kind = Operation.Kind.QUERY)
public static LinkedHashSet<Dependency> getSupplierDependency(final NamedElement self) {
    return new LinkedHashSet<>(self.getClientDependencies());
}
 
开发者ID:info-sharing-environment,项目名称:NIEM-Modeling-Tool,代码行数:5,代码来源:NiemQvtLibrary.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ThreadDeathEvent类代码示例发布时间:2022-05-22
下一篇:
Java Filter类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap