Package org.python.pydev.core.uiutils

Examples of org.python.pydev.core.uiutils.AsynchronousProgressMonitorDialog.run()


        ProgressMonitorDialog monitorDialog = new AsynchronousProgressMonitorDialog(shell);
        monitorDialog.setCancelable(cancelable);
        monitorDialog.setBlockOnOpen(false);
        try {
            IRunnableWithProgress operation = new ProgressOperation(action);
            monitorDialog.run(false, false, operation);
            // Perform the action
        } catch (InvocationTargetException e) {
            Log.log(e);
        } catch (InterruptedException e) {
            Log.log(e);
View Full Code Here


                                        monitor.done();
                                    }
                                };

                                monitorDialog.run(true, true, operation);

                            } catch (Exception e) {
                                Log.log(e);
                            }
View Full Code Here

                monitorDialog.setBlockOnOpen(false);
                ObtainInterpreterInfoOperation operation;
                while (true) {
                    operation = new ObtainInterpreterInfoOperation(interpreterNameAndExecutable.o2, logger,
                            interpreterManager);
                    monitorDialog.run(true, false, operation);
                    if (operation.e != null) {
                        logger.println("- Some error happened while getting info on the interpreter:");
                        operation.e.printStackTrace(logger);

                        if (operation.e instanceof SimpleJythonRunner.JavaNotConfiguredException) {
View Full Code Here

                        nChanged[0] += doActionOnResource(next, monitor);
                    }
                }
            };
            boolean fork = !needsUIThread();
            monitorDialog.run(fork, true, operation);
        } catch (Throwable e) {
            Log.log(e);
        }

        afterRun(nChanged[0]);
View Full Code Here

                        monitor.done();
                    }
                }
            };

            monitorDialog.run(true, true, operation);

        } catch (Exception e) {
            Log.log(e);
        }
    }
View Full Code Here

                        nChanged[0] += doActionOnContainer(next, monitor);
                    }
                }
            };
            boolean fork = !needsUIThread();
            monitorDialog.run(fork, true, operation);
        } catch (Throwable e) {
            Log.log(e);
        }

        afterRun(nChanged[0]);
View Full Code Here

        if (outOfDateEntries.size() > 0 || outOfSyncEntries.size() > 0) {
            if (askForResearch(outOfDateEntries, outOfSyncEntries)) {
                ProgressMonitorDialog pmd = new AsynchronousProgressMonitorDialog(fSite.getShell());
                try {
                    pmd.run(true, true, new WorkspaceModifyOperation(null) {
                        protected void execute(IProgressMonitor monitor) throws CoreException {
                            research(monitor, outOfDateEntries, operation);
                        }
                    });
                    return true;
View Full Code Here

                    }
                };

                boolean fork = true;
                monitorDialog.run(fork, true, operation);
            } catch (Throwable e) {
                Log.log(e);
            }
        } catch (Exception e) {
            Log.log(e);
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.