Commit 4fede0df authored by Florian's avatar Florian

Analysis Context menu only visible when Kieker Log folder is selected

parent 6d5c8291
......@@ -58,104 +58,26 @@
<handler
class="kieker.tools.eclipse.analysis.handler.folder.TraceTreeViewHandler"
commandId="kieker.tools.eclipse.analysis.commands.showTracesCommand">
<enabledWhen>
<with
variable="activeMenuSelection">
<iterate
operator="and">
<test
forcePluginActivation="true"
property="kieker.tools.eclipse.analysis.helper.kiekerLogFolderTester.checkFolder">
</test>
</iterate>
<count
value="1">
</count>
</with>
</enabledWhen>
</handler>
<handler
class="kieker.tools.eclipse.analysis.handler.folder.AggregatedTraceTreeViewHandler"
commandId="kieker.tools.eclipse.analysis.commands.showAggregatedTracesCommand">
<enabledWhen>
<with variable="activeMenuSelection">
<iterate operator="and">
<test
forcePluginActivation="true"
property="kieker.tools.eclipse.analysis.helper.kiekerLogFolderTester.checkFolder" >
</test>
</iterate>
<count
value="1">
</count>
</with>
</enabledWhen>
</handler>
<handler
class="kieker.tools.eclipse.analysis.handler.folder.OperationCallTreeViewHandler"
commandId="kieker.tools.eclipse.analysis.commands.showOperationCallsCommand">
<enabledWhen>
<with variable="activeMenuSelection">
<iterate operator="and">
<test
forcePluginActivation="true"
property="kieker.tools.eclipse.analysis.helper.kiekerLogFolderTester.checkFolder" >
</test>
</iterate>
<count
value="1">
</count>
</with>
</enabledWhen>
</handler>
<handler
class="kieker.tools.eclipse.analysis.handler.folder.AggregatedOperationCallTreeViewHandler"
commandId="kieker.tools.eclipse.analysis.commands.showAggregatedOperationCallsCommand">
<enabledWhen>
<with
variable="activeMenuSelection">
<iterate
operator="and">
<test
forcePluginActivation="true"
property="kieker.tools.eclipse.analysis.helper.kiekerLogFolderTester.checkFolder">
</test>
</iterate>
<count
value="1">
</count>
</with>
</enabledWhen>
</handler>
<handler
class="kieker.tools.eclipse.analysis.handler.OpenFileHandler"
commandId="kieker.tools.eclipse.analysis.commands.openFileInEditor">
<enabledWhen>
<with
variable="activeMenuSelection">
<count
value="1">
</count>
</with>
</enabledWhen>
</handler>
<handler
class="kieker.tools.eclipse.analysis.handler.folder.ShowMonitoringLogsHandler"
commandId="kieker.tools.eclipse.analysis.commands.showMonitoringStatsCommand">
<enabledWhen>
<with
variable="activeMenuSelection">
<iterate
operator="and">
<test
property="kieker.tools.eclipse.analysis.helper.kiekerLogFolderTester.checkFolder">
</test>
</iterate>
<count
value="1">
</count>
</with>
</enabledWhen>
</handler>
<handler
class="kieker.tools.eclipse.analysis.handler.view.SelectTraceFromOpCallHandler"
......@@ -204,11 +126,18 @@
<visibleWhen
checkEnabled="false">
<with
variable="activeMenuSelection">
<count
value="+">
</count>
</with>
variable="activeMenuSelection">
<iterate
operator="and">
<test
forcePluginActivation="true"
property="kieker.tools.eclipse.analysis.helper.kiekerLogFolderTester.checkFolder">
</test>
</iterate>
<count
value="1">
</count>
</with>
</visibleWhen>
</menu>
</menuContribution>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment