Examples of AddEntitiesViaInDependenciesCommand


Examples of org.evolizer.daforjava.commands.additions.AddEntitiesViaInDependenciesCommand

        GraphEditPopupMenuAction action = null;
        int index = 0;
        for (final String associationName : FamixAssociationMap.getInstance().getNames()) {
            action = new GraphEditPopupMenuAction(associationName, fGraphPanel);
            action.setDescription("Add incoming '" + associationName + "' dependencies of selected node and connected nodes");
            action.setCommand(new AddEntitiesViaInDependenciesCommand(node, getGraphLoader(), getHierarchicEdgeGrouper(), FamixAssociationMap.getInstance().getType(associationName)));
            addIncomingDependencies.add(action);
            index++;
        }

        return addIncomingDependencies;
View Full Code Here

Examples of org.evolizer.daforjava.commands.additions.AddEntitiesViaInDependenciesCommand

        Node thebigvoidPackageNode = graph.getNode(thebigvoidPackage);
        Node planetClassNode = graph.getNode(planetClass);
        //    Node planetConstructorNode = graph.getNode(planetContstructor);
        Assert.assertEquals(thebigvoidPackageNode + " node should have 1 child nodes before adding the associations", 1, graph.getHierarchyManager().getChildren(thebigvoidPackageNode).size());

        AbstractGraphEditCommand command = new AddEntitiesViaInDependenciesCommand(
                planetClassNode,
                fGraphPanel.getGraphLoader(),
                fGraphPanel.getEdgeGrouper(),
                org.evolizer.famix.model.entities.FamixInvocation.class);
        command.execute();

        org.evolizer.famix.model.entities.FamixClass galaxyClass = new org.evolizer.famix.model.entities.FamixClass("thebigvoid.Galaxy", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + galaxyClass.getUniqueName(), graph.contains(galaxyClass));
        org.evolizer.famix.model.entities.FamixMethod galaxyContstructor = new org.evolizer.famix.model.entities.FamixMethod("thebigvoid.Galaxy.<init>(java.lang.String)", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + galaxyContstructor.getUniqueName(), graph.contains(galaxyContstructor));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.