Package org.eclipse.core.resources

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


      try {
        final IWorkspace workspace = ResourcesPlugin.getWorkspace();

        // Run toggle followed by a full build as an atomic workspace operation so that things
        // are done in the right order
        workspace.run(new IWorkspaceRunnable() {
          @Override
          public void run(IProgressMonitor monitor) throws CoreException {
            for(IProject projectToToggle : projectsToToggle)
              toggleNature(projectToToggle, turnOn);
            workspace.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
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.