Commit 1fa88b01 authored by Greg Watson's avatar Greg Watson
Browse files

Demonstrate using extensions to build Developer menu

parent 04501811
...@@ -99,4 +99,21 @@ ...@@ -99,4 +99,21 @@
</property> </property>
</product> </product>
</extension> </extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="menu:help?after=additions">
<command
commandId="org.eclipse.equinox.p2.ui.discovery.commands.ShowRepositoryCatalog"
label="Install EASE Components"
style="push"
tooltip="Install EASE Additional Components">
<parameter
name="org.eclipse.equinox.p2.ui.discovery.commands.RepositoryParameter"
value="http://download.eclipse.org/ease/update/release">
</parameter>
</command>
</menuContribution>
</extension>
</plugin> </plugin>
...@@ -34,4 +34,5 @@ Require-Bundle: org.eclipse.cdt;bundle-version="8.7.0", ...@@ -34,4 +34,5 @@ Require-Bundle: org.eclipse.cdt;bundle-version="8.7.0",
org.eclipse.core.runtime;bundle-version="3.11.0", org.eclipse.core.runtime;bundle-version="3.11.0",
org.eclipse.core.resources;bundle-version="3.10.0", org.eclipse.core.resources;bundle-version="3.10.0",
org.eclipse.egit;bundle-version="4.0.0", org.eclipse.egit;bundle-version="4.0.0",
org.eclipse.ice.developer org.eclipse.ice.developer,
org.eclipse.ui
...@@ -2,23 +2,64 @@ ...@@ -2,23 +2,64 @@
<?eclipse version="3.4"?> <?eclipse version="3.4"?>
<plugin> <plugin>
<extension <extension
id="org.eclipse.ice.developer.moose" point="org.eclipse.ui.menus">
name="MOOSE Developer Tooling" <menuContribution
point="org.eclipse.ice.developer.code"> allPopups="false"
<code locationURI="menu:org.eclipse.ice.developer.menu.framework">
branch="devel" <menu
codeCategory="Framework" label="MOOSE">
codeName="MOOSE" <command
repoURL="https://github.com/idaholab/moose"> commandId="org.eclipse.ice.developer.moose.forkStork"
<command label="Fork the Stork"
commandName="Fork the Stork" style="push">
implementation="org.eclipse.ice.developer.moose.actions.StorkForkHandler"> </command>
</command> <command
<command commandId="org.eclipse.ice.developer.moose.clone"
commandName="Clone MOOSE" label="Clone"
implementation="org.eclipse.ice.developer.moose.actions.MooseCloneHandler"> style="push">
</command> <parameter
</code> name="repoURLID"
value="https://github.com/idaholab/moose">
</parameter>
<parameter
name="branchID"
value="devel">
</parameter>
</command>
</menu>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="org.eclipse.ice.developer.moose.forkStork"
name="Fork the Stork">
</command>
<command
id="org.eclipse.ice.developer.moose.clone"
name="Clone">
<commandParameter
id="repoURLID"
name="repoURL"
optional="true">
</commandParameter>
<commandParameter
id="branchID"
name="branch"
optional="true">
</commandParameter>
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.ice.developer.moose.actions.StorkForkHandler"
commandId="org.eclipse.ice.developer.moose.forkStork">
</handler>
<handler
class="org.eclipse.ice.developer.moose.actions.MooseCloneHandler"
commandId="org.eclipse.ice.developer.moose.clone">
</handler>
</extension> </extension>
</plugin> </plugin>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<extension-point id="org.eclipse.ice.developer.code" name="Scientific Code" schema="schema/iceDevCode.exsd"/> <extension-point id="org.eclipse.ice.developer.code" name="Scientific Code" schema="schema/iceDevCode.exsd"/>
<extension <!--extension
id="org.eclipse.ice.developer.menu" id="org.eclipse.ice.developer.menu"
name="Developer" name="Developer"
point="org.eclipse.ui.menus"> point="org.eclipse.ui.menus">
...@@ -13,67 +13,183 @@ ...@@ -13,67 +13,183 @@
class="org.eclipse.ice.developer.menu.ICEExtensionContributionFactory" class="org.eclipse.ice.developer.menu.ICEExtensionContributionFactory"
locationURI="menu:org.eclipse.ui.main.menu"> locationURI="menu:org.eclipse.ui.main.menu">
</menuContribution> </menuContribution>
</extension> </extension-->
<extension <extension
id="org.eclipse.ice.developer.icedev" point="org.eclipse.ui.menus">
name="ICE Developer Tooling" <menuContribution
point="org.eclipse.ice.developer.code"> allPopups="false"
<code locationURI="menu:org.eclipse.ui.main.menu?after=project">
branch="next" <menu
codeCategory="Framework" id="org.eclipse.ice.developer.menu"
codeName="ICE" label="Developer">
repoURL="https://github.com/eclipse/ice"> <menu
<command id="org.eclipse.ice.developer.menu.ice"
commandName="Clone" label="ICE">
implementation="org.eclipse.ice.developer.actions.FixMavenLifecycleCloneHandler"> <command
</command> commandId="org.eclipse.ice.developer.command.cloneAndFix"
<command label="Clone"
commandName="Build" style="push">
implementation="org.eclipse.ice.developer.actions.BuildICEHandler"> <parameter
</command> name="repoURLID"
<command value="https://github.com/eclipse/ice">
commandName="Launch New Instance" </parameter>
implementation="org.eclipse.ice.developer.actions.LaunchNewICEHandler"> <parameter
</command> name="branchID"
<command value="next">
commandName="Import Local Repository" </parameter>
implementation="org.eclipse.ice.developer.actions.ImportLocalICEHandler"> </command>
</command> <command
</code> commandId="org.eclipse.ice.developer.command.build"
label="Build"
style="push">
</command>
<command
commandId="org.eclipse.ice.developer.command.launch"
label="Launch New Instance"
style="push">
</command>
<command
commandId="org.eclipse.ice.developer.command.importLocalRepo"
label="Import Local Repository"
style="push">
</command>
<menu
id="org.eclipse.ice.developer.menu.ice.tests"
label="ICE Tests">
<command
commandId="org.eclipse.ice.developer.command.clone"
label="Clone ICETests to user.home"
style="push">
<parameter
name="repoURLID"
value="https://github.com/jayjaybillings/ICETests">
</parameter>
<parameter
name="branchID"
value="master">
</parameter>
<parameter
name="cloneDirectoryID"
value="@user.home">
</parameter>
</command>
</menu>
</menu>
<menu
id="org.eclipse.ice.developer.menu.framework"
label="Framework">
<menu
id="org.eclipse.ice.developer.menu.framework.eavp"
label="EAVP">
<command
commandId="org.eclipse.ice.developer.command.cloneAndFix"
label="Clone"
style="push">
<parameter
name="repoURLID"
value="https://github.com/eclipse/eavp">
</parameter>
<parameter
name="branchID"
value="next">
</parameter>
</command>
</menu>
</menu>
<menu
id="org.eclipse.ice.developer.menu.nuclear"
label="Nuclear">
</menu>
<menu
id="org.eclipse.ice.developer.menu.molecularDynamics"
label="Molecular Dynamics">
</menu>
<menu
id="org.eclipse.ice.developer.menu.physics"
label="Physics">
</menu>
<menu
id="org.eclipse.ice.developer.menu.densityFunctionalTheory"
label="Density Functional Theory">
</menu>
</menu>
</menuContribution>
</extension> </extension>
<extension <extension
id="org.eclipse.ice.developer.icetests" point="org.eclipse.ui.commands">
name="ICE Tests" <command
point="org.eclipse.ice.developer.code"> id="org.eclipse.ice.developer.command.clone"
<code name="Clone">
branch="master" <commandParameter
codeCategory="ICE" id="repoURLID"
codeName="ICE Tests" name="repoURL"
repoURL="https://github.com/jayjaybillings/ICETests"> optional="true">
<command </commandParameter>
commandName="Clone ICETests to user.home" <commandParameter
implementation="org.eclipse.ice.developer.actions.GitCloneHandler"> id="branchID"
<parameter name="branch"
name="cloneDirectory" optional="true">
value="@user.home"> </commandParameter>
</parameter> <commandParameter
</command> id="cloneDirectoryID"
</code> name="cloneDirectory"
optional="true">
</commandParameter>
</command>
<command
id="org.eclipse.ice.developer.command.cloneAndFix"
name="CloneAndFix">
<commandParameter
id="repoURLID"
name="repoURL"
optional="true">
</commandParameter>
<commandParameter
id="branchID"
name="branch"
optional="true">
</commandParameter>
<commandParameter
id="cloneDirectoryID"
name="cloneDirectory"
optional="true">
</commandParameter>
</command>
<command
id="org.eclipse.ice.developer.command.build"
name="Build">
</command>
<command
id="org.eclipse.ice.developer.command.launch"
name="Launch">
</command>
<command
id="org.eclipse.ice.developer.command.importLocalRepo"
name="Import Local">
</command>
</extension> </extension>
<extension <extension
id="org.eclipse.eavp.developer" point="org.eclipse.ui.handlers">
name="EAVP Developer Tooling" <handler
point="org.eclipse.ice.developer.code"> class="org.eclipse.ice.developer.actions.GitCloneHandler"
<code commandId="org.eclipse.ice.developer.command.clone">
branch="next" </handler>
codeCategory="Framework" <handler
codeName="EAVP" class="org.eclipse.ice.developer.actions.BuildICEHandler"
repoURL="https://github.com/eclipse/eavp"> commandId="org.eclipse.ice.developer.command.build">
<command </handler>
commandName="Clone EAVP" <handler
implementation="org.eclipse.ice.developer.actions.FixMavenLifecycleCloneHandler"> class="org.eclipse.ice.developer.actions.LaunchNewICEHandler"
</command> commandId="org.eclipse.ice.developer.command.launch">
</code> </handler>
<handler
class="org.eclipse.ice.developer.actions.ImportLocalICEHandler"
commandId="org.eclipse.ice.developer.command.importLocalRepo">
</handler>
<handler
class="org.eclipse.ice.developer.actions.FixMavenLifecycleCloneHandler"
commandId="org.eclipse.ice.developer.command.cloneAndFix">
</handler>
</extension> </extension>
</plugin> </plugin>
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