Package org.apache.ivyde.eclipse.resolvevisualizer.model

Examples of org.apache.ivyde.eclipse.resolvevisualizer.model.IvyNodeElement


        return null;
    }

    public String getText(Object element) {
        if (element instanceof IvyNodeElement) {
            IvyNodeElement node = (IvyNodeElement) element;
            String text = node.getOrganization() + "#" + node.getName() + ";";
            if (node.getRevision().indexOf("working@") != -1)
                text += "WORKSPACE";
            else
                text += node.getRevision();
            return text;
        }

        return "";
    }
View Full Code Here


    }

    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 = "";
            for (int i = 0; i < confs.length; i++) {
                tooltipText += confs[i] + ", ";
            }
            return new Label(tooltipText.substring(0, tooltipText.length() - 2));
View Full Code Here

        focusOnSelectionAction.setEnabled(false);

        historyAction = new Action() {
            public void run() {
                if (historyStack.size() > 0) {
                    IvyNodeElement element = (IvyNodeElement) historyStack.pop();
                    forwardStack.push(currentRoot);
                    forwardAction.setEnabled(true);
                    focusOn(element);
                    if (historyStack.size() <= 0) {
                        historyAction.setEnabled(false);
                    }
                }
            }
        };
        historyAction.setText("Back");
        historyAction.setToolTipText("Back");
        historyAction.setEnabled(false);
        historyAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
                .getImageDescriptor(ISharedImages.IMG_TOOL_BACK));

        forwardAction = new Action() {
            public void run() {
                if (forwardStack.size() > 0) {
                    IvyNodeElement element = (IvyNodeElement) forwardStack.pop();

                    historyStack.push(currentRoot);
                    historyAction.setEnabled(true);

                    focusOn(element);
View Full Code Here

            forceHiddenFilter.clearHidden();
            visualizationForm.getForm().setText(
                    ResolveVisualizerForm.HeaderText + " - " + container.getConf().getIvyXmlPath() + " in \""
                            + container.getConf().getJavaProject().getProject().getName() + "\"");

            IvyNodeElement nextRoot = IvyNodeElementAdapter.adapt(report);
            if (currentRoot != nextRoot) {
                if (currentRoot != null) {
                    historyStack.push(currentRoot);
                    historyAction.setEnabled(true);
                }
View Full Code Here

TOP

Related Classes of org.apache.ivyde.eclipse.resolvevisualizer.model.IvyNodeElement

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.