1 19 20 package org.netbeans.modules.tasklist.bugs.issues; 21 22 import java.util.ArrayList ; 23 import java.util.List ; 24 25 28 public class IssuesList { 29 private int freeId; 30 31 32 public List issues = new ArrayList (); 33 34 35 public List components = new ArrayList (); 36 37 38 public List statuses = new ArrayList (); 39 40 41 public List resolutions = new ArrayList (); 42 43 44 public List platforms = new ArrayList (); 45 46 47 public List operatingSystems = new ArrayList (); 48 49 50 public List versions = new ArrayList (); 51 52 53 public List priorities = new ArrayList (); 54 55 56 public List issueTypes = new ArrayList (); 57 58 59 public List persons = new ArrayList (); 60 61 64 public IssuesList() { 65 } 66 67 72 public int getIssueCount() { 73 return issues.size(); 74 } 75 76 81 public Issue getIssue(int index) { 82 return (Issue) issues.get(index); 83 } 84 85 90 public Issue createIssue() { 91 Issue issue = new Issue(this, freeId++); 92 issues.add(issue); 93 return issue; 94 } 95 } 96 | Popular Tags |