Examples of DependencyGraph


Examples of org.evolizer.daforjava.graph.data.DependencyGraph

    /**
     * Open up selected, added entities.
     */
    private void expandToEntities() {
        DependencyGraph graph = getGraphLoader().getGraph();
        for (AbstractFamixEntity entity : fEntities) {
            List<AbstractFamixEntity> parentEntities = getGraphLoader().getSnapshotAnalyzer().getParentEntities(entity);
            for (int i = parentEntities.size() - 1; i >= 0; i--) {
                Node parentNode = graph.getNode(parentEntities.get(i));
                if (parentNode != null) {
                    GroupNodeRealizer gr = (GroupNodeRealizer) graph.getRealizer(parentNode);
                    if (gr.isGroupClosed()) {
                        getEdgeGrouper().handleOpenFolder(parentNode);
                    }
                }
            }
View Full Code Here

Examples of org.evolizer.daforjava.graph.data.DependencyGraph

    /**
     * Update the selection.
     */
    public void updateSelection() {
        DependencyGraph graph = getCommand().getGraphLoader().getGraph();

        graph.unselectAll();
        for (Node node : getNodesToSelect()) {
            graph.setSelected(node, true);
        }
        for (Edge edge : getEdgesToSelect()) {
            graph.setSelected(edge, true);
        }
    }
View Full Code Here

Examples of org.evolizer.daforjava.graph.data.DependencyGraph

    @Override
    public void initSelection() {
        Set<Node> nodesToSelect = new HashSet<Node>();

        EditResult editResult = getCommand().getEditResult();
        DependencyGraph graph = getCommand().getGraphLoader().getGraph();

        if (!editResult.isEmpty()) {
            for (AbstractFamixEntity entity : editResult.getEntities()) {
                Node node = graph.getNode(entity);
                if (node != null) {
                    nodesToSelect.add(node);
                }
            }
        }
View Full Code Here

Examples of org.evolizer.daforjava.graph.data.DependencyGraph

     * {@inheritDoc}
     */
    @Override
    public void initSelection() {
        Set<Node> nodesToSelect = new HashSet<Node>();
        DependencyGraph graph = getCommand().getGraphLoader().getGraph();

        for (AbstractFamixEntity entity : fEntities) {
            Node node = graph.getNode(entity);
            if (node != null) {
                nodesToSelect.add(node);
            } else {
                sLogger.error("Could not determine graph node of FAMIX entity " + entity.getUniqueName());
            }
View Full Code Here

Examples of org.evolizer.daforjava.graph.data.DependencyGraph

     */
    @Override
    public void initSelection() {
        Set<Node> nodesToSelect = new HashSet<Node>();

        DependencyGraph graph = getCommand().getGraphLoader().getGraph();

        nodesToSelect.add(fFolderNode);
        for (NodeCursor nc = graph.getHierarchyManager().getChildren(fFolderNode); nc.ok(); nc.next()) {
            nodesToSelect.add(nc.node());

        }

        setNodesToSelect(nodesToSelect);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.dependencies.graph.DependencyGraph

    private void viewDependencies(IntegrationEntity entity) {
        DependencyStore deps = getDependencies(entity);
        DisposableCollection disposables = new DisposableCollection(deps);
        try {
            DependencyGraph ui = new DependencyGraph(entity, deps, new NodeUiFactoryImpl(entity));
            disposables.add(ui);
            ui.setPageDisplayer(pageDisplayer);
            UiProviderDialogDisplayer.display(appWin.getFrame(), ui, "Dependencies", KongaDialog.CLOSE_ONLY,
                            ViewDependenciesAction.class);
        } finally {
            disposables.dispose();
        }
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.DependencyGraph

 
  public StackConfig(SymbolTableHandler symbolTableHandler) throws MaltChainedException {
    super();
    stack = new Stack<DependencyNode>();
    input = new Stack<DependencyNode>();
    dependencyGraph = new DependencyGraph(symbolTableHandler);
  }
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.DependencyGraph

 
  public CovingtonConfig(SymbolTableHandler symbolTableHandler, boolean cr, boolean cs) throws MaltChainedException {
    super();
    input = new ArrayList<DependencyNode>();
    dependencyGraph = new DependencyGraph(symbolTableHandler);
    setAllowRoot(cr);
    setAllowShift(cs);
  }
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.DependencyGraph

 
  public NivreConfig(SymbolTableHandler symbolTableHandler, boolean allowRoot, boolean allowReduce) throws MaltChainedException {
    super();
    stack = new Stack<DependencyNode>();
    input = new Stack<DependencyNode>();
    dependencyGraph = new DependencyGraph(symbolTableHandler);
    setAllowRoot(allowRoot);
    setAllowReduce(allowReduce);
  }
View Full Code Here

Examples of org.maltparserx.core.syntaxgraph.DependencyGraph

 
  public PlanarConfig(SymbolTableHandler symbolTableHandler, String noCoveredRoots , String acyclicity , String connectedness , String rootHandling ) throws MaltChainedException {
    super();
    stack = new Stack<DependencyNode>();
    input = new Stack<DependencyNode>();
    dependencyGraph = new DependencyGraph(symbolTableHandler);
    setRootHandling(rootHandling);
    setNoCoveredRoots(Boolean.valueOf(noCoveredRoots));
    setAcyclicity(Boolean.valueOf(acyclicity));
    setConnectedness(connectedness);
  }
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.