blob: edcf998dcc4059e159c58006b78c3dacc0331da9 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="org.eclipse.emf.refactor.qa.menu"
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
id="org.eclipse.emf.refactor.runtime.menu"
label="EMF Quality Assurance (use existing techniques)">
<command
commandId="org.eclipse.emf.refactor.metrics.runtime.calculateMetricsOnElementCommand"
icon="icons/metric.PNG"
label="Calculate Configured Metrics (on element)"
style="push">
<visibleWhen
checkEnabled="true">
<iterate
ifEmpty="false">
<instanceof
value="org.eclipse.emf.ecore.EObject">
</instanceof>
</iterate>
</visibleWhen>
</command>
<command
commandId="org.eclipse.emf.refactor.metrics.runtime.calculateMetricsTransitivelyCommand"
icon="icons/metric.PNG"
label="Calculate Configured Metrics (transitively)"
style="push">
<visibleWhen
checkEnabled="true">
<iterate
ifEmpty="false">
<instanceof
value="org.eclipse.emf.ecore.EObject">
</instanceof>
</iterate>
</visibleWhen>
</command>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="org.eclipse.emf.refactor.metrics.runtime.calculateMetricsOnElementCommand"
name="CalculateMetricsOnElementCommand">
</command>
<command
id="org.eclipse.emf.refactor.metrics.runtime.calculateMetricsTransitivelyCommand"
name="CalculateMetricsTransitivelyCommand">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.emf.refactor.metrics.runtime.handler.CalculateMetricsOnElementCommandHandler"
commandId="org.eclipse.emf.refactor.metrics.runtime.calculateMetricsOnElementCommand">
</handler>
<handler
class="org.eclipse.emf.refactor.metrics.runtime.handler.CalculateMetricsTransitivelyCommandHandler"
commandId="org.eclipse.emf.refactor.metrics.runtime.calculateMetricsTransitivelyCommand">
</handler>
</extension>
<extension
point="org.eclipse.ui.views">
<view
category="org.eclipse.emf.refactor.view.category"
class="org.eclipse.emf.refactor.metrics.runtime.ui.MetricResultsView"
icon="icons/metric.PNG"
id="org.eclipse.emf.refactor.metrics.view"
name="Metric Results View"
restorable="true">
</view>
</extension>
</plugin>