1 19 20 package org.netbeans.modules.versioning.system.cvss; 21 22 import org.netbeans.modules.versioning.system.cvss.util.Context; 23 24 import java.io.File ; 25 26 31 public class CvsFileTableModel { 32 33 private final int includeStatus; 34 private final Context context; 35 private final FileStatusCache cache; 36 37 CvsFileTableModel(Context context, int includeStatus) { 38 this.context = context; 39 this.includeStatus = includeStatus; 40 this.cache = CvsVersioningSystem.getInstance().getStatusCache(); 41 } 42 43 47 public CvsFileNode [] getNodes() { 48 File [] files = cache.listFiles(context, includeStatus); 49 CvsFileNode [] nodes = new CvsFileNode[files.length]; 50 for (int i = 0; i < files.length; i++) { 51 nodes[i] = new CvsFileNode(files[i]); 52 } 53 return nodes; 54 } 55 } 56 | Popular Tags |