Examples of EntityConnectionData


Examples of org.eclipse.zest.core.viewers.EntityConnectionData

     * @param root
     * @param currentSelection
     */
    public void setCurrentSelection(IvyNodeElement root, IvyNodeElement currentSelection) {
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            EntityConnectionData entityConnectionData = (EntityConnectionData) iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.unReveal(entityConnectionData);
            }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

        }
    }

    public IFigure getTooltip(Object entity) {
        if (entity instanceof EntityConnectionData) {
            EntityConnectionData connection = (EntityConnectionData) entity;
            IvyNodeElement source = (IvyNodeElement) connection.source;
            IvyNodeElement dest = (IvyNodeElement) connection.dest;

            String[] confs = dest.getCallerConfigurations(source);
            String tooltipText = "";
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

            Map/* <IvyNodeElement, Color> */highlightEntities) {
        highlightEntities.put(node, entityColor);

        IvyNodeElement[] directDependencies = node.getDependencies();
        for (int i = 0; i < directDependencies.length; i++) {
            highlightRelationships.put(new EntityConnectionData(node, directDependencies[i]), relationshipColor);
            highlightDependenciesRecursive(directDependencies[i], highlightRelationships, highlightEntities);
        }
    }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

        if (selected != null) {
            highlightEntities.put(root, entityColor);
            IvyNodeElement[] dependencies = root.getDependencies();
            for (int i = 0; i < dependencies.length; i++) {
                highlightEntities.put(dependencies[i], entityColor);
                highlightRelationships.put(new EntityConnectionData(root, dependencies[i]), relationshipColor);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

            Map/* <EntityConnectionData> */highlightRelationships, Map/* <IvyNodeElement> */highlightEntities) {
        if (selected != null) {
            highlightEntities.put(selected, entityColor);
            IvyNodeElement[] directCallers = selected.getCallers();
            for (int i = 0; i < directCallers.length; i++) {
                highlightRelationships.put(new EntityConnectionData(directCallers[i], selected), relationshipColor);
                highlightEntities.put(directCallers[i], entityColor);
                highlightEntities.put(directCallers[i], entityColor);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

    private void highlightCallersRecursive(IvyNodeElement node, Map/* <EntityConnectionData> */highlightRelationships,
            Map/* <IvyNodeElement> */highlightEntities) {
        highlightEntities.put(node, entityColor);
        IvyNodeElement[] directCallers = node.getCallers();
        for (int i = 0; i < directCallers.length; i++) {
            highlightRelationships.put(new EntityConnectionData(directCallers[i], node), relationshipColor);
            highlightCallersRecursive(directCallers[i], highlightRelationships, highlightEntities);
        }
    }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

        // Calculates the smart path.
        if (selected != null) {
            IvyNodeElement[] path = getShortestPathToDescendent(root, selected);
            if (path.length > 1) {
                for (int i = 0; i < path.length - 1; i++) {
                    EntityConnectionData entityConnectionData = new EntityConnectionData(path[i + 1], path[i]);
                    highlightRelationships.put(entityConnectionData, relationshipColor);
                    highlightEntities.put(path[i], entityColor);
                }
                highlightEntities.put(path[path.length - 1], entityColor);
            }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

     * @param root
     * @param currentSelection
     */
    public void setCurrentSelection(IvyNodeElement root, IvyNodeElement currentSelection) {
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            EntityConnectionData entityConnectionData = (EntityConnectionData) iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.unReveal(entityConnectionData);
            }
View Full Code Here

Examples of org.eclipse.zest.core.viewers.EntityConnectionData

        }
    }

    public IFigure getTooltip(Object entity) {
        if (entity instanceof EntityConnectionData) {
            EntityConnectionData connection = (EntityConnectionData) entity;
            IvyNodeElement source = (IvyNodeElement) connection.source;
            IvyNodeElement dest = (IvyNodeElement) connection.dest;

            String[] confs = dest.getCallerConfigurations(source);
            String tooltipText = "";
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.