Package com.salesforce.ide.ui.actions

Examples of com.salesforce.ide.ui.actions.RefreshResourceAction


                                        if (MessageDialog.openQuestion(Display.getCurrent().getActiveShell(),
                                            Messages.PackageManifestChangeListener_dialog_title, NLS.bind(
                                                Messages.PackageManifestChangeListener_dialog_message, resource
                                                        .getFullPath(), project.getName()))) {
                                            RefreshResourceAction action = new RefreshResourceAction();
                                            action.selectionChanged(null, new StructuredSelection(project));
                                            action.run(null);
                                        }
                                    }

                                } catch (ForceProjectException e) {
                                    logger.warn("An error occured while refreshing " + project.getName() + ": "
View Full Code Here


                if (MessageDialog.openQuestion(Display.getCurrent().getActiveShell(),
                    com.salesforce.ide.ui.internal.Messages.PackageManifestChangeListener_dialog_title, NLS.bind(
                        com.salesforce.ide.ui.internal.Messages.PackageManifestChangeListener_dialog_message,
                        getProject().getName()))) {
                    ForceStartup.removePackageManifestChangeListener();
                    RefreshResourceAction action = new RefreshResourceAction();
                    IFolder srcFolder = getProjectService().getSourceFolder(getProject());
                    if (srcFolder != null && srcFolder.exists()) {
                        action.selectionChanged(null, new StructuredSelection(srcFolder));
                        refreshProject(action);
                        // set original summary to current saved summary only successfully refresh project
                        originalSummary = currentSavedSummary;
                    } else {
                        logger.warn("Unable to refresh package.xml changes - source folder does not exists");
View Full Code Here

TOP

Related Classes of com.salesforce.ide.ui.actions.RefreshResourceAction

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.