Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-03-06 18:33:16 -0500
committerspingel2009-03-06 18:33:16 -0500
commitea432aeb93d882a7fcf0b5252084928d05890cc1 (patch)
tree292705f1b8e54c85c1074edb4755d55945f252b3
parentfc1db5ae24ab0e26285c3e918875079b6ef93b4d (diff)
downloadorg.eclipse.mylyn.tasks-ea432aeb93d882a7fcf0b5252084928d05890cc1.tar.gz
org.eclipse.mylyn.tasks-ea432aeb93d882a7fcf0b5252084928d05890cc1.tar.xz
org.eclipse.mylyn.tasks-ea432aeb93d882a7fcf0b5252084928d05890cc1.zip
RESOLVED - bug 265378: [api] allow attribute editors to refresh
https://bugs.eclipse.org/bugs/show_bug.cgi?id=265378
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor.java
index 1e22f5eb1..f8fce1508 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/BooleanAttributeEditor.java
@@ -66,6 +66,10 @@ public class BooleanAttributeEditor extends AbstractAttributeEditor {
@Override
public void refresh() {
+ if (button == null) {
+ return;
+ }
+
try {
ignoreNotification = true;
button.setSelection(getValue());
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor.java
index a87d2c336..176c5b92c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/SingleSelectionAttributeEditor.java
@@ -128,7 +128,7 @@ public class SingleSelectionAttributeEditor extends AbstractAttributeEditor {
} else {
text.setText(label);
}
- } else {
+ } else if (combo != null) {
combo.removeAll();
Map<String, String> labelByValue = getAttributeMapper().getOptions(getTaskAttribute());
if (labelByValue != null) {

Back to the top