Examples of IvyClasspathContainer


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

    }

    private void makeActions() {
        refreshAction = new Action() {
            public void run() {
                final IvyClasspathContainer container = currentContainer;

                if (container == null) {
                    // nothing as been actually selected
                    return;
                }

                ResolveReport report = container.getResolveReport();
                if (report == null) {
                    // TODO we might want to launch some resolve here
                    // or at least open a popup inviting the end user to launch one
                    return;
                }
View Full Code Here

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

public class ClasspathContainerSelectionDialog extends ElementListSelectionDialog {
    public ClasspathContainerSelectionDialog(Shell parentShell) {
        super(parentShell, new LabelProvider() {
            public String getText(Object element) {
                IvyClasspathContainer container = (IvyClasspathContainer) element;
                return container.getConf().getJavaProject().getProject().getName() + " -> "
                        + container.getDescription();
            }
        });
        setTitle("Ivy Classpath Containers");
        setMessage("Select a container to view in the resolve visualizer.");
View Full Code Here

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

        getSite().getPage().removeSelectionListener(this);
    }

    public void selectionChanged(IWorkbenchPart part, ISelection sel) {
        if (sel instanceof IStructuredSelection) {
            IvyClasspathContainer ivycp = IvyClasspathContainerHelper
                    .getContainer((IStructuredSelection) sel);
            if (ivycp != null) {
                browser.setText("<html></html>");
                URL report = ivycp.getReportUrl();
                if (report == null || !browser.setUrl(report.toExternalForm())) {
                    browser.setText("<html></html>");
                    IvyDEMessage.warn("Impossible to set report view url to " + report.toExternalForm());
                }
            }
View Full Code Here

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

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

     * @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

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

    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

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

     * 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

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

     * 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

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

                    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

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

     * 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
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.