Package org.apache.ivyde.eclipse.cpcontainer

Examples of org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer


    }

    void prefStoreChanged() throws JavaModelException {
        IJavaProject[] projects = plugin.javaModel.getJavaProjects();
        for (int i = 0; i < projects.length; i++) {
            IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(projects[i]);
            if (cp != null && !cp.getConf().isProjectSpecific()) {
                cp.scheduleRefresh(false);
            }
        }
    }
View Full Code Here


     * @throws IOException
     * @throws ParseException
     * @throws FileNotFoundException
     */
    public static synchronized Ivy getIvy(IJavaProject javaProject) {
        IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(javaProject);
        if (cp == null) {
            return null;
        }
        return getIvy(cp.getConf().getInheritedIvySettingsPath());
    }
View Full Code Here

    public void setFocus() {
    }

    public void selectionChanged(IWorkbenchPart part, ISelection sel) {
        if (sel instanceof IStructuredSelection) {
            IvyClasspathContainer ivycp = IvyClasspathUtil
                    .getIvyClasspathContainer((IStructuredSelection) sel);
            if (ivycp != null) {
                _browser.setUrl("");
                URL report = ivycp.getReportUrl();
                if (report != null) {
                    if (!_browser.setUrl(report.toExternalForm())) {
                        _browser.setUrl("");
                        Message.warn("impossible to set report view url to "
                                + report.toExternalForm());
View Full Code Here

     * sitting in the workbench UI.
     *
     * @see IWorkbenchWindowActionDelegate#run
     */
    public void run(IAction action) {
        IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(IvyClasspathUtil
                .getSelectionInJavaPackageView());
        if (cp != null) {
            IFile file = cp.getIvyFile();
            IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                    .getActivePage();
            if (file != null) {
                try {
                    String editorId = "org.apache.ivyde.editors.IvyEditor";
View Full Code Here

     * sitting in the workbench UI.
     *
     * @see IWorkbenchWindowActionDelegate#run
     */
    public void run(IAction action) {
        IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(IvyClasspathUtil
                .getSelectionInJavaPackageView());
        if (cp != null) {
            cp.scheduleRefresh(true);
        }
    }
View Full Code Here

                    return new Status(IStatus.ERROR, IvyPlugin.ID, IStatus.ERROR,
                            "Unable to get the list of available java projects", e);
                }
                List containers = new ArrayList();
                for (int i = 0; i < projects.length; i++) {
                    IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(projects[i]);
                    if (cp != null) {
                        containers.add(cp);
                    }
                }
                monitor.beginTask("Resolve all dependencies", containers.size());
                for (Iterator iter = containers.iterator(); iter.hasNext();) {
                    if (monitor.isCanceled()) {
                        return Status.CANCEL_STATUS;
                    }
                    SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1);
                    IvyClasspathContainer cp = (IvyClasspathContainer) iter.next();
                    cp.resolve(subMonitor);
                }

                return Status.OK_STATUS;
            }
        };
View Full Code Here

     * sitting in the workbench UI.
     *
     * @see IWorkbenchWindowActionDelegate#run
     */
    public void run(IAction action) {
        IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(IvyClasspathUtil
                .getSelectionInJavaPackageView());
        if (cp != null) {
            cp.scheduleResolve();
        }
    }
View Full Code Here

     */
    public void doSave(IProgressMonitor monitor) {
        xmlEditor.doSave(monitor);
        IFile file = ((IvyFileEditorInput) getEditorInput()).getFile();
        IJavaProject project = JavaCore.create(file.getProject());
        IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(project);
        if (cp != null
                && cp.getConf().getIvyXmlPath().equals(file.getProjectRelativePath().toString())) {
            cp.scheduleResolve();
        }
    }
View Full Code Here

                    return new Status(IStatus.ERROR, IvyPlugin.ID, IStatus.ERROR,
                            "Unable to get the list of available java projects", e);
                }
                List containers = new ArrayList();
                for (int i = 0; i < projects.length; i++) {
                    IvyClasspathContainer cp = IvyClasspathUtil
                            .getIvyClasspathContainer(projects[i]);
                    if (cp != null) {
                        containers.add(cp);
                    }
                }
                monitor.beginTask("Resolve all dependencies", containers.size());
                for (Iterator iter = containers.iterator(); iter.hasNext();) {
                    if (monitor.isCanceled()) {
                        return Status.CANCEL_STATUS;
                    }
                    SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1);
                    IvyClasspathContainer cp = (IvyClasspathContainer) iter.next();
                    cp.launchResolve(false, true, subMonitor);
                }

                return Status.OK_STATUS;
            }
        };
View Full Code Here

    }

    void prefStoreChanged() throws JavaModelException {
        IJavaProject[] projects = plugin.javaModel.getJavaProjects();
        for (int i = 0; i < projects.length; i++) {
            IvyClasspathContainer cp = IvyClasspathUtil.getIvyClasspathContainer(projects[i]);
            if (cp != null && !cp.getConf().isSettingsProjectSpecific()) {
                cp.launchResolve(false, false, null);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer

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.