Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PlanningPart.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PlanningPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PlanningPart.java
index 0926c9b34..e22cc869a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PlanningPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PlanningPart.java
@@ -368,7 +368,7 @@ public class PlanningPart extends AbstractLocalEditorPart {
}
noteEditor.getViewer().addTextListener(new ITextListener() {
public void textChanged(TextEvent event) {
- notesString = noteEditor.getText();
+ notesString = PERSONAL_NOTES.equals(noteEditor.getText()) ? "" : noteEditor.getText(); //$NON-NLS-1$
if (!notesEqual()) {
markDirty();
}
@@ -386,7 +386,7 @@ public class PlanningPart extends AbstractLocalEditorPart {
@Override
public void focusGained(FocusEvent e) {
- if (noteEditor.getText().equals(PERSONAL_NOTES)) {
+ if (PERSONAL_NOTES.equals(noteEditor.getText())) {
noteEditor.setText(""); //$NON-NLS-1$
if (noteEditor.getViewer() != null) {

Back to the top