Package org.eclipse.core.resources

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


                    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


      }

    };
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    try {
      workspace.run(operation, this.getIProject(), IWorkspace.AVOID_UPDATE, new NullProgressMonitor());
    } catch (CoreException e) {
      CorePlugin.getDefault().log(e);
    }
  }
View Full Code Here

                }
              }
            }
          };
          IWorkspace workspace = ResourcesPlugin.getWorkspace();
          workspace.run(body, new NullProgressMonitor());
        }
      } catch (Exception e) {
        Activator.getDefault().log(e);
      }
    }
View Full Code Here

          IProjectDescription description = projectResource.getDescription();
          description.setDynamicReferences(requiredProjectArray);
          projectResource.setDescription(description, IResource.AVOID_NATURE_CONFIG, null);
        }
      };
      workspace.run(runnable, rule, IWorkspace.AVOID_UPDATE, null);
    } catch(CoreException e){
      if (!ExternalJavaProject.EXTERNAL_PROJECT_NAME.equals(this.project.getElementName()))
        throw new JavaModelException(e);
    }
  }
View Full Code Here

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if (workspace.isTreeLocked()) {
      new BatchOperation(action).run(monitor);
    } else {
      // use IWorkspace.run(...) to ensure that a build will be done in autobuild mode
      workspace.run(new BatchOperation(action), rule, IWorkspace.AVOID_UPDATE, monitor);
    }
  }
  /**
   * Bind a container reference path to some actual containers (<code>IClasspathContainer</code>).
   * This API must be invoked whenever changes in container need to be reflected onto the JavaModel.
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

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if (workspace.isTreeLocked()) {
      new BatchOperation(action).run(monitor);
    } else {
      // use IWorkspace.run(...) to ensure that a build will be done in autobuild mode
      workspace.run(new BatchOperation(action), rule, IWorkspace.AVOID_UPDATE, monitor);
    }
  }
  /**
   * Bind a container reference path to some actual containers (<code>IClasspathContainer</code>).
   * This API must be invoked whenever changes in container need to be reflected onto the JavaModel.
View Full Code Here

          IProjectDescription description = projectResource.getDescription();
          description.setDynamicReferences(requiredProjectArray);
          projectResource.setDescription(description, IResource.AVOID_NATURE_CONFIG, null);
        }
      };
      workspace.run(runnable, rule, IWorkspace.AVOID_UPDATE, null);
    } catch(CoreException e){
      if (!ExternalJavaProject.EXTERNAL_PROJECT_NAME.equals(this.project.getElementName()))
        throw new JavaModelException(e);
    }
  }
View Full Code Here

   */
  public void run(IProgressMonitor monitor) throws InvocationTargetException,
      InterruptedException {
    try {
      IWorkspace workspace = ResourcesPlugin.getWorkspace();
      workspace.run(fWorkspaceRunnable, fRule, IWorkspace.AVOID_UPDATE,
          monitor);
    } catch (OperationCanceledException e) {
      throw new InterruptedException(e.getMessage());
    } catch (CoreException e) {
      throw new InvocationTargetException(e);
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.