Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IWorkspace.run()


      IFolder planFolder = (IFolder)sSelection.getFirstElement();
      if (ToolProjectSupport.isPlanFolder(planFolder)){
        try {
          LocalRun runner = new LocalRun(planFolder.getName(), planFolder.getProject(), false);
          IWorkspace workspace = ResourcesPlugin.getWorkspace();
          workspace.run(runner, planFolder.getProject(), IWorkspace.AVOID_UPDATE, null);//TODO add a progress monitor
        } catch (CoreException e) {
          ToolPlugin.showError("Error running plan: " + planFolder.getName(), e);
        }
      }
    }
View Full Code Here


         * plug-in loaded. Don't do it immediately since adding the save
         * participant requires a lock on the workspace to compute the
         * accumulated deltas, and if the tree is not already locked it
         * becomes a blocking call.
         */
        workspace.run(new IWorkspaceRunnable() {
          public void run(final IProgressMonitor worspaceMonitor) throws CoreException {
            ISavedState savedState = null;
           
            try {
              //add the save participant for this bundle
View Full Code Here

           
            try
            {
                // need to lock the project tree, since may need to create
                // .settings directory
                workspace.run(storeJob, getProject(), IWorkspace.AVOID_UPDATE,
                        null);
            } catch (CoreException ce)
            {
                JSFCorePlugin.log(ce, "Problem storing properties"); //$NON-NLS-1$
            }
View Full Code Here

            }
        };

        monitor.beginTask("Removing resources", toDelete.size());
        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.run(deleteProcedure, workspace.getRoot(),
            IWorkspace.AVOID_UPDATE, monitor);

        FileListDiff result = new FileListDiff();
        result.added.addAll(this.added);
        result.altered.addAll(this.altered);
View Full Code Here

                }
            }
        };

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.run(moveProcedure, workspace.getRoot(),
            IWorkspace.AVOID_UPDATE, null);

    }
}
View Full Code Here

            }
        };

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.run(createFolderProcedure, workspace.getRoot(),
            IWorkspace.AVOID_UPDATE, null);

    }

    /**
 
View Full Code Here

            }
        };

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.run(createFolderProcedure, workspace.getRoot(),
            IWorkspace.AVOID_UPDATE, null);

    }

    /**
 
View Full Code Here

                }
            }
        };

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        workspace.run(deleteProcedure, workspace.getRoot(),
            IWorkspace.AVOID_UPDATE, null);

    }

    /**
 
View Full Code Here

         * plug-in loaded. Don't do it immediately since adding the save
         * participant requires a lock on the workspace to compute the
         * accumulated deltas, and if the tree is not already locked it
         * becomes a blocking call.
         */
        workspace.run(new IWorkspaceRunnable() {
          public void run(final IProgressMonitor worspaceMonitor) throws CoreException {
            ISavedState savedState = null;
           
            try {
              //add the save participant for this bundle
View Full Code Here

                    Messages.getString("MultiPageEditor.26") //$NON-NLS-1$
                            + getMessagesToRootCause(e), MessageDialog.ERROR);
          }
        }
      };
      workspace.run(runnable, monitor);
      getPrimarySourceFolder().refreshLocal(IResource.DEPTH_INFINITE, null);

      String jcasMsg = jCasGenThrower.getMessage();
      if (null != jcasMsg && jcasMsg.length() > 0) {
        Utility.popMessage(Messages.getString("MultiPageEditor.JCasGenErrorTitle"), //$NON-NLS-1$
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.