1.1 --- a/src/main/java/de/uapcore/lightpit/viewmodel/IssueEditView.java Fri Oct 23 12:38:20 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/viewmodel/IssueEditView.java Fri Oct 23 13:29:33 2020 +0200 1.3 @@ -4,23 +4,12 @@ 1.4 1.5 import java.util.*; 1.6 1.7 -public class IssueEditView extends ProjectView { 1.8 - private Issue issue; 1.9 - 1.10 +public class IssueEditView extends IssueDetailView { 1.11 private List<Project> projects = Collections.emptyList(); 1.12 private Set<Version> versionsUpcoming = new HashSet<>(); 1.13 private Set<Version> versionsRecent = new HashSet<>(); 1.14 private List<User> users; 1.15 private List<Component> components; 1.16 - private List<IssueComment> comments; 1.17 - 1.18 - public void setIssue(Issue issue) { 1.19 - this.issue = issue; 1.20 - } 1.21 - 1.22 - public Issue getIssue() { 1.23 - return issue; 1.24 - } 1.25 1.26 public List<Project> getProjects() { 1.27 return projects; 1.28 @@ -42,8 +31,8 @@ 1.29 versionsRecent.clear(); 1.30 versionsUpcoming.clear(); 1.31 // keep the current selection, if any 1.32 - versionsRecent.addAll(issue.getAffectedVersions()); 1.33 - versionsUpcoming.addAll(issue.getResolvedVersions()); 1.34 + versionsRecent.addAll(getIssue().getAffectedVersions()); 1.35 + versionsUpcoming.addAll(getIssue().getResolvedVersions()); 1.36 for (var v : versions) { 1.37 if (v.getStatus().isReleased()) { 1.38 if (!v.getStatus().equals(VersionStatus.Deprecated)) 1.39 @@ -77,12 +66,4 @@ 1.40 public IssueCategory[] getIssueCategory() { 1.41 return IssueCategory.values(); 1.42 } 1.43 - 1.44 - public List<IssueComment> getComments() { 1.45 - return comments; 1.46 - } 1.47 - 1.48 - public void setComments(List<IssueComment> comments) { 1.49 - this.comments = comments; 1.50 - } 1.51 }