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