Example #1
0
  protected void createChange(Build build) {
    try {
      BuildModel buildModel = build.getModel();
      if (buildModel.isStale()) {
        buildModel.reconciled(buildModel.getDocument());
      }
      BuildEntry buildEntry = (BuildEntry) build.getEntry(fEntry);
      if (buildEntry == null) buildEntry = new BuildEntry(fEntry, buildModel);

      if (fToken != null) buildEntry.addToken(fToken);
    } catch (CoreException e) {
    }
  }
Example #2
0
 protected void createChange(Build build) {
   try {
     BuildEntry buildEntry = (BuildEntry) build.getEntry(fEntry);
     if (buildEntry == null) return;
     if (fToken == null) build.remove(buildEntry);
     else {
       buildEntry.removeToken(fToken);
       if (buildEntry.getTokens().length == 0) {
         build.remove(buildEntry);
       }
     }
   } catch (CoreException e) {
   }
 }