mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 433014 - Autotools UI plugin is using deprecated extensions
Replace usage of popupMenus with command/handler/menu framework. Change-Id: I89b4bc611572fafbf63e27b68573f105da4d2698 Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com> Reviewed-on: https://git.eclipse.org/r/26134 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
This commit is contained in:
parent
80ea8de8d4
commit
fdfa6fe4b8
1 changed files with 111 additions and 423 deletions
|
@ -18,123 +18,6 @@
|
||||||
<selection class="org.eclipse.core.resources.IProject"/>
|
<selection class="org.eclipse.core.resources.IProject"/>
|
||||||
</wizard>
|
</wizard>
|
||||||
</extension>
|
</extension>
|
||||||
<!--
|
|
||||||
<extension
|
|
||||||
point="org.eclipse.ui.navigator.navigatorContent">
|
|
||||||
<commonWizard
|
|
||||||
associatedExtensionId="org.eclipse.cdt.ui.navigator.content"
|
|
||||||
menuGroupId="org.eclipse.cdt.ui.newProject"
|
|
||||||
type="new"
|
|
||||||
wizardId="org.eclipse.linuxtools.cdt.autotools.ui.wizards.conversionWizard">
|
|
||||||
<enablement>
|
|
||||||
<and>
|
|
||||||
<adapt type="org.eclipse.core.resources.IProject" />
|
|
||||||
<not>
|
|
||||||
<adapt type="org.eclipse.core.resources.IProject" >
|
|
||||||
<test
|
|
||||||
property="org.eclipse.core.resources.projectNature"
|
|
||||||
value="org.eclipse.cdt.autotools.core.autotoolsNatureV2"/>
|
|
||||||
</adapt>
|
|
||||||
</not>
|
|
||||||
</and>
|
|
||||||
</enablement>
|
|
||||||
</commonWizard>
|
|
||||||
</extension>
|
|
||||||
<extension
|
|
||||||
point="org.eclipse.ui.navigator.viewer">
|
|
||||||
<viewerContentBinding viewerId="org.eclipse.ui.navigator.ProjectExplorer">
|
|
||||||
<includes>
|
|
||||||
<contentExtension pattern="org.eclipse.linuxtools.cdt.autotools.ui.wizards.*"/>
|
|
||||||
</includes>
|
|
||||||
</viewerContentBinding>
|
|
||||||
</extension>
|
|
||||||
-->
|
|
||||||
<extension
|
|
||||||
point="org.eclipse.ui.menus">
|
|
||||||
<menuContribution
|
|
||||||
locationURI="popup:org.eclipse.ui.popup.any?before=additions">
|
|
||||||
<separator
|
|
||||||
name="autotoolsGroup"
|
|
||||||
visible="true">
|
|
||||||
</separator>
|
|
||||||
</menuContribution>
|
|
||||||
</extension>
|
|
||||||
<extension
|
|
||||||
id="org.eclipse.cdt.autotools.ui.popup1"
|
|
||||||
point="org.eclipse.ui.popupMenus">
|
|
||||||
<objectContribution
|
|
||||||
objectClass="org.eclipse.core.resources.IResource"
|
|
||||||
adaptable="true"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.popupMenu.NavigatorContribution">
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.InvokeLibtoolizeAction"
|
|
||||||
enablesFor="1"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.libtoolize1"
|
|
||||||
label="%InvokeLibtoolize.label"
|
|
||||||
menubarPath="org.eclipse.cdt.autotools.ui.invokeAutotools1/gm1">
|
|
||||||
</action>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.InvokeAutoheaderAction"
|
|
||||||
enablesFor="1"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.autoheader1"
|
|
||||||
label="%InvokeAutoheader.label"
|
|
||||||
menubarPath="org.eclipse.cdt.autotools.ui.invokeAutotools1/gm1">
|
|
||||||
</action>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.InvokeAutoreconfAction"
|
|
||||||
enablesFor="1"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.autoreconf1"
|
|
||||||
label="%InvokeAutoreconf.label"
|
|
||||||
menubarPath="org.eclipse.cdt.autotools.ui.invokeAutotools1/gm1">
|
|
||||||
</action>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.InvokeAutomakeAction"
|
|
||||||
enablesFor="1"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.automake1"
|
|
||||||
label="%InvokeAutomake.label"
|
|
||||||
menubarPath="org.eclipse.cdt.autotools.ui.invokeAutotools1/gm1">
|
|
||||||
</action>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.InvokeAutoconfAction"
|
|
||||||
enablesFor="1"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.autoconf1"
|
|
||||||
label="%InvokeAutoconf.label"
|
|
||||||
menubarPath="org.eclipse.cdt.autotools.ui.invokeAutotools1/gm1">
|
|
||||||
</action>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.InvokeAclocalAction"
|
|
||||||
enablesFor="1"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.aclocal1"
|
|
||||||
label="%InvokeAclocal.label"
|
|
||||||
menubarPath="org.eclipse.cdt.autotools.ui.invokeAutotools1/gm1">
|
|
||||||
</action>
|
|
||||||
<menu
|
|
||||||
id="org.eclipse.cdt.autotools.ui.invokeAutotools1"
|
|
||||||
label="%InvokeAutotools.label"
|
|
||||||
path="autotoolsGroup">
|
|
||||||
<groupMarker
|
|
||||||
name="gm1">
|
|
||||||
</groupMarker>
|
|
||||||
</menu>
|
|
||||||
<action
|
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.ReconfigureAction"
|
|
||||||
definitionId="org.eclipse.cdt.autotools.ui.command.reconfigure"
|
|
||||||
id="org.eclipse.cdt.autotools.ui.action.autoreconf1"
|
|
||||||
label="%Reconfigure.label"
|
|
||||||
menubarPath="autotoolsGroup">
|
|
||||||
</action>
|
|
||||||
<visibility>
|
|
||||||
<or>
|
|
||||||
<objectState
|
|
||||||
name="projectNature"
|
|
||||||
value="org.eclipse.cdt.autotools.core.autotoolsNatureV2"/>
|
|
||||||
<objectState
|
|
||||||
name="projectNature"
|
|
||||||
value="org.eclipse.linuxtools.cdt.autotools.core.autotoolsNatureV2"/>
|
|
||||||
</or>
|
|
||||||
</visibility>
|
|
||||||
</objectContribution>
|
|
||||||
</extension>
|
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.cdt.core.CBuildConsole">
|
point="org.eclipse.cdt.core.CBuildConsole">
|
||||||
<CBuildConsole
|
<CBuildConsole
|
||||||
|
@ -151,12 +34,12 @@
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="org.eclipse.core.contenttype.contentTypes">
|
<extension point="org.eclipse.core.contenttype.contentTypes">
|
||||||
<!-- declares a content type for automake files -->
|
<!-- declares a content type for automake files -->
|
||||||
<content-type id="org.eclipse.cdt.autotools.ui.automake" name="%Automake.name"
|
<content-type id="org.eclipse.cdt.autotools.ui.automake" name="%Automake.name"
|
||||||
base-type="org.eclipse.core.runtime.text"
|
base-type="org.eclipse.core.runtime.text"
|
||||||
priority="high"/>
|
priority="high"/>
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="org.eclipse.core.contenttype.contentTypes">
|
<extension point="org.eclipse.core.contenttype.contentTypes">
|
||||||
<file-association
|
<file-association
|
||||||
content-type="org.eclipse.cdt.autotools.ui.automake"
|
content-type="org.eclipse.cdt.autotools.ui.automake"
|
||||||
file-names="Makefile.am"
|
file-names="Makefile.am"
|
||||||
file-extensions="am"/>
|
file-extensions="am"/>
|
||||||
|
@ -293,8 +176,7 @@
|
||||||
<page
|
<page
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.properties.AutotoolsHeadPropertyPage"
|
class="org.eclipse.cdt.internal.autotools.ui.properties.AutotoolsHeadPropertyPage"
|
||||||
id="org.eclipse.cdt.autotools.ui.propertypage"
|
id="org.eclipse.cdt.autotools.ui.propertypage"
|
||||||
name="%PropertyAutotools.name"
|
name="%PropertyAutotools.name">
|
||||||
>
|
|
||||||
<filter
|
<filter
|
||||||
name="projectNature"
|
name="projectNature"
|
||||||
value="org.eclipse.cdt.autotools.core.autotoolsNatureV2">
|
value="org.eclipse.cdt.autotools.core.autotoolsNatureV2">
|
||||||
|
@ -303,13 +185,13 @@
|
||||||
<or>
|
<or>
|
||||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
||||||
<instanceof value="org.eclipse.core.resources.IFile"/>
|
<instanceof value="org.eclipse.core.resources.IFile"/>
|
||||||
</or>
|
</or>
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</page>
|
</page>
|
||||||
<page
|
<page
|
||||||
|
@ -325,13 +207,13 @@
|
||||||
<or>
|
<or>
|
||||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
<instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
|
||||||
<instanceof value="org.eclipse.core.resources.IFile"/>
|
<instanceof value="org.eclipse.core.resources.IFile"/>
|
||||||
</or>
|
</or>
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</page>
|
</page>
|
||||||
<page
|
<page
|
||||||
|
@ -347,7 +229,7 @@
|
||||||
<or>
|
<or>
|
||||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
</or>
|
</or>
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</page>
|
</page>
|
||||||
<page
|
<page
|
||||||
|
@ -363,7 +245,7 @@
|
||||||
<or>
|
<or>
|
||||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
|
@ -385,7 +267,7 @@
|
||||||
<or>
|
<or>
|
||||||
<instanceof value="org.eclipse.core.resources.IProject"/>
|
<instanceof value="org.eclipse.core.resources.IProject"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICProject"/>
|
||||||
|
|
||||||
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
<instanceof value="org.eclipse.core.resources.IFolder"/>
|
||||||
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
<instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
|
||||||
|
|
||||||
|
@ -411,116 +293,80 @@
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</page>
|
</page>
|
||||||
</extension>
|
</extension>
|
||||||
<!-- <extension
|
|
||||||
point="org.eclipse.ui.menus">
|
|
||||||
<menuContribution
|
|
||||||
locationURI="menu:project?after=additions">
|
|
||||||
<menu
|
|
||||||
id="invokeAutotools"
|
|
||||||
label="%InvokeAutotools.label"
|
|
||||||
mnemonic="%InvokeAutotools.mnemonic">
|
|
||||||
<visibleWhen
|
|
||||||
checkEnabled="false">
|
|
||||||
<and>
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
<test
|
|
||||||
property="org.eclipse.core.resources.projectNature"
|
|
||||||
value="org.eclipse.linuxtools.cdt.autotools.core.autotoolsNatureV2">
|
|
||||||
</test>
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</and>
|
|
||||||
</visibleWhen>
|
|
||||||
</menu>
|
|
||||||
</menuContribution>
|
|
||||||
</extension>
|
|
||||||
<extension
|
<extension
|
||||||
point="org.eclipse.ui.menus">
|
point="org.eclipse.ui.menus">
|
||||||
<menuContribution
|
<menuContribution
|
||||||
locationURI="menu:project?after=additions">
|
locationURI="popup:org.eclipse.ui.popup.any?before=additions">
|
||||||
|
<separator
|
||||||
|
name="autotoolsGroup"
|
||||||
|
visible="true">
|
||||||
|
</separator>
|
||||||
|
</menuContribution>
|
||||||
|
<menuContribution
|
||||||
|
locationURI="popup:org.eclipse.ui.popup.any?after=autotoolsGroup">
|
||||||
<command
|
<command
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.reconfigure"
|
commandId="org.eclipse.cdt.autotools.ui.command.reconfigure"
|
||||||
id="reconfigure"
|
id="autotools"
|
||||||
label="%Reconfigure.label"
|
label="%Reconfigure.label"
|
||||||
mnemonic="%Reconfigure.mnemonic"
|
mnemonic="%Reconfigure.mnemonic"
|
||||||
style="push">
|
style="push">
|
||||||
<visibleWhen
|
<visibleWhen checkEnabled="true"/>
|
||||||
checkEnabled="false">
|
|
||||||
<and>
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
<test
|
|
||||||
property="org.eclipse.core.resources.projectNature"
|
|
||||||
value="org.eclipse.linuxtools.cdt.autotools.core.autotoolsNatureV2">
|
|
||||||
</test>
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</and>
|
|
||||||
</visibleWhen>
|
|
||||||
</command>
|
|
||||||
</menuContribution>
|
|
||||||
</extension>
|
|
||||||
<extension
|
|
||||||
point="org.eclipse.ui.menus">
|
|
||||||
<menuContribution
|
|
||||||
locationURI="menu:invokeAutotools">
|
|
||||||
<command
|
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.autoconf"
|
|
||||||
id="autoconf"
|
|
||||||
label="%InvokeAutoconf.label"
|
|
||||||
mnemonic="%InvokeAutoconf.mnemonic"
|
|
||||||
style="push">
|
|
||||||
</command>
|
|
||||||
<command
|
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.autoheader"
|
|
||||||
id="autoheader"
|
|
||||||
label="%InvokeAutoheader.label"
|
|
||||||
mnemonic="%InvokeAutoheader.mnemonic"
|
|
||||||
style="push">
|
|
||||||
</command>
|
|
||||||
<command
|
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.automake"
|
|
||||||
id="automake"
|
|
||||||
label="%InvokeAutomake.label"
|
|
||||||
mnemonic="%InvokeAutomake.mnemonic"
|
|
||||||
style="push">
|
|
||||||
</command>
|
|
||||||
<command
|
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.autoreconf"
|
|
||||||
id="autoreconf"
|
|
||||||
label="%InvokeAutoreconf.label"
|
|
||||||
mnemonic="%InvokeAutoreconf.mnemonic"
|
|
||||||
style="push">
|
|
||||||
</command>
|
|
||||||
<command
|
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.aclocal"
|
|
||||||
id="aclocal"
|
|
||||||
label="%InvokeAclocal.label"
|
|
||||||
mnemonic="%InvokeAclocal.mnemonic"
|
|
||||||
style="push">
|
|
||||||
</command>
|
|
||||||
<command
|
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.libtoolize"
|
|
||||||
id="libtoolize"
|
|
||||||
label="%InvokeLibtoolize.label"
|
|
||||||
mnemonic="%InvokeLibtoolize.mnemonic"
|
|
||||||
style="push">
|
|
||||||
</command>
|
</command>
|
||||||
|
<menu
|
||||||
|
id="autotools"
|
||||||
|
label="%InvokeAutotools.label"
|
||||||
|
mnemonic="%InvokeAutotools.mnemonic">
|
||||||
|
<command
|
||||||
|
commandId="org.eclipse.cdt.autotools.ui.command.autoconf"
|
||||||
|
id="autoconf"
|
||||||
|
label="%InvokeAutoconf.label"
|
||||||
|
mnemonic="%InvokeAutoconf.mnemonic"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="true"/>
|
||||||
|
</command>
|
||||||
|
<command
|
||||||
|
commandId="org.eclipse.cdt.autotools.ui.command.autoheader"
|
||||||
|
id="autoheader"
|
||||||
|
label="%InvokeAutoheader.label"
|
||||||
|
mnemonic="%InvokeAutoheader.mnemonic"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="true"/>
|
||||||
|
</command>
|
||||||
|
<command
|
||||||
|
commandId="org.eclipse.cdt.autotools.ui.command.automake"
|
||||||
|
id="automake"
|
||||||
|
label="%InvokeAutomake.label"
|
||||||
|
mnemonic="%InvokeAutomake.mnemonic"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="true"/>
|
||||||
|
</command>
|
||||||
|
<command
|
||||||
|
commandId="org.eclipse.cdt.autotools.ui.command.autoreconf"
|
||||||
|
id="autoreconf"
|
||||||
|
label="%InvokeAutoreconf.label"
|
||||||
|
mnemonic="%InvokeAutoreconf.mnemonic"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="true"/>
|
||||||
|
</command>
|
||||||
|
<command
|
||||||
|
commandId="org.eclipse.cdt.autotools.ui.command.aclocal"
|
||||||
|
id="aclocal"
|
||||||
|
label="%InvokeAclocal.label"
|
||||||
|
mnemonic="%InvokeAclocal.mnemonic"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="true"/>
|
||||||
|
</command>
|
||||||
|
<command
|
||||||
|
commandId="org.eclipse.cdt.autotools.ui.command.libtoolize"
|
||||||
|
id="libtoolize"
|
||||||
|
label="%InvokeLibtoolize.label"
|
||||||
|
mnemonic="%InvokeLibtoolize.mnemonic"
|
||||||
|
style="push">
|
||||||
|
<visibleWhen checkEnabled="true"/>
|
||||||
|
</command>
|
||||||
|
</menu>
|
||||||
</menuContribution>
|
</menuContribution>
|
||||||
</extension> -->
|
</extension>
|
||||||
<extension
|
<extension
|
||||||
id="org.eclipse.cdt.autotools.ui.commands"
|
id="org.eclipse.cdt.autotools.ui.commands"
|
||||||
name="Autoconf"
|
name="Autoconf"
|
||||||
|
@ -577,237 +423,50 @@
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.AutoconfHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.AutoconfHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.autoconf">
|
commandId="org.eclipse.cdt.autotools.ui.command.autoconf">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.AutoheaderHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.AutoheaderHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.autoheader">
|
commandId="org.eclipse.cdt.autotools.ui.command.autoheader">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.AutomakeHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.AutomakeHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.automake">
|
commandId="org.eclipse.cdt.autotools.ui.command.automake">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.AutoreconfHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.AutoreconfHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.autoreconf">
|
commandId="org.eclipse.cdt.autotools.ui.command.autoreconf">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.AclocalHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.AclocalHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.aclocal">
|
commandId="org.eclipse.cdt.autotools.ui.command.aclocal">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.LibtoolizeHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.LibtoolizeHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.libtoolize">
|
commandId="org.eclipse.cdt.autotools.ui.command.libtoolize">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
<handler
|
<handler
|
||||||
class="org.eclipse.cdt.internal.autotools.ui.actions.ReconfigureHandler"
|
class="org.eclipse.cdt.internal.autotools.ui.actions.ReconfigureHandler"
|
||||||
commandId="org.eclipse.cdt.autotools.ui.command.reconfigure">
|
commandId="org.eclipse.cdt.autotools.ui.command.reconfigure">
|
||||||
<activeWhen>
|
|
||||||
<with
|
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</activeWhen>
|
|
||||||
<enabledWhen>
|
<enabledWhen>
|
||||||
<with
|
<reference definitionId="org.eclipse.cdt.autotools.ui.handlerEnablement"/>
|
||||||
variable="selection">
|
|
||||||
<count
|
|
||||||
value="1">
|
|
||||||
</count>
|
|
||||||
<iterate
|
|
||||||
ifEmpty="false"
|
|
||||||
operator="and">
|
|
||||||
<adapt
|
|
||||||
type="org.eclipse.core.resources.IResource">
|
|
||||||
</adapt>
|
|
||||||
</iterate>
|
|
||||||
</with>
|
|
||||||
</enabledWhen>
|
</enabledWhen>
|
||||||
</handler>
|
</handler>
|
||||||
</extension>
|
</extension>
|
||||||
|
@ -843,4 +502,33 @@
|
||||||
name="%Autotools.wizard.name">
|
name="%Autotools.wizard.name">
|
||||||
</wizard>
|
</wizard>
|
||||||
</extension>
|
</extension>
|
||||||
|
<extension
|
||||||
|
point="org.eclipse.core.expressions.definitions">
|
||||||
|
<definition
|
||||||
|
id="org.eclipse.cdt.autotools.ui.handlerEnablement">
|
||||||
|
<with
|
||||||
|
variable="selection">
|
||||||
|
<count
|
||||||
|
value="1">
|
||||||
|
</count>
|
||||||
|
<iterate
|
||||||
|
ifEmpty="false"
|
||||||
|
operator="and">
|
||||||
|
<adapt
|
||||||
|
type="org.eclipse.core.resources.IResource">
|
||||||
|
<or>
|
||||||
|
<test
|
||||||
|
property="org.eclipse.core.resources.projectNature"
|
||||||
|
value="org.eclipse.cdt.autotools.core.autotoolsNatureV2">
|
||||||
|
</test>
|
||||||
|
<test
|
||||||
|
property="org.eclipse.core.resources.projectNature"
|
||||||
|
value="org.eclipse.linuxtools.cdt.autotools.core.autotoolsNatureV2">
|
||||||
|
</test>
|
||||||
|
</or>
|
||||||
|
</adapt>
|
||||||
|
</iterate>
|
||||||
|
</with>
|
||||||
|
</definition>
|
||||||
|
</extension>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
Loading…
Add table
Reference in a new issue