blob: a7e194e3c7456c0b17305c369559eb00cabff87e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
Copyright (c) 2009 Red Hat, Inc. All rights reserved. This program and
the accompanying materials are made available under the terms of the
Eclipse Public License v1.0 which accompanies this distribution, and
is available at http://www.eclipse.org/legal/epl-v10.html
Contributors: Red Hat - initial API and implementation
-->
<plugin>
<extension point="org.eclipse.ui.preferencePages">
<page category="org.eclipse.linuxtools.rpm.ui.editor.mainpage"
class="org.eclipse.linuxtools.internal.rpmstubby.preferences.StubbyPreferencePage"
id="org.eclipse.linuxtools.rpmstubby.preferences.stubbyPreferencePage"
name="%menu.label" />
</extension>
<extension point="org.eclipse.core.runtime.preferences">
<initializer
class="org.eclipse.linuxtools.internal.rpmstubby.preferences.PreferenceInitializer">
</initializer>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="RPMStubby Commands"
description="Commands for the RPM Stubby plugin"
id="rpmstubby.commands">
</category>
<command
categoryId="rpmstubby.commands"
id="rpmstubby.stubifyFeature"
description="%action.label"
name="%action.label">
</command>
<command
categoryId="rpmstubby.commands"
id="rpmstubby.stubifyPom"
description="%action.label"
name="%action.label">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.linuxtools.internal.rpmstubby.popup.actions.StubifyFeatureHandler"
commandId="rpmstubby.stubifyFeature">
</handler>
<handler
class="org.eclipse.linuxtools.internal.rpmstubby.popup.actions.StubifyPomHandler"
commandId="rpmstubby.stubifyPom">
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command
commandId="rpmstubby.stubifyFeature">
<visibleWhen>
<or>
<with variable="selection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.name"
value="feature.xml"/>
</adapt>
</iterate>
</with>
<with variable="selection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.projectNature"
value="org.eclipse.pde.FeatureNature"/>
</adapt>
</iterate>
</with>
</or>
</visibleWhen>
</command>
<command
commandId="rpmstubby.stubifyPom">
<visibleWhen>
<with variable="selection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IResource">
<test property="org.eclipse.core.resources.name"
value="pom.xml"/>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
</plugin>