Examples of IvyNodeElement


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

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

    }

    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

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

        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

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

            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

Examples of org.apache.lucene.validation.ivyde.IvyNodeElement

      options.setUseCacheOnly(false);       // Download the internet!
      options.setOutputReport(false);       // Don't print to the console
      options.setLog(LogOptions.LOG_QUIET); // Don't log to the console
      options.setConfs(new String[] {"*"}); // Resolve all configurations
      ResolveReport resolveReport = ivy.resolve(findLatestIvyXmlFile.toURI().toURL(), options);
      IvyNodeElement root = IvyNodeElementAdapter.adapt(resolveReport);
      for (IvyNodeElement element : root.getDependencies()) {
        String coordinate = "/" + element.getOrganization() + "/" + element.getName();
        Dependency dependency = directDependencies.get(coordinate);
        if (null == dependency) {
          log("ERROR: the following coordinate key does not appear in "
              + centralizedVersionsFile.getName() + ": " + coordinate, Project.MSG_ERR);
View Full Code Here

Examples of org.apache.lucene.validation.ivyde.IvyNodeElement

      transitiveIvyXmlFile = new File(buildDir, "transitive." + moduleDirPrefix + ".ivy.xml");
      try (Writer writer = new OutputStreamWriter(new FileOutputStream(transitiveIvyXmlFile), StandardCharsets.UTF_8)) {
        writer.write(ivyXmlContent);
      }
      ResolveReport resolveReport = ivy.resolve(transitiveIvyXmlFile.toURI().toURL(), options);
      IvyNodeElement root = IvyNodeElementAdapter.adapt(resolveReport);
      for (IvyNodeElement directDependency : root.getDependencies()) {
        String coordinate = "/" + directDependency.getOrganization() + "/" + directDependency.getName();
        Dependency dependency = directDependencies.get(coordinate);
        if (null == dependency) {
          log("ERROR: the following coordinate key does not appear in "
              + centralizedVersionsFile.getName() + ": " + coordinate);
View Full Code Here

Examples of org.apache.lucene.validation.ivyde.IvyNodeElement

          builder.append(", ");
        }
        builder.append(moduleName);
      }
      builder.append(":\n");
      IvyNodeElement element = first.getKey();
      builder.append('/').append(element.getOrganization()).append('/').append(element.getName())
             .append('=').append(element.getRevision()).append('\n');
      emitConflict(builder, coordinate, first.getKey(), 1);
       
      if (notPrinted > 0) {
        builder.append("... and ").append(notPrinted).append(" more\n");
      }
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.