Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2011-05-17 23:40:16 +0000
committerspingel2011-05-17 23:40:16 +0000
commitdb518e8f0cf6759e4e0f1395412b3c7b87ca92dd (patch)
treee238670d6435efafe2d7a010d242d982a165adb5 /org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor
parent7624b813def465b75e15f94578b07eedde65f943 (diff)
downloadorg.eclipse.mylyn.tasks-db518e8f0cf6759e4e0f1395412b3c7b87ca92dd.tar.gz
org.eclipse.mylyn.tasks-db518e8f0cf6759e4e0f1395412b3c7b87ca92dd.tar.xz
org.eclipse.mylyn.tasks-db518e8f0cf6759e4e0f1395412b3c7b87ca92dd.zip
RESOLVED - bug 345909: [regression] priority editor doesn't show new value
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345909
Diffstat (limited to 'org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracCcAttributeEditor.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracCcAttributeEditor.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracCcAttributeEditor.java
index 4b98cc2c8..e37f3bbf1 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracCcAttributeEditor.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracCcAttributeEditor.java
@@ -36,7 +36,7 @@ public class TracCcAttributeEditor extends AbstractAttributeEditor {
private TaskAttribute attrRemoveCc;
- protected boolean cflowWidgetSelected;
+ protected boolean suppressRefresh;
public TracCcAttributeEditor(TaskDataModel manager, TaskAttribute taskAttribute) {
super(manager, taskAttribute);
@@ -58,11 +58,10 @@ public class TracCcAttributeEditor extends AbstractAttributeEditor {
selectValuesToRemove();
list.addSelectionListener(new SelectionAdapter() {
-
@Override
public void widgetSelected(SelectionEvent e) {
try {
- cflowWidgetSelected = true;
+ suppressRefresh = true;
for (String cc : list.getItems()) {
int index = list.indexOf(cc);
if (list.isSelected(index)) {
@@ -76,7 +75,7 @@ public class TracCcAttributeEditor extends AbstractAttributeEditor {
}
getModel().attributeChanged(attrRemoveCc);
} finally {
- cflowWidgetSelected = false;
+ suppressRefresh = false;
}
}
});
@@ -106,7 +105,7 @@ public class TracCcAttributeEditor extends AbstractAttributeEditor {
@Override
public void refresh() {
- if (!cflowWidgetSelected && list != null && !list.isDisposed()) {
+ if (list != null && !list.isDisposed()) {
list.removeAll();
populateFromAttribute();
selectValuesToRemove();
@@ -115,6 +114,7 @@ public class TracCcAttributeEditor extends AbstractAttributeEditor {
@Override
public boolean shouldAutoRefresh() {
- return true;
+ return !suppressRefresh;
}
+
}

Back to the top