|
Lines 527-537
Link Here
|
| 527 |
|
527 |
|
| 528 |
public void appendTextToNewComment(String text) { |
528 |
public void appendTextToNewComment(String text) { |
| 529 |
AbstractTaskEditorPart newCommentPart = getPart(ID_PART_NEW_COMMENT); |
529 |
AbstractTaskEditorPart newCommentPart = getPart(ID_PART_NEW_COMMENT); |
| 530 |
if (newCommentPart != null) { |
530 |
if (newCommentPart instanceof TaskEditorRichTextPart) { |
| 531 |
if (newCommentPart instanceof TaskEditorRichTextPart) { |
531 |
((TaskEditorRichTextPart) newCommentPart).appendText(text); |
| 532 |
((TaskEditorRichTextPart) newCommentPart).appendText(text); |
532 |
newCommentPart.setFocus(); |
| 533 |
newCommentPart.setFocus(); |
|
|
| 534 |
} |
| 535 |
} |
533 |
} |
| 536 |
} |
534 |
} |
| 537 |
|
535 |
|
|
Lines 780-793
Link Here
|
| 780 |
return new TaskEditorCommentPart(); |
778 |
return new TaskEditorCommentPart(); |
| 781 |
} |
779 |
} |
| 782 |
}.setPath(PATH_COMMENTS)); |
780 |
}.setPath(PATH_COMMENTS)); |
| 783 |
|
|
|
| 784 |
descriptors.add(new TaskEditorPartDescriptor(ID_PART_NEW_COMMENT) { |
| 785 |
@Override |
| 786 |
public AbstractTaskEditorPart createPart() { |
| 787 |
return new TaskEditorNewCommentPart(); |
| 788 |
} |
| 789 |
}.setPath(PATH_COMMENTS)); |
| 790 |
} |
781 |
} |
|
|
782 |
descriptors.add(new TaskEditorPartDescriptor(ID_PART_NEW_COMMENT) { |
| 783 |
@Override |
| 784 |
public AbstractTaskEditorPart createPart() { |
| 785 |
return new TaskEditorNewCommentPart(); |
| 786 |
} |
| 787 |
}.setPath(PATH_COMMENTS)); |
| 791 |
|
788 |
|
| 792 |
if (needsPrivateSection() || taskData.isNew()) { |
789 |
if (needsPrivateSection() || taskData.isNew()) { |
| 793 |
descriptors.add(new TaskEditorPartDescriptor(ID_PART_PLANNING) { |
790 |
descriptors.add(new TaskEditorPartDescriptor(ID_PART_PLANNING) { |