Examples of IvyClasspathContainerImpl


Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

        List affectedContainers = getAffectedContainers(project.getFullPath());

        Iterator it = affectedContainers.iterator();
        while (it.hasNext()) {
            IvyClasspathContainerImpl ivycp = (IvyClasspathContainerImpl) it.next();
            ivycp.launchResolve(false, null);
        }
    }
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

        // dependent projects after the open operation has finished.
        List allContainers = getAllContainersExcludingProjects(projects);

        Iterator it = allContainers.iterator();
        while (it.hasNext()) {
            IvyClasspathContainerImpl ivycp = (IvyClasspathContainerImpl) it.next();
            ivycp.launchResolve(false, null);
        }
    }
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

            IJavaProject javaProject = projects[i];
            List/* <IvyClasspathContainer> */containers = IvyClasspathContainerHelper
                    .getContainers(javaProject);
            Iterator/* <IvyClasspathContainer> */itContainer = containers.iterator();
            while (itContainer.hasNext()) {
                IvyClasspathContainerImpl ivycp = (IvyClasspathContainerImpl) itContainer.next();
                IClasspathEntry[] containerEntries = ivycp.getClasspathEntries();
                for (int j = 0; j < containerEntries.length; j++) {
                    IClasspathEntry containerEntry = containerEntries[j];
                    if (containerEntry == null
                            || containerEntry.getEntryKind() != IClasspathEntry.CPE_PROJECT
                            || !containerEntry.getPath().equals(projectPath)) {
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

        for (int i = 0; i < projects.length; i++) {
            List/* <IvyClasspathContainer> */containers = IvyClasspathContainerHelper
                    .getContainers(projects[i]);
            Iterator/* <IvyClasspathContainer> */itContainers = containers.iterator();
            while (itContainers.hasNext()) {
                IvyClasspathContainerImpl ivycp = (IvyClasspathContainerImpl) itContainers.next();
                if (!ivycp.getConf().isSettingsProjectSpecific()) {
                    ivycp.launchResolve(false, null);
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

        viewer.addDoubleClickListener(new IDoubleClickListener() {
            public void doubleClick(DoubleClickEvent event) {
                IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
                Object element = selection.getFirstElement();
                if (element instanceof CPDependencyDescriptor) {
                    IvyClasspathContainerImpl cp = ((CPDependencyDescriptor) element).container;
                    OpenIvyFileHandler.open(cp);
                }
            }
        });
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

        if (selection == null) {
            return null;
        }
        for (Iterator it = selection.iterator(); it.hasNext();) {
            Object element = it.next();
            IvyClasspathContainerImpl cp = (IvyClasspathContainerImpl) IvyPlugin.adapt(element,
                IvyClasspathContainerImpl.class);
            if (cp != null) {
                return cp;
            }
            if (element instanceof ClassPathContainer) {
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

                if (entry != null && entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
                    IPath path = entry.getPath();
                    if (isIvyClasspathContainer(path)) {
                        IClasspathContainer cp = JavaCore.getClasspathContainer(path, javaProject);
                        if (cp instanceof IvyClasspathContainerImpl) {
                            IvyClasspathContainerImpl ivycp = (IvyClasspathContainerImpl) cp;
                            if (ivycp.getConf().getIvyXmlPath()
                                    .equals(ivyfile.getProjectRelativePath().toString())) {
                                containers.add(ivycp);
                            }
                        }
                    }
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

                if (entry != null && entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
                    IPath path = entry.getPath();
                    if (isIvyClasspathContainer(path)) {
                        IClasspathContainer cp = JavaCore.getClasspathContainer(path, javaProject);
                        if (cp instanceof IvyClasspathContainerImpl) {
                            IvyClasspathContainerImpl ivycp = (IvyClasspathContainerImpl) cp;
                            ResolvedPath settingsPath;
                            try {
                                settingsPath = ivycp.getConf().getInheritedSettingsSetup()
                                        .getResolvedIvySettingsPath(ivycp.getConf().getProject());
                            } catch (IvyDEException e) {
                                // cannot resolve the ivy settings so just ignore
                                continue;
                            }
                            if (settingsPath.getResolvedPath().equals(
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

        MultiStatus errorStatuses = new MultiStatus(IvyPlugin.ID, IStatus.ERROR,
                "Failed to update one or more Ivy files.  See details.", null);

        IvyClasspathContainerImpl[] containers = getIvyClasspathContainers();
        for (int i = 0; i < containers.length; i++) {
            IvyClasspathContainerImpl container = containers[i];

            ModuleDescriptor md = container.getState().getCachedModuleDescriptor();
            if (md == null) {
                continue;
            }

            Map/* <ModuleRevisionId, String> */newRevisions = new HashMap();

            DependencyDescriptor[] dependencies = md.getDependencies();
            for (int j = 0; j < dependencies.length; j++) {
                for (int k = 0; k < multiRevisionDependencies.length; k++) {
                    MultiRevDependencyDescriptor multiRevision = multiRevisionDependencies[k];
                    ModuleRevisionId dependencyRevisionId = dependencies[j]
                            .getDependencyRevisionId();
                    if (dependencies[j].getDependencyId().equals(multiRevision.getModuleId())
                            && multiRevision.hasNewRevision()
                            && multiRevision.isForContainer(container)) {
                        newRevisions.put(dependencyRevisionId,
                            multiRevisionDependencies[k].getNewRevision());
                        break; // move on to the next dependency
                    }
                }
            }

            UpdateOptions updateOptions = new UpdateOptions().setResolvedRevisions(newRevisions)
                    .setReplaceInclude(false).setGenerateRevConstraint(false)
                    .setNamespace(new RevisionPreservingNamespace());

            File ivyFile;
            try {
                ivyFile = container.getState().getIvyFile();
            } catch (IvyDEException e) {
                errorStatuses.add(new Status(IStatus.ERROR, IvyPlugin.ID, IStatus.ERROR,
                        "Fail to resolve the ivy file", e));
                continue;
            }
View Full Code Here

Examples of org.apache.ivyde.internal.eclipse.cpcontainer.IvyClasspathContainerImpl

            }
            List/* <IvyClasspathContainer> */containers = IvyClasspathContainerHelper
                    .getContainers(javaProject);
            Iterator containerIter = containers.iterator();
            while (containerIter.hasNext()) {
                IvyClasspathContainerImpl container = (IvyClasspathContainerImpl) containerIter.next();
                try {
                    File containerIvyFile = container.getState().getIvyFile();
                    if (containerIvyFile.equals(resourceFile.getLocation().toFile())) {
                        container.launchResolve(false, null);
                        return;
                    }
                } catch (IvyDEException e) {
                    // we are in a listener, do nothing
                }
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.