Package org.evolizer.daforjava.commands.additions

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


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

        return addIncomingDependencies;
View Full Code Here


        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 AddEntitiesViaOutDependenciesCommand(
                planetClassNode,
                fGraphPanel.getGraphLoader(),
                fGraphPanel.getEdgeGrouper(),
                null);
        command.execute();

        org.evolizer.famix.model.entities.FamixClass stellarObjectClass = new org.evolizer.famix.model.entities.FamixClass("thebigvoid.StellarObject", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + stellarObjectClass.getUniqueName(), graph.contains(stellarObjectClass));
        org.evolizer.famix.model.entities.FamixAttribute stellarObjectName = new org.evolizer.famix.model.entities.FamixAttribute("thebigvoid.StellarObject.name", null);
        Assert.assertTrue("Graph must contain FAMIX entity " + stellarObjectName.getUniqueName(), graph.contains(stellarObjectName));
View Full Code Here

TOP

Related Classes of org.evolizer.daforjava.commands.additions.AddEntitiesViaOutDependenciesCommand

Copyright © 2018 www.massapicom. 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.