Examples of ConnectionStyle


Examples of org.apache.ivyde.eclipse.resolvevisualizer.label.ConnectionStyle

     */
    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);
            }
        }

        this.rootNode = root;
        this.selected = null;
        this.selected = currentSelection;

        highlightedRelationships = new HashMap/* <EntityConnectionData, Color> */();
        highlightedDependencies = new HashMap/* <IvyNodeElement, Color> */();

        rootDirectDependenciesDecorator.calculateHighlighted(root, root, highlightedRelationships,
                highlightedDependencies);
        conflictDecorator.calculateHighlighted(root, root, highlightedRelationships, highlightedDependencies);

        if (this.selected != null || this.pinnedNode != null) {
            autoSelectDecorator.calculateHighlighted(root, selected, highlightedRelationships, highlightedDependencies);
        }

        Object[] connections = viewer.getConnectionElements();
        for (Iterator iter = highlightedRelationships.keySet().iterator(); iter.hasNext();) {
            Object entityConnectionData = iter.next();

            ConnectionStyle style = (ConnectionStyle) highlightedRelationships.get(entityConnectionData);
            if (style.isRevealOnHighlight()) {
                viewer.reveal(entityConnectionData);
            }
        }

        for (int i = 0; i < connections.length; i++) {
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.