Examples of ProgressMonitorDialog


Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

    private Collection<PreTask> preShutdownTasks = new LinkedList<PreTask>();

    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());

                    int totalsteps = 0;
                    for( PostTask task : postShutdownTasks ) {
                        try {
                            task.steps = task.task.getProgressMonitorSteps();
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

        }

    }

    public boolean preShutdown( final IWorkbench workbench, final boolean forced ) {
        final ProgressMonitorDialog dialog = getDialog(workbench);

        final boolean[] allowShutdown = new boolean[1];
        allowShutdown[0] = true;

        workbench.getActiveWorkbenchWindow().getShell().setVisible(false);
       
        final Display display=Display.getCurrent();
        try {
            dialog.run(true, forced, new IRunnableWithProgress(){

                public void run( IProgressMonitor monitor2 ) throws InvocationTargetException,
                        InterruptedException {
                   
                    IProgressMonitor monitor=new OffThreadProgressMonitor(monitor2, display);
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

    }

    private ProgressMonitorDialog getDialog( IWorkbench workbench ) {
        Shell shell = new Shell(Display.getCurrent());

        ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell);
        dialog.open();
        return dialog;
    }
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

           
            // 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

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

      @Override
            public void run() {

        Shell shell = Display.getDefault().getActiveShell();

        ProgressMonitorDialog dialog = DialogUtil.openProgressMonitorDialog(shell, dialogTitle,
              showRunInBackground, confirmCancelRequests);

        try {

          dialog.run(true, true, new IRunnableWithProgress() {

            @Override
                        public void run(IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
              try {
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

      @Override
            public void run() {

        Shell shell = Display.getDefault().getActiveShell();

        ProgressMonitorDialog dialog = DialogUtil.openProgressMonitorDialog(shell, dialogTitle,
              showRunInBackground, confirmCancelRequests);

        try {

          dialog.run(true, true, new IRunnableWithProgress() {

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

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

  public static ProgressMonitorDialog openProgressMonitorDialogfinal Shell shell,
                                  final String dialogTitle,
                                  final boolean showRunInBackground,
                                  final boolean confirmCancelRequests) {

    ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell) {
      @Override
      protected void cancelPressed() {
        boolean confirmed = true;
        if (confirmCancelRequests) {
          String title = Messages.DialogUtil_title;
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

        if (codes.isEmpty() && search) {
            PlatformGIS.syncInDisplayThread(new Runnable() {
                public void run() {
                    Shell shell = Display.getCurrent().getActiveShell();

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

                            public void run(IProgressMonitor monitor)
                                    throws InvocationTargetException, InterruptedException {
                                CoordinateReferenceSystem found = CRSUtil
                                        .findEPSGCode(crs, monitor);
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

        public void run(IProgressMonitor monitor) {
        if (createLnf(monitor))
          lnfCreationDone(monitor);
        }
      };
      ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
      dialog.run(true, true, runnable);
    } catch (Exception e) {
      LnfPlugin.getLogger().error(e);
      return;
    }
  }
View Full Code Here

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog

        if (designer != null)
          designer.setSelectedWidget(list);
      }else{
        Shell parent = expandBar.getShell();
        try {
          SelectionDialog typeDialog = JavaUI.createTypeDialog(parent, new ProgressMonitorDialog(parent), VisualSwingPlugin.getCurrentProject().getProject(), IJavaElementSearchConstants.CONSIDER_CLASSES, false);
          if(typeDialog.open()==Window.OK){
            Object[] result = typeDialog.getResult();
            if(result!=null&&result.length>0){
              IType type = (IType) result[0];
              String className = type.getElementName();
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.