Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubMonitor.worked()


                    associations.add(lAss);
                }
            }
            entityAssocaitionMap.put(lEntity, associations);
        }
        progress.worked(10);

        Set<AbstractFamixEntity> keys = entityAssocaitionMap.keySet();

        IEvolizerSession lSession = null;
        try {
View Full Code Here


            }
            lSession.flush();
            lSession.clear();

            sLogger.debug("Famix-Entities storage complete");
            progress.worked(45);

            sLogger.debug("Storing all Associstions");
            progress.setTaskName("Storing FAMIX associations");
            for (AbstractFamixEntity element : keys) {
                for (FamixAssociation association : entityAssocaitionMap.get(element)) {
View Full Code Here

            lSession.saveObject(fModel);
            lSession.flush();
            lSession.clear();
            sLogger.debug("Model entry stored");
           
            progress.worked(45);
        } catch (EvolizerException e) {
            throw new EvolizerException(e);
        } finally {
            if (lSession != null) {
                lSession.endTransaction();
View Full Code Here

                if (progress.isCanceled()) {
                    status = Status.CANCEL_STATUS;
                    break;
                }
                progress.worked(tick);
            }
        } finally {
            if (monitor != null) {
                monitor.done();
            }
View Full Code Here

                if (progress.isCanceled()) {
                    status = Status.CANCEL_STATUS;
                    break;
                }
                progress.worked(tick);
            }
        } finally {
            if (monitor != null) {
                monitor.done();
            }
View Full Code Here

      addOutputFolder(sub.newChild(1));
      addSourceFolder(sub.newChild(1));
      addLibFolder(sub.newChild(1));
   
      addSourceFiles();
      sub.worked(1);
      addLibFiles();
      sub.worked(1);
    }
  }
 
View Full Code Here

      addLibFolder(sub.newChild(1));
   
      addSourceFiles();
      sub.worked(1);
      addLibFiles();
      sub.worked(1);
    }
  }
 
  public void buildProject(IProgressMonitor monitor) throws CoreException {
    theProject.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
View Full Code Here

    SubMonitor sub = SubMonitor.convert(monitor, 5);
    sub.beginTask("Adding " + natureId + " nature to project.", 5);
   
    IProjectDescription description = theProject.getDescription();
    String[] natures = description.getNatureIds();
    sub.worked(1);
   
    String[] newNatures = new String[natures.length + 1];
    System.arraycopy(natures, 0, newNatures, 0, natures.length);   
    newNatures[natures.length] = natureId;
    sub.worked(1);
View Full Code Here

    sub.worked(1);
   
    String[] newNatures = new String[natures.length + 1];
    System.arraycopy(natures, 0, newNatures, 0, natures.length);   
    newNatures[natures.length] = natureId;
    sub.worked(1);
   
    description.setNatureIds(newNatures);
    sub.worked(1);
   
    theProject.setDescription(description, sub.newChild(2));
View Full Code Here

    System.arraycopy(natures, 0, newNatures, 0, natures.length);   
    newNatures[natures.length] = natureId;
    sub.worked(1);
   
    description.setNatureIds(newNatures);
    sub.worked(1);
   
    theProject.setDescription(description, sub.newChild(2));
  }

  public void deleteProject(IProgressMonitor monitor) throws CoreException {
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.