Пример #1
0
  protected void doStartup(IProgressMonitor monitor) {
    checkAndRecoverFiles(monitor);

    if (monitor.isCanceled()) return;

    if (DEBUG_CHECK_OPEN_FILE) {
      checkAndOpenFiles(monitor);
    } else {
      // delete file paths which need to open from command line
      Log openFile = Log.get(Log.OPENING);
      if (openFile.exists()) openFile.delete();
    }

    if (monitor.isCanceled()) return;
    waitForInitialFilesLoaded(monitor);

    if (monitor.isCanceled()) return;
    openStartupMap(monitor);
  }
Пример #2
0
 protected void checkAndOpenFiles(IProgressMonitor monitor) {
   Job subJob = new CheckOpenFilesJob(workbench);
   subJob.setRule(Log.get(Log.OPENING));
   subJob.setUser(isUser());
   subJob.setSystem(isSystem());
   subJob.setProgressGroup(monitor, 1);
   subJob.schedule();
   try {
     subJob.join();
   } catch (InterruptedException e) {
   }
 }