Author: adietish
Date: 2011-03-31 15:48:45 -0400 (Thu, 31 Mar 2011)
New Revision: 30192
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java
Log:
[JBIDE-8660] enabled "Launch instance" in instance view even if no instance is
selected (erroneously committed to JBIDE-8659 before)
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-03-31 19:47:58
UTC (rev 30191)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-03-31 19:48:45
UTC (rev 30192)
@@ -1,7 +1,7 @@
2011-03-31 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java:
- * plugin.xml:
+ * plugin.xml:
[JBIDE-8659] enabled "Launch instance" in instance view even if no instance is
selected
* plugin.xml:
[JBIDE-8655] added "Launch instance" to context menu and toolbar in instance
view
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2011-03-31 19:47:58
UTC (rev 30191)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2011-03-31 19:48:45
UTC (rev 30192)
@@ -258,7 +258,7 @@
class="org.jboss.tools.deltacloud.ui.commands.CreateInstanceFromAnyImageHandler"
commandId="org.jboss.tools.deltacloud.ui.createinstanceFromAnyImage">
<enabledWhen>
- <or>
+ <or>
<with
variable="selection">
<and>
@@ -272,11 +272,11 @@
</iterate>
</and>
</with>
- <with
- variable="activePart">
- <instanceof
value="org.jboss.tools.deltacloud.ui.views.cloudelements.InstanceView" />
- </with>
- </or>
+ <with
+ variable="activePart">
+ <instanceof
value="org.jboss.tools.deltacloud.ui.views.cloudelements.InstanceView" />
+ </with>
+ </or>
</enabledWhen>
</handler>
</extension>
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java 2011-03-31
19:47:58 UTC (rev 30191)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/CreateInstanceFromAnyImageHandler.java 2011-03-31
19:48:45 UTC (rev 30192)
@@ -30,7 +30,7 @@
*/
public class CreateInstanceFromAnyImageHandler extends AbstractHandler implements
IHandler {
- @Override
+ @Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection selection = HandlerUtil.getCurrentSelection(event);
DeltaCloud cloud = null;
Show replies by date