Commit fbf4920e authored by Christian Wulf's avatar Christian Wulf

added context menu for project explorer

parent 1eb42dcd
......@@ -66,13 +66,37 @@
definitionId="kieker.tools.eclipse.monitoring.hasNature">
</reference>
</iterate>
</with>
<with
variable="selection">
<count
value="+">
</count>
</with>
</with>
</and>
</visibleWhen>
</menu>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions">
<menu
icon="resources/kieker16.png"
label="Kieker Monitoring">
<command
commandId="kieker.tools.eclipse.monitoring.commands.Probes"
label="Probes Configuration"
style="push">
</command>
<command
commandId="kieker.tools.eclipse.monitoring.commands.Properties"
label="Properties"
style="push">
</command>
<visibleWhen
checkEnabled="false">
<and>
<with variable="selection">
<iterate ifEmpty="false">
<reference
definitionId="kieker.tools.eclipse.monitoring.hasNature">
</reference>
</iterate>
</with>
</and>
</visibleWhen>
</menu>
......@@ -84,9 +108,9 @@
commandId="kieker.tools.eclipse.monitoring.commands.AddProjectNature"
label="Convert to Kieker Monitoring Project"
style="push">
<visibleWhen
checkEnabled="false">
<with variable="activeMenuSelection">
<visibleWhen checkEnabled="false">
<with variable="selection">
<!--<with variable="activeMenuSelection">-->
<iterate ifEmpty="false">
<not>
<reference
......@@ -125,12 +149,14 @@
name="ShowProperties">
</command>
<command
categoryId="org.eclipse.ui.category.project"
id="kieker.tools.eclipse.monitoring.commands.AddProjectNature"
name="Convert to Kieker Monitoring Project">
</command>
</extension>
<extension
id="kiekerMonitoringNature"
id="kieker.tools.eclipse.monitoring.kiekerMonitoringNature"
name="Kieker Monitoring Nature"
point="org.eclipse.core.resources.natures">
<runtime>
<run
......@@ -138,10 +164,8 @@
</run>
</runtime>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="kieker.tools.eclipse.monitoring.hasNature">
<extension point="org.eclipse.core.expressions.definitions">
<definition id="kieker.tools.eclipse.monitoring.hasNature">
<adapt
type="org.eclipse.core.resources.IResource">
<test
......
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