Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.ProgressMonitorDialog$ProgressMonitor


        {
        CardImportMonitor op = new CardImportMonitor(f, a1, tabMMFile);

        try
          {
          new ProgressMonitorDialog(_tabvFolder.getControl().getShell()).run(true, false, op);
          }

        catch (InvocationTargetException e1)
          {
          e1.printStackTrace();
View Full Code Here


        CardImportMonitor op = new CardImportMonitor(f, a1, tabMMFile);

        try
          {
          new ProgressMonitorDialog(parent).run(true, false, op);
          }

        catch (InvocationTargetException e1)
          {
          e1.printStackTrace();
View Full Code Here

      if (fndir != null)
        {
        try
          {
          new ProgressMonitorDialog(parent).run(true, false, new IRunnableWithProgress()
            {
              @Override
              public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
                {
                File fdir = new File(fndir);
View Full Code Here

        Shell shell = getShell();
        try {
          IJavaProject project = JavaCore.create(getProject());

          SelectionDialog dialog = JavaUI.createTypeDialog(
              shell, new ProgressMonitorDialog(shell),
              SearchEngine.createJavaSearchScope(new IJavaElement[]{project}),
              IJavaElementSearchConstants.CONSIDER_CLASSES,false);

          if(dialog.open()==SelectionDialog.OK){
            Object[] result = dialog.getResult();
View Full Code Here

        Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();

        TransitivityAnalysisOperation op = new TransitivityAnalysisOperation(project);
        try
        {
            new ProgressMonitorDialog(shell).run(true, false, op);
        }
        catch (InvocationTargetException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        TraceLinkValidationOperation op = new TraceLinkValidationOperation(project);
        try
        {
            new ProgressMonitorDialog(shell).run(true, false, op);
        }
        catch (InvocationTargetException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

            Activator.getAccessLayer().invalidateCache(project);
                       
            RuleApplicationOperation op = new RuleApplicationOperation(project, wizard.selectedModels, wizard.selectedCatalog, wizard.selectedRules);
            try
            {       
                ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
                progressDialog.run(true, false, op);
            }
            catch (InvocationTargetException e)
            {
                // TODO Auto-generated catch block
                e.printStackTrace();
View Full Code Here

        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        TraceValidationOperation op = new TraceValidationOperation(project);
        try
        {
            new ProgressMonitorDialog(shell).run(true, false, op);
        }
        catch (InvocationTargetException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

    {     
        ISelection sel = HandlerUtil.getCurrentSelection(event);
        final ECPProject project = (ECPProject) ((StructuredSelection) sel).getFirstElement();
        final Shell shell = HandlerUtil.getActiveWorkbenchWindow(event).getShell();
       
        final ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
        progressDialog.open();
        progressDialog.getProgressMonitor().beginTask("Cleaning up project...", 10);
       
      Callable<Void> call = new Callable<Void>()
      {
      @Override
      public Void call() throws Exception
      {       
            Activator.getAccessLayer().invalidateCache(project);           
            Activator.getProjectCleaner().cleanUpRuleOrphans(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().cleanUpLinkTypeOrphans(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().cleanUpViolationTypeOrphans(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().cleanUpChangeTypeOrphans(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().updateLinkTypeCatalogs(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().updateViolationTypeCatalogs(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().updateRuleCatalogs(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().updateChangeTypeCatalogs(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().updateLinkContainer(project);
            progressDialog.getProgressMonitor().worked(1);
            Activator.getProjectCleaner().updateReportContainer(project);
            progressDialog.getProgressMonitor().worked(1);
       
        return null;
      }
    };
   
    RunESCommand.run(call);

        progressDialog.getProgressMonitor().done();
        progressDialog.close();
       
        return null;
    }
View Full Code Here

         
            ImpactAnalysisOperation op = new ImpactAnalysisOperation(project, wizard.selectedModels, wizard.selectedCatalog, wizard.b1, wizard.b2, true);

            try
            {
              ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(shell);
        progressDialog.run(true, false, op);
       
        MessageDialog.openInformation(shell, "Impact Analysis completed", op.getSizeOfImpactSet()+" impact reports generated");
      }
            catch (InvocationTargetException e)
      {
View Full Code Here

TOP

Related Classes of org.eclipse.jface.dialogs.ProgressMonitorDialog$ProgressMonitor

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.