Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Fullbright2013-05-03 14:58:09 +0000
committerPaul Fullbright2013-05-07 17:56:50 +0000
commit256c8b30047581eef567a1325d124422fb984540 (patch)
tree4351287fd24869491ec6039fc86885a80fea532d
parent72838ed23cdea3f23135dce53683e0a3e9e595ad (diff)
downloadwebtools.dali-256c8b30047581eef567a1325d124422fb984540.tar.gz
webtools.dali-256c8b30047581eef567a1325d124422fb984540.tar.xz
webtools.dali-256c8b30047581eef567a1325d124422fb984540.zip
visibility of JPA creation toolbar (Bug 397765)
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml32
1 files changed, 30 insertions, 2 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml b/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml
index 2e958e0b83..9f98ff78f1 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/plugin.xml
@@ -35,7 +35,7 @@
</definition>
<definition id="org.eclipse.jpt.jpa.ui.reference.inJpaPerspective">
- <with variable="activePartId">
+ <with variable="activeWorkbenchWindow.activePerspective">
<equals value="org.eclipse.jpt.ui.jpaPerspective"/>
</with>
</definition>
@@ -237,6 +237,17 @@
</extension>
+ <extension
+ point="org.eclipse.ui.actionSets">
+
+ <actionSet
+ id="org.eclipse.jpt.jpa.ui.actionSet.jpaElementCreation"
+ label="%JptCreationToolbar.label"
+ description="%JptCreationToolbar.description">
+ </actionSet>
+
+ </extension>
+
<!-- ***** commands ***** -->
<extension
@@ -665,14 +676,31 @@
icon="$nl$/images/buttons/new-entity.gif"
disabledIcon="$nl$/images/buttons/new-entity-disabled.gif"
style="pulldown">
+ <visibleWhen>
+ <or>
+ <reference
+ definitionId="org.eclipse.jpt.jpa.ui.reference.inJpaPerspective">
+ </reference>
+ <with
+ variable="activeContexts">
+ <iterate
+ operator="or">
+ <equals
+ value="org.eclipse.jpt.jpa.ui.actionSet.jpaElementCreation">
+ </equals>
+ </iterate>
+ </with>
+ </or>
+ </visibleWhen>
</command>
- <!-- visibleWhen not working in this case, dependent on bug 201589 -->
+ <!-- visibleWhen not working in this case, dependent on bug 201589
<visibleWhen>
<reference
definitionId="org.eclipse.jpt.jpa.ui.reference.inJpaPerspective">
</reference>
</visibleWhen>
+ -->
</toolbar>

Back to the top