Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-06-30 23:36:32 -0400
committerfbecker2011-06-30 23:36:32 -0400
commit0dbacc8b275c553ffed554ad8f83e5a5b8d0750e (patch)
treea445a8bcdcac63c7c730eda1fb2aff0c582c4a38
parentd7bdddd0158c9523d5bfc965c1accc8c0cc6bb73 (diff)
downloadorg.eclipse.mylyn.tasks-0dbacc8b275c553ffed554ad8f83e5a5b8d0750e.tar.gz
org.eclipse.mylyn.tasks-0dbacc8b275c553ffed554ad8f83e5a5b8d0750e.tar.xz
org.eclipse.mylyn.tasks-0dbacc8b275c553ffed554ad8f83e5a5b8d0750e.zip
ASSIGNED - bug 349771: create UI for support adding private comments
https://bugs.eclipse.org/bugs/show_bug.cgi?id=349771
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java21
1 files changed, 9 insertions, 12 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
index db8ea38ce..aacf62b1d 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
@@ -527,11 +527,9 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
public void appendTextToNewComment(String text) {
AbstractTaskEditorPart newCommentPart = getPart(ID_PART_NEW_COMMENT);
- if (newCommentPart != null) {
- if (newCommentPart instanceof TaskEditorRichTextPart) {
- ((TaskEditorRichTextPart) newCommentPart).appendText(text);
- newCommentPart.setFocus();
- }
+ if (newCommentPart instanceof TaskEditorRichTextPart) {
+ ((TaskEditorRichTextPart) newCommentPart).appendText(text);
+ newCommentPart.setFocus();
}
}
@@ -780,14 +778,13 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
return new TaskEditorCommentPart();
}
}.setPath(PATH_COMMENTS));
-
- descriptors.add(new TaskEditorPartDescriptor(ID_PART_NEW_COMMENT) {
- @Override
- public AbstractTaskEditorPart createPart() {
- return new TaskEditorNewCommentPart();
- }
- }.setPath(PATH_COMMENTS));
}
+ descriptors.add(new TaskEditorPartDescriptor(ID_PART_NEW_COMMENT) {
+ @Override
+ public AbstractTaskEditorPart createPart() {
+ return new TaskEditorNewCommentPart();
+ }
+ }.setPath(PATH_COMMENTS));
if (needsPrivateSection() || taskData.isNew()) {
descriptors.add(new TaskEditorPartDescriptor(ID_PART_PLANNING) {

Back to the top