Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats/plugin.xml120
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml84
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java4
3 files changed, 160 insertions, 48 deletions
diff --git a/plugins/org.eclipse.osee.ats/plugin.xml b/plugins/org.eclipse.osee.ats/plugin.xml
index a77456574b..0647b3f715 100644
--- a/plugins/org.eclipse.osee.ats/plugin.xml
+++ b/plugins/org.eclipse.osee.ats/plugin.xml
@@ -257,26 +257,54 @@
<handler
class="org.eclipse.osee.ats.editor.renderer.AtsWEHandler"
commandId="org.eclipse.osee.framework.ui.skynet.atseditor.command">
- <enabledWhen>
- <with
- variable="selection">
- <count
- value="+">
- </count>
- </with>
- </enabledWhen>
+ <activeWhen>
+ <or>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.world.WorldEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.TaskEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.SMAEditor">
+ </equals>
+ </with>
+ </or>
+ </activeWhen>
</handler>
<handler
class="org.eclipse.osee.ats.workdef.viewer.AtsWorkDefViewerHandler"
commandId="org.eclipse.osee.ats.atsworkdefviewer.command">
- <enabledWhen>
- <with
- variable="selection">
- <count
- value="+">
- </count>
- </with>
- </enabledWhen>
+ <activeWhen>
+ <or>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.world.WorldEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.TaskEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.SMAEditor">
+ </equals>
+ </with>
+ </or>
+ </activeWhen>
</handler>
<handler
class="org.eclipse.osee.ats.workdef.editor.AtsWorkDefinitionDslHandler"
@@ -305,26 +333,54 @@
<handler
class="org.eclipse.osee.ats.world.AtsWorldEditorHandler"
commandId="org.eclipse.osee.framework.ui.skynet.atsworldeditor.command">
- <enabledWhen>
- <with
- variable="selection">
- <count
- value="+">
- </count>
- </with>
- </enabledWhen>
+ <activeWhen>
+ <or>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.world.WorldEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.TaskEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.SMAEditor">
+ </equals>
+ </with>
+ </or>
+ </activeWhen>
</handler>
<handler
class="org.eclipse.osee.ats.export.AtsExportHandler"
commandId="org.eclipse.osee.framework.ui.skynet.atsexport.command">
- <enabledWhen>
- <with
- variable="selection">
- <count
- value="+">
- </count>
- </with>
- </enabledWhen>
+ <activeWhen>
+ <or>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.world.WorldEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.TaskEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.SMAEditor">
+ </equals>
+ </with>
+ </or>
+ </activeWhen>
</handler>
<handler
class="org.eclipse.osee.framework.ui.skynet.commandHandlers.ShowArtifactInResourceHandler"
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml b/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
index 0f9e265fb8..d77df194b9 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/plugin.xml
@@ -548,24 +548,76 @@
</activeWhen>
</handler>
<handler class="org.eclipse.osee.framework.ui.skynet.commandHandlers.OpenMassArtifactEditorHandler" commandId="org.eclipse.osee.framework.ui.skynet.OpenMassEditcommand">
- <enabledWhen>
- <with
- variable="selection">
- <count
- value="+">
- </count>
- </with>
- </enabledWhen>
+ <activeWhen>
+ <or>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.world.WorldEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.TaskEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.SMAEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.search.ui.views.SearchView">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.framework.ui.skynet.results.ResultsEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.framework.ui.skynet.change.ChangeReportEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.framework.ui.skynet.widgets.xHistory.HistoryView">
+ </equals>
+ </with>
+ </or>
+ </activeWhen>
</handler>
<handler class="org.eclipse.osee.framework.ui.skynet.commandHandlers.OpenArtifactExplorerHandler" commandId="org.eclipse.osee.framework.ui.skynet.OpenArtifactExplorerCommand">
- <enabledWhen>
- <with
- variable="selection">
- <count
- value="1">
- </count>
- </with>
- </enabledWhen>
+ <activeWhen>
+ <or>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.world.WorldEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.TaskEditor">
+ </equals>
+ </with>
+ <with
+ variable="activePartId">
+ <equals
+ value="org.eclipse.osee.ats.editor.SMAEditor">
+ </equals>
+ </with>
+ </or>
+ </activeWhen>
</handler>
<handler class="org.eclipse.osee.framework.ui.skynet.commandHandlers.OpenSkywalkerEditorHandler" commandId="org.eclipse.osee.framework.ui.skynet.skywalker.command">
<activeWhen>
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java
index ca3f6c83a8..052f100103 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/OpenContributionItem.java
@@ -126,6 +126,10 @@ public class OpenContributionItem extends ContributionItem {
}
IContributionItem openItem = createDefaultOpenItem();
openItem.fill(parent, index);
+ MenuItem open = parent.getItem(0);
+ if (open != null) {
+ open.setEnabled(parent.isEnabled());
+ }
final MenuItem item = new MenuItem(parent, SWT.CASCADE, index + 1);
item.setText("Open With");

Back to the top