Package org.eclipse.jface.operation

Examples of org.eclipse.jface.operation.IRunnableWithProgress


    IWorkbenchPart workbenchPart = workbenchPartDescriptor.getPartPage()
        .getActivePart();
    if (workbenchPart instanceof IDiagramWorkbenchPart) {
      final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
      try {
        new IRunnableWithProgress() {

          public void run(IProgressMonitor monitor)
              throws InterruptedException,
              InvocationTargetException {
            runValidation(part.getDiagramEditPart(), part
View Full Code Here


        final IReviewboardClientRepository reviewboardClientRepository = SVNClientRepositoryAwair.getReviewboardClientRepository();
       
        //友好化用户体验
        if( null == reviewboardClientRepository.getClientFromUrlToClientMap()){
            run(new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    if( null != reviewboardClientRepository ){
                        if( null != monitor ){
                            monitor.setTaskName(RbSubclipseMessages.getString("PROGRESS_READINGCACHE")); //$NON-NLS-1$
                            monitor.worked(1);
View Full Code Here

                    RbSubclipseMessages.getString("ERROR_PREFIX") + e.getMessage()); //$NON-NLS-1$
            return ;
        }
       
        //计算相关变量,准备进入向导页
        run(new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                 try {
                    modifiedResources = getModifiedResources(resourcesSelectedByUser, monitor);
                } catch (SVNException e) {
                    e.printStackTrace();
                }      
            }
        }, true, PROGRESS_BUSYCURSOR);
       
        if( !validateOther() ){
            return ;
        }
       
        final IReviewboardClientRepository reviewboardClientRepository = SVNClientRepositoryAwair.getReviewboardClientRepository();
       
        //友好化用户体验
        if( null == reviewboardClientRepository.getClientFromUrlToClientMap()){
            run(new IRunnableWithProgress() {
                public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                    if( null != reviewboardClientRepository ){
                        if( null != monitor ){
                            monitor.setTaskName(RbSubclipseMessages.getString("PROGRESS_READINGCACHE")); //$NON-NLS-1$
                            monitor.worked(1);
View Full Code Here

    return PERSPECTIVE_ID;
  }

  @Override
  public void postShutdown() {
    IRunnableWithProgress runnable = new IRunnableWithProgress() {

      public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
              throws InvocationTargetException, InterruptedException {
        try {
          ResourcesPlugin.getWorkspace().save(true, monitor);
View Full Code Here

      }
    }

    if (!documentElements.isEmpty()) {

      IRunnableWithProgress annotatorRunnableAction = new CleanDocumentActionRunnable(
              documentElements);

      RunnableAction annotatorAction = new RunnableAction(shell, "Clean documents",
              annotatorRunnableAction);
View Full Code Here

        for (AnnotatorElement annotator : annotators) {
          AnnotatorConfiguration config = annotator.getAnnotatorConfiguration();

          if (config != null) {
            IRunnableWithProgress annotatorRunnableAction = new AnnotatorActionRunnable(config,
                    documentElements);

            RunnableAction annotatorAction = new RunnableAction(mShell, annotator.getName(),
                    annotatorRunnableAction);
View Full Code Here

                    "The file you selected already exist."
                            + "Do you want to overwrite its content ?")) {
            return false;
        }

        IRunnableWithProgress op = new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) throws InvocationTargetException {
                try {
                    doFinish(file, orgName, moduleName, status, monitor);
                } catch (CoreException e) {
                    throw new InvocationTargetException(e);
View Full Code Here

    }
   
    @Override
    public void mouseReleased( final MapMouseEvent e ) {
        if (e.x == x && e.y == y) {
            PlatformGIS.run(new IRunnableWithProgress() {

                @SuppressWarnings("unchecked")
                public void run(IProgressMonitor monitor) throws InvocationTargetException,
                        InterruptedException {
                    monitor.beginTask(Messages.ArrowSelection_0, 5);
View Full Code Here

        if (!areAllFieldsFilled()) {
            return null;
        }

        if (dataSource == null) {
            runInPage(new IRunnableWithProgress(){

                public void run( IProgressMonitor monitor ) throws InvocationTargetException,
                        InterruptedException {

                    if (monitor == null)
View Full Code Here

    }

    @Override
    public boolean leavingPage() {
        // Skip the resource selection wizard page
        IRunnableWithProgress runnable = new IRunnableWithProgress(){
            public void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException {
                getWizard().getWorkflow().next();
            }
        };
View Full Code Here

TOP

Related Classes of org.eclipse.jface.operation.IRunnableWithProgress

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.