Package org.eclipse.ui.actions

Examples of org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation


  /*
   * @see org.eclipse.jface.operation.IRunnableContext#run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)
   */
  public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable, ISchedulingRule schedulingRule) throws InvocationTargetException, InterruptedException {
    WorkspaceModifyDelegatingOperation operation= new WorkspaceModifyDelegatingOperation(runnable, schedulingRule);
    operation.run(getProgressMonitor());
  }
View Full Code Here


   * @see Wizard#performFinish
   */
  public boolean performFinish() {
    ExampleProjectCreationOperation runnable = new ExampleProjectCreationOperation(pages, new ImportOverwriteQuery());

    IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(runnable);
    try {
      getContainer().run(false, true, op);
    }
    catch (InvocationTargetException e) {
      handleException(e.getTargetException());
View Full Code Here

  public void run() {
    IWorkbenchPart workbenchPart = page.getActivePart();
    if (workbenchPart instanceof IDiagramWorkbenchPart) {
      final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
      try {
        new WorkspaceModifyDelegatingOperation(
            new IRunnableWithProgress() {

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

  public void run() {
    IWorkbenchPart workbenchPart = page.getActivePart();
    if (workbenchPart instanceof IDiagramWorkbenchPart) {
      final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
      try {
        new WorkspaceModifyDelegatingOperation(
            new IRunnableWithProgress() {

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

  public void run() {
    IWorkbenchPart workbenchPart = page.getActivePart();
    if (workbenchPart instanceof IDiagramWorkbenchPart) {
      final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
      try {
        new WorkspaceModifyDelegatingOperation(
            new IRunnableWithProgress() {

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

        }
      }
    };

    try {
      getContainer().run(true, false, new WorkspaceModifyDelegatingOperation(op));
    } catch (InvocationTargetException e) {
      final String title = NewWizardMessages.ScriptProjectWizardSecondPage_error_title;
      final String message = NewWizardMessages.ScriptProjectWizardSecondPage_error_message;
      ExceptionHandler.handle(e, getShell(), title, message);
    } catch (InterruptedException e) {
View Full Code Here

      subprojectCreator = new WOSubprojectCreator(subprojectFolder, subprojectName);
      break;

    }

    IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(subprojectCreator);

    return createResourceOperation(op);
  }
View Full Code Here

    this.getDialogSettings().put(WOComponentCreationPage.HTML_DOCTYPE_KEY, _htmlCombo.getText());
    this.getDialogSettings().put(WOComponentCreationPage.NSSTRING_ENCODING_KEY, _encodingCombo.getText());
    this.getDialogSettings().put(WOComponentCreationPage.API_CHECKBOX_KEY, _apiCheckbox.getSelection());

    // logPreferences();
    IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(componentCreator);
    return createResourceOperation(op);
  }
View Full Code Here

    default:
      IFolder subprojectFolder = getProject().getFolder(getContainerFullPath().removeFirstSegments(1));
      modelCreator = new EOModelCreator(subprojectFolder, modelName, adaptorName, pluginName, createEOGeneratorFile, this);
      break;
    }
    IRunnableWithProgress op = new WorkspaceModifyDelegatingOperation(modelCreator);
    return createResourceOperation(op);
  }
View Full Code Here

  public void run() {
    IWorkbenchPart workbenchPart = page.getActivePart();
    if (workbenchPart instanceof IDiagramWorkbenchPart) {
      final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
      try {
        new WorkspaceModifyDelegatingOperation(
            new IRunnableWithProgress() {

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

TOP

Related Classes of org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation

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.