1 11 package org.eclipse.pde.internal.ui.nls; 12 13 import java.util.ArrayList ; 14 15 import org.eclipse.core.resources.IFile; 16 17 public class ModelChangeFile { 18 private IFile fFile; 19 private ModelChange fModel; 20 private ArrayList fChanges = new ArrayList (); 21 private int fNumChanges = 0; 22 public ModelChangeFile (IFile file, ModelChange model) { 23 fFile = file; 24 fModel = model; 25 } 26 protected IFile getFile() { 27 return fFile; 28 } 29 protected ModelChange getModel() { 30 return fModel; 31 } 32 public void add(ModelChangeElement element) { 33 if (fChanges.add(element)) 34 fNumChanges += 1; 35 } 36 protected int getNumChanges() { 37 return fNumChanges; 38 } 39 protected ArrayList getChanges() { 40 return fChanges; 41 } 42 } 43 | Popular Tags |