Examples of ProgressMonitorDialog


Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

                        }
                    };
                    try {
                        final Shell shell = PlatformUI.getWorkbench()
                                .getActiveWorkbenchWindow().getShell();
                        new ProgressMonitorDialog(shell).run(true, false, task);
                        doAfterLoadingFile();
                    } catch (final Exception e) {
                        ErlLogger.error(e);
                    } finally {
                        task = null;
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

                }
            };
            try {
                final Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                        .getShell();
                new ProgressMonitorDialog(shell).run(true, false, task);
                doAfterLoadingFile();
            } catch (final Exception e) {
                ErlLogger.error(e);
            } finally {
                task = null;
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

            }
        };
        try {
            final Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                    .getShell();
            new ProgressMonitorDialog(shell).run(true, false, task);
            startStopAction.setImageDescriptor(DebugUITools
                    .getImageDescriptor(IDebugUIConstants.IMG_ACT_RUN));
            startStopAction.setToolTipText(START_LABEL);
            startStopAction.setEnabled(true);
            TracingStatusHandler.handleStatus(status);
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

    private void executeTask() {
        try {
            final Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                    .getShell();
            new ProgressMonitorDialog(shell).run(true, false, task);
            doAfterLoadingTraces();
        } catch (final Exception exception) {
            ErlLogger.error(exception);
        } finally {
            task = null;
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

        if (val != SWT.YES) { return false; }

        if (!wizardhook_validateFinish()) { return false; }

        try {
            ProgressMonitorDialog dlg = new ProgressMonitorDialog(getShell());
            dlg.run(true, true, new SWTLoadRunable(getController()));

        } catch (InvocationTargetException e) {
            logger.error(Labels.getString("LoadWizard.errorAction"), e); //$NON-NLS-1$
            UIUtils.errorMessageBox(getShell(), e.getCause() != null ? e.getCause() : e);
            return false;
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

        try {
            int val = UIUtils.warningConfMessageBox(getShell(),
                    getLabel("confFirstLine") + System.getProperty("line.separator") + getLabel("confSecondLine"));
            if (val == SWT.YES) {
                ProgressMonitorDialog dlg = new ProgressMonitorDialog(getShell());
                dlg.run(true, true, new SWTLoadRunable(getController()));
            } else {
                return false;
            }

        } catch (InvocationTargetException e) {
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

    updateProblemIndication = false;
    try {
      // This runs the options, and shows progress.
      //
      new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);

      // Refresh the necessary state.
      //
      ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();
      firePropertyChange(IEditorPart.PROP_DIRTY);
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

    updateProblemIndication = false;
    try {
      // This runs the options, and shows progress.
      //
      new ProgressMonitorDialog(getSite().getShell()).run(true, false, operation);

      // Refresh the necessary state.
      //
      ((BasicCommandStack)editingDomain.getCommandStack()).saveIsDone();
      firePropertyChange(IEditorPart.PROP_DIRTY);
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

                }
            }
        };

        try {
            new ProgressMonitorDialog(getSite().getWorkbenchWindow().getShell())
                    .run(false, true, op);
            setInput(new FileEditorInput(file));
            getCommandStack().markSaveLocation();
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

                        }
                    }
                };

                try {
                    new ProgressMonitorDialog(targetPart.getSite().getShell()).run(false, true, op);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        } catch (Throwable t) {
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.