Package com.salesforce.ide.core.internal.utils

Examples of com.salesforce.ide.core.internal.utils.MessageDialogRunnable


            logger.warn("Unable to save " + component.getFullDisplayName() + " to file - " + message);
            StringBuffer strBuff = new StringBuffer(Messages.getString("Components.SaveResourceError.message"));
            strBuff.append(":\n\n").append(message).append("\n\n")
                    .append(Messages.getString("Components.SaveResourceError.SkipAllReadOnly.message"));

            MessageDialogRunnable messageDialogRunnable =
                    new MessageDialogRunnable("Cannot Write to File", null, strBuff.toString(), MessageDialog.WARNING,
                            new String[] { IDialogConstants.NO_LABEL, IDialogConstants.YES_TO_ALL_LABEL }, 0);
            Display.getDefault().syncExec(messageDialogRunnable);

            if (messageDialogRunnable.getAction() == 1) {
                skipAllReadOnlyExceptions = true;
                logger.warn("Skipping all further read-only exceptions");
            }
        }
        return skipAllReadOnlyExceptions;
View Full Code Here


        logger.warn("Unable to save " + component.getFullDisplayName() + " to file - " + message);
        StringBuffer strBuff = new StringBuffer(Messages.getString("Components.SaveResourceError.message"));
        strBuff.append(":\n\n").append(message).append("\n\n")
                .append(Messages.getString("Components.SaveResourceError.ContinueWithSaving.message"));

        MessageDialogRunnable messageDialogRunnable =
                new MessageDialogRunnable("Cannot Write to File", null, strBuff.toString(), MessageDialog.WARNING,
                        new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0);
        Display.getDefault().syncExec(messageDialogRunnable);

        if (messageDialogRunnable.getAction() == 1) {
            throw new InterruptedException("Save components to project canceled");
        }
    }
View Full Code Here

                        new String[] { getProject().getName() }));
                }
                if (Utils.isNotEmpty(packageManifest.getFullName())) {
                    String dialogMsg =
                            Messages.getString("Retrieve.PackageProject.RefreshComponentFolder.Dialog.message");
                    MessageDialogRunnable messageDialogRunnable =
                            new MessageDialogRunnable("Refresh from server", null, dialogMsg,
                                    MessageDialog.INFORMATION, new String[] { IDialogConstants.OK_LABEL,
                                            IDialogConstants.CANCEL_LABEL }, 0);
                    Display.getDefault().syncExec(messageDialogRunnable);

                    if (messageDialogRunnable.getAction() == Window.CANCEL) {
                        String cancelMsg =
                                Messages.getString("Retrieve.PackageProject.RefreshComponentFolder.Cancel.message");
                        logger.info(cancelMsg);
                        throw new InterruptedException(cancelMsg);
                    }
View Full Code Here

                    String bundleVersion = (String) bundle.getHeaders().get(Constants.BUNDLE_ATTRIBUTE_VERSION);
                    String dialogMsg =
                            UIMessages.getString("Force.Startup.Compatibility.Warning.message", new String[] {
                                    bundleName, bundleVersion });

                    MessageDialogRunnable messageDialogRunnable =
                            new MessageDialogRunnable(title, null, dialogMsg, MessageDialog.WARNING,
                                    new String[] { IDialogConstants.OK_LABEL }, 0);
                    Display.getDefault().asyncExec(messageDialogRunnable);

                }
            }
View Full Code Here

                        logger.warn("Component '" + deployMessage.getFullName() + "' failed test delete: '"
                                + deployMessage.getProblem() + "'. will be deleted locally only.");

                        projectPackageList.removeComponentByFilePath(deployMessage.getFileName(), true, true);
                        monitorCheck(monitor);
                        MessageDialogRunnable messageDialogRunnable =
                                new MessageDialogRunnable("Remote Delete Error", null, UIMessages.getString(
                                    "Refactor.Delete.Complete.CannotDelete.message", new String[] {
                                            deployMessage.getFileName(), deployMessage.getProblem() }),
                                        MessageDialog.WARNING, new String[] { IDialogConstants.OK_LABEL,
                                                IDialogConstants.CANCEL_LABEL }, 0);
                        Display.getDefault().syncExec(messageDialogRunnable);

                        if (messageDialogRunnable.getAction() == 1) {
                            logger.warn("Canceling delete operation");
                            throw new OperationCanceledException("Delete operation canceled");
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.internal.utils.MessageDialogRunnable

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.