Package org.apache.ivyde.eclipse.retrieve

Examples of org.apache.ivyde.eclipse.retrieve.StandaloneRetrieveSetup


        Button newButton = new Button(buttons, SWT.PUSH);
        newButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
        newButton.setText("New...");
        newButton.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                StandaloneRetrieveSetup setup = new StandaloneRetrieveSetup();
                EditStandaloneRetrieveDialog editDialog = new EditStandaloneRetrieveDialog(
                        getShell(), project, setup);
                if (editDialog.open() == Window.OK) {
                    List list = ((List) table.getInput());
                    list.add(editDialog.getStandaloneRetrieveSetup());
View Full Code Here


        return composite;
    }

    private void openEdit(IStructuredSelection selection, IProject project) {
        StandaloneRetrieveSetup setup = (StandaloneRetrieveSetup) selection.getFirstElement();
        EditStandaloneRetrieveDialog editDialog = new EditStandaloneRetrieveDialog(getShell(),
                project, setup);
        if (editDialog.open() == Window.OK) {
            List list = ((List) table.getInput());
            list.set(list.indexOf(setup), editDialog.getStandaloneRetrieveSetup());
View Full Code Here

        public Image getColumnImage(Object element, int columnIndex) {
            return null;
        }

        public String getColumnText(Object element, int columnIndex) {
            StandaloneRetrieveSetup setup = (StandaloneRetrieveSetup) element;
            // CheckStyle:MagicNumber| OFF
            switch (columnIndex) {
                case 0:
                    return setup.getName();
                case 1:
                    return setup.getRetrieveSetup().getRetrievePattern();
                case 2:
                    return setup.getRetrieveSetup().getRetrieveConfs();
                case 3:
                    return setup.getRetrieveSetup().getRetrieveTypes();
            }
            // CheckStyle:MagicNumber| ON
            return null;
        }
View Full Code Here

            while (itProject.hasNext()) {
                Entry entry = (Entry) itProject.next();
                IProject project = (IProject) entry.getKey();
                Iterator itSetup = ((Set) entry.getValue()).iterator();
                while (itSetup.hasNext()) {
                    StandaloneRetrieveSetup retrieveSetup = (StandaloneRetrieveSetup) itSetup
                            .next();
                    RetrieveAction action = new RetrieveAction(retrieveSetup);
                    action.setText("Retrieve '" + retrieveSetup.getName()
                            + (oneProject ? "'" : "' of " + project.getName()));
                    fillMenu(menuManager, items, new ActionContributionItem(action));
                }
            }
            fillMenu(menuManager, items, new IvyMenuSeparator());
View Full Code Here

        retrieveComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));

        return body;
    }
    protected void okPressed() {
        setup = new StandaloneRetrieveSetup();
        setup.setName(nameText.getText());
        setup.setSettingsProjectSpecific(settingsTab.isProjectSpecific());
        setup.setSettingsSetup(settingsTab.getSettingsEditor().getIvySettingsSetup());
        setup.setIvyXmlPath(ivyFilePathText.getIvyFilePath());
        setup.setRetrieveSetup(retrieveComposite.getRetrieveSetup());
View Full Code Here

        if (conf.getJavaProject() == null) {
            // no project means no retrieve possible
            return;
        }

        StandaloneRetrieveSetup setup = new StandaloneRetrieveSetup();
        setup.setName("dependencies");
        setup.setSettingsSetup(settingsSetup);
        setup.setIvyXmlPath(ivyXmlPath);
        setup.setSettingsProjectSpecific(conf.isSettingsProjectSpecific());
        setup.setProject(conf.getJavaProject().getProject());

        IPreferenceStore prefStore = IvyPlugin.getDefault().getPreferenceStore();

        if (isRetrieveProjectSpecific) {
            if (!doStandaloneRetrieve) {
                return;
            }
        } else {
            if (!prefStore.getBoolean(PreferenceConstants.DO_RETRIEVE)) {
                return;
            }
            retrieveSetup = new RetrieveSetup();
            retrieveSetup.setRetrieveConfs(prefStore.getString(PreferenceConstants.RETRIEVE_CONFS));
            retrieveSetup.setRetrievePattern(prefStore
                    .getString(PreferenceConstants.RETRIEVE_PATTERN));
            retrieveSetup.setRetrieveSync(prefStore.getBoolean(PreferenceConstants.RETRIEVE_SYNC));
            retrieveSetup.setRetrieveTypes(prefStore.getString(PreferenceConstants.RETRIEVE_TYPES));
        }

        if (retrieveSetup.getRetrievePattern() == null) {
            retrieveSetup.setRetrievePattern(prefStore
                    .getString(PreferenceConstants.RETRIEVE_PATTERN));
        }

        setup.setRetrieveSetup(retrieveSetup);

        RetrieveSetupManager manager = IvyPlugin.getDefault().getRetrieveSetupManager();
        IProject project = conf.getJavaProject().getProject();
        List retrieveSetups;
        try {
View Full Code Here

TOP

Related Classes of org.apache.ivyde.eclipse.retrieve.StandaloneRetrieveSetup

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.