Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.WorkspaceJob.schedule()


                        .run(monitor);

                return Status.OK_STATUS;
            }
        };
        job.schedule();
        return true;
    }

    /*
     * (non-Javadoc)
 
View Full Code Here


                ExecuteAnonymousResultExt result = executeAnonymousController.executeExecuteAnonymous(code);
                handleExecuteResults(result);
                return Status.OK_STATUS;
            }
        };
        job.schedule();
    }

    protected void createResultComposite() {
        cmpResult = new Composite(sashForm, SWT.NONE);
        cmpResult.setLayout(new GridLayout(1, false));
View Full Code Here

        monitorCheckSubTask(monitor, Messages.getString("Components.Saving"));
        WorkspaceJob job =
                new ForceProjectRefreshJob.ForceProjectRefreshProject(projectPackageList,
                        projectPackageList.getProject());
        job.setRule(projectPackageList.getProject());
        job.schedule();

        monitorCheck(monitor);
    }

    public void generateSchemaFile(IProgressMonitor monitor) throws CoreException, IOException {
View Full Code Here

                        }
                        return Status.OK_STATUS;
                    }
                };
                job.schedule();
            }

        } catch (CoreException e) {
            String logMessage = Utils.generateCoreExceptionLog(e);
            logger.warn("Unable to evaluated added project(s) for builder skip: " + logMessage);
View Full Code Here

        return Status.OK_STATUS;
      }
    };
    job.setRule(project.getWorkspace().getRoot());
    job.setPriority(WorkspaceJob.INTERACTIVE);
    job.schedule();
  }

  public static boolean isBuildpathAllowed(IBuildpathEntry entry) {
    return ((entry.getEntryKind() == IBuildpathEntry.BPE_CONTAINER && !entry
        .getPath().toString()
View Full Code Here

          startupHandler.earlyStartup();
          if (monitor.isCanceled()) return Status.CANCEL_STATUS;
          return Status.OK_STATUS;
        }
      };
      job.schedule(3000);
      // startup the image registry in job so doesn't slow down init
      CFPluginImages.initCFPluginImages();

      setupCAM();
      setupLastEncMgr();
View Full Code Here

        }
        return Status.OK_STATUS;
      }
    };
    job.setRule(configurationManager.getRule());
    job.schedule();
  }

  /**
   * Returns the list of Maven projects impacted by the configuration change.
   *
 
View Full Code Here

        constr = jobClass.getConstructor(IProject[].class, boolean.class, boolean.class);
        job = (WorkspaceJob) constr.newInstance(
            new IProject[] { project }, MavenPlugin.getMavenConfiguration().isOffline(), false);
      }
      if (job != null) {
        job.schedule();
      }
    }
    catch (Throwable e) {
      RooCoreActivator.log(new Status(IStatus.ERROR, RooUiActivator.PLUGIN_ID,
          "Unable to update Maven project configuration", e));
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.