Package org.evolizer.famix.model.entities

Examples of org.evolizer.famix.model.entities.AbstractFamixEntity


        for (NodeCursor nc = getGraphLoader().getGraph().nodes(); nc.ok(); nc.next()) {
            getEdgeGrouper().reinsertLowLevelEdges(nc.node());
        }

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(fSelectedNode);
        setEditResult(getGraphLoader().addDependentEntitiesAndAssociations(entity, fAssociationType, "from"));
        getEdgeGrouper().groupAll();

        initExecutionSelectionStrategy();
View Full Code Here


        for (NodeCursor nc = getGraphLoader().getGraph().nodes(); nc.ok(); nc.next()) {
            getEdgeGrouper().reinsertLowLevelEdges(nc.node());
        }

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(fSelectedNode);
        setEditResult(getGraphLoader().addDependentEntitiesAndAssociations(entity, fAssociationType, "to"));
        getEdgeGrouper().groupAll();

        initExecutionSelectionStrategy();
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void actionPerformed(ActionEvent event) {
        AbstractFamixEntity entity = fGraphLoader.getGraph().getFamixEntity(fSelectedNode);
        if (entity instanceof FamixClass) {
            AbstractFamixEntity parent = entity.getParent();
            if (parent != null) {
                if (parent instanceof FamixClass) {
                    openInEditor(entity, true);
                } else {
                    openInEditor(entity, false);
View Full Code Here

        for (NodeCursor nc = getGraphLoader().getGraph().nodes(); nc.ok(); nc.next()) {
            getEdgeGrouper().reinsertLowLevelEdges(nc.node());
        }

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(fSelectedNode);
        setEditResult(getGraphLoader().addDependentEntitiesAndAssociations(entity, fAssociationType, "to"));
        getEditResult().addAll(getGraphLoader().addDependentEntitiesAndAssociations(entity, fAssociationType, "from"));
        getEdgeGrouper().groupAll();

        initExecutionSelectionStrategy();
View Full Code Here

                getEdgeGrouper().reinsertLowLevelEdges(nc.node());
            }

            List<AbstractFamixEntity> selectedEntities = new ArrayList<AbstractFamixEntity>();
            for (Node node : fSelectedNodes) {
                AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(node);
                if (entity != null) {
                    selectedEntities.add(entity);
                }
            }
            getEditResult().addAll(getGraphLoader().addEntitiesAndAssociations(selectedEntities));
View Full Code Here

     */
    @Override
    protected List<AbstractFamixEntity> getDependentEntities() {
        Set<AbstractFamixEntity> dependentEntities = new HashSet<AbstractFamixEntity>();

        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());
        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);

        List<? extends FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, getAssociationType(), "from");
        for (FamixAssociation association : associationsToOtherEntities) {
            Edge edge = getGraphLoader().getGraph().getEdge(association);
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected List<FamixAssociation> getAdditionalAssoctionsToRmove() {
        AbstractFamixEntity entity = getGraphLoader().getGraph().getFamixEntity(getSelectedNode());
        List<AbstractFamixEntity> descendants = getGraphLoader().getSnapshotAnalyzer().getDescendants(entity);
        List<FamixAssociation> associationsToOtherEntities = getGraphLoader().getSnapshotAnalyzer().queryAssociationsOfEntities(descendants, null, "to");

        return associationsToOtherEntities;
    }
View Full Code Here

     * @return The list of matched FAMIX entities.
     */
    public List<AbstractFamixEntity> getFamixEntities(List<Node> nodes) {
        List<AbstractFamixEntity> entities = new ArrayList<AbstractFamixEntity>();
        for (Node node : nodes) {
            AbstractFamixEntity entity = getFamixEntity(node);
            if (entity != null) {
                entities.add(entity);
            } else {
                sLogger.error("Entity of node " + node + " not contained in the graph anymore");
            }
View Full Code Here

     */
    private List<AbstractFamixEntity> addParentEntities(List<AbstractFamixEntity> entities) {
        List<AbstractFamixEntity> addedEntities = new ArrayList<AbstractFamixEntity>();

        for (AbstractFamixEntity entity : entities) {
            AbstractFamixEntity parentEntity = entity.getParent();
            if (parentEntity != null && !fGraph.contains(parentEntity)) {
                if (fGraph.createNode(parentEntity) != null) {
                    addedEntities.add(parentEntity);
                }
            }
View Full Code Here

     * FamixMethod that updates the parent node hierarchy of the the given entity.
     *
     * @param entity the entity
     */
    private void checkAndUpdateParentNode(AbstractFamixEntity entity) {
        AbstractFamixEntity parent = entity.getParent();
        if (parent != null) {
            if (fGraph.contains(parent) && fGraph.contains(entity)) {
                Node parentNode = fGraph.getNode(parent);
                Node childNode = fGraph.getNode(entity);
                if (!parentNode.equals(fHierarchyManager.getParentNode(childNode))) {
View Full Code Here

TOP

Related Classes of org.evolizer.famix.model.entities.AbstractFamixEntity

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.