}
}
TaskAttribute rootAttribute = getModel().getTaskData().getRoot();
descriptors.add(new TaskEditorPartDescriptor(PlanningEditorPart.PART_ID) {
@Override
public AbstractTaskEditorPart createPart() {
return new PlanningEditorPart();
}
}.setPath(PATH_ATTRIBUTES));
if (rootAttribute.getAttribute(RedmineAttribute.TIME_ENTRY_TOTAL.getTaskKey())!=null) {
descriptors.add(new TaskEditorPartDescriptor(TimeEntryEditorPart.PART_ID) {
@Override
public AbstractTaskEditorPart createPart() {
return new TimeEntryEditorPart();
}
}.setPath(PATH_COMMENTS));
}
if (!getModel().getTask().isCompleted() && rootAttribute.getAttribute(RedmineAttribute.TIME_ENTRY_HOURS.getTaskKey())!=null) {
descriptors.add(new TaskEditorPartDescriptor(NewTimeEntryEditorPart.PART_ID) {
@Override
public AbstractTaskEditorPart createPart() {
return new NewTimeEntryEditorPart();
}
}.setPath(PATH_COMMENTS));
}
descriptors.add(new TaskEditorPartDescriptor(RedminePeoplePart.PART_ID) {
@Override
public AbstractTaskEditorPart createPart() {
return new RedminePeoplePart();
}
}.setPath(PATH_ACTIONS));