Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog.run()


            public void linkActivated(HyperlinkEvent e) {

                ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
                dialog.setCancelable(true);
                try {
                    dialog.run(true, false, new IRunnableWithProgress() {

                        @Override
                        public void run(IProgressMonitor monitor) throws InvocationTargetException,
                                InterruptedException {
                            final Version remoteVersion;
View Full Code Here


        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

        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

    try {
      final HadoopServer location = defineServerFromValues();

      try {
        dialog.run(true, false, new IRunnableWithProgress() {
          public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
            Session session = null;
            try {
              session = location.createSession();
View Full Code Here

                                    try {
                                        ProgressMonitorDialog d = new ProgressMonitorDialog(this
                                                .getParentShell());

                                        blackboardLock.unlock();
                                        d.run(false, false, new IRunnableWithProgress(){
                                            public void run( IProgressMonitor monitor ) {
                                                updateFeatures(layer, monitor, dirtyArea);
                                            }
                                        });
                                        okPressed();
View Full Code Here

                    public void run() {
                        ProgressMonitorDialog dialog = new ProgressMonitorDialog(display
                                .getActiveShell());

                        try {
                            dialog.run(false, false, progressRunnable);
                        } catch (InvocationTargetException e) {
                            // won't happen
                            ProjectPlugin.log("", e);
                        } catch (InterruptedException e) {
                            // won't happen
View Full Code Here

        if (Display.getCurrent() != null) {
            ProgressMonitorDialog dialog = new ProgressMonitorDialog(PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow().getShell());
            dialog.setOpenOnRun(true);
            try {
                dialog.run(false, false, new IRunnableWithProgress() {

                    public void run(IProgressMonitor monitor) throws InvocationTargetException,
                            InterruptedException {
                        try {
                            command.run(monitor);
View Full Code Here

                            super.buttonPressed(buttonId);
                    }
                };
                try {

                    dialog.run(true, true, new IRunnableWithProgress(){
                        public void run( IProgressMonitor monitor ) {
                            try {
                                runBlockingOperation(new IRunnableWithProgress(){

                                    public void run( IProgressMonitor monitor )
View Full Code Here

            // We are going to take a couple of minutes to set this up
            // so we better set up a progress dialog thing
            //
            try {
                ProgressMonitorDialog progress = new ProgressMonitorDialog( Display.getCurrent().getActiveShell());
                progress.run(true,false, new IRunnableWithProgress(){           
                    public void run( IProgressMonitor monitor ) throws InvocationTargetException,
                            InterruptedException {
                        Activator.initializeReferencingModule( monitor);
                    }
                });
View Full Code Here

    public void postShutdown( final IWorkbench workbench ) {

        try {
            final ProgressMonitorDialog dialog = getDialog(workbench);
            dialog.run(true, false, new IRunnableWithProgress(){

                public void run( IProgressMonitor monitor2 ) throws InvocationTargetException,
                        InterruptedException {
                    OffThreadProgressMonitor monitor = new OffThreadProgressMonitor(monitor2, dialog.getShell().getDisplay());
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.