Package org.apache.ivyde.eclipse.cp

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


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

        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

TOP

Related Classes of org.apache.ivyde.eclipse.cp.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.