Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-10-03 07:13:25 -0400
committerGerrit Code Review @ Eclipse.org2013-10-07 15:23:28 -0400
commited32420d9f87d18a801caed2caddcfa6901492cb (patch)
treeef79719632d41371790b6ff2a1796763d22ea6e7 /org.eclipse.mylyn.tasks.ui
parent31148a3ccf2ca4836936069fe478dc1f450690a0 (diff)
downloadorg.eclipse.mylyn.tasks-ed32420d9f87d18a801caed2caddcfa6901492cb.tar.gz
org.eclipse.mylyn.tasks-ed32420d9f87d18a801caed2caddcfa6901492cb.tar.xz
org.eclipse.mylyn.tasks-ed32420d9f87d18a801caed2caddcfa6901492cb.zip
415893: Task Editor stays dirty after clearing Private notes
Bug: 415893 Change-Id: I2dc3931b78cc93835237d5e7dccd6fe942297529 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=415893 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-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