Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-02-17 16:41:46 +0000
committerSteffen Pingel2012-02-17 16:41:46 +0000
commit7ab5dac7ed87ed19987c310106ff032bb6c911e6 (patch)
tree1d57799585a4cbbf9fe7428edc1ef7759143bdf8
parent07d158621bf5693d790e9351d25b7d243ee5c1ca (diff)
downloadorg.eclipse.mylyn.tasks-7ab5dac7ed87ed19987c310106ff032bb6c911e6.tar.gz
org.eclipse.mylyn.tasks-7ab5dac7ed87ed19987c310106ff032bb6c911e6.tar.xz
org.eclipse.mylyn.tasks-7ab5dac7ed87ed19987c310106ff032bb6c911e6.zip
RESOLVED - bug 355057: [Compatibility]
org.eclipse.core.runtime.isBundleInstalled property tester cannot be found https://bugs.eclipse.org/bugs/show_bug.cgi?id=355057
-rw-r--r--org.eclipse.mylyn.tasks.ui/plugin.xml2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java6
2 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index 37ae06db1..035577ed4 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -2130,12 +2130,14 @@
class="org.eclipse.mylyn.internal.tasks.ui.commands.ShowTasksConnectorDiscoveryWizardCommandHandler"
commandId="org.eclipse.mylyn.tasks.ui.discoveryWizardCommand">
<enabledWhen>
+ <with variable="org.eclipse.core.runtime.Platform">
<and>
<test
property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.mylyn.discovery.ui"/>
<test
property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.equinox.p2.repository"/>
</and>
+ </with>
</enabledWhen>
</handler>
</extension>
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
index 70f9034be..78ee0ffd0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TasksUiInternal.java
@@ -172,8 +172,10 @@ public class TasksUiInternal {
IHandlerService handlerService = (IHandlerService) PlatformUI.getWorkbench().getService(
IHandlerService.class);
EvaluationContext evaluationContext = createDiscoveryWizardEvaluationContext(handlerService);
- // update enabled state in case something has changed (ProxyHandler caches state)
- discoveryWizardCommand.setEnabled(evaluationContext);
+ if (!discoveryWizardCommand.isEnabled()) {
+ // update enabled state in case something has changed (ProxyHandler caches state)
+ discoveryWizardCommand.setEnabled(evaluationContext);
+ }
}
return discoveryWizardCommand;
}

Back to the top