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"
repoURL="https://github.com/idaholab/moose">
<command <command
commandName="Fork the Stork" commandId="org.eclipse.ice.developer.moose.forkStork"
implementation="org.eclipse.ice.developer.moose.actions.StorkForkHandler"> label="Fork the Stork"
style="push">
</command> </command>
<command <command
commandName="Clone MOOSE" commandId="org.eclipse.ice.developer.moose.clone"
implementation="org.eclipse.ice.developer.moose.actions.MooseCloneHandler"> label="Clone"
style="push">
<parameter
name="repoURLID"
value="https://github.com/idaholab/moose">
</parameter>
<parameter
name="branchID"
value="devel">
</parameter>
</command> </command>
</code> </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
id="org.eclipse.ice.developer.menu.ice"
label="ICE">
<command <command
commandName="Clone" commandId="org.eclipse.ice.developer.command.cloneAndFix"
implementation="org.eclipse.ice.developer.actions.FixMavenLifecycleCloneHandler"> label="Clone"
style="push">
<parameter
name="repoURLID"
value="https://github.com/eclipse/ice">
</parameter>
<parameter
name="branchID"
value="next">
</parameter>
</command> </command>
<command <command
commandName="Build" commandId="org.eclipse.ice.developer.command.build"
implementation="org.eclipse.ice.developer.actions.BuildICEHandler"> label="Build"
style="push">
</command> </command>
<command <command
commandName="Launch New Instance" commandId="org.eclipse.ice.developer.command.launch"
implementation="org.eclipse.ice.developer.actions.LaunchNewICEHandler"> label="Launch New Instance"
style="push">
</command> </command>
<command <command
commandName="Import Local Repository" commandId="org.eclipse.ice.developer.command.importLocalRepo"
implementation="org.eclipse.ice.developer.actions.ImportLocalICEHandler"> label="Import Local Repository"
style="push">
</command> </command>
</code> <menu
</extension> id="org.eclipse.ice.developer.menu.ice.tests"
<extension label="ICE Tests">
id="org.eclipse.ice.developer.icetests"
name="ICE Tests"
point="org.eclipse.ice.developer.code">
<code
branch="master"
codeCategory="ICE"
codeName="ICE Tests"
repoURL="https://github.com/jayjaybillings/ICETests">
<command <command
commandName="Clone ICETests to user.home" commandId="org.eclipse.ice.developer.command.clone"
implementation="org.eclipse.ice.developer.actions.GitCloneHandler"> label="Clone ICETests to user.home"
style="push">
<parameter <parameter
name="cloneDirectory" name="repoURLID"
value="https://github.com/jayjaybillings/ICETests">
</parameter>
<parameter
name="branchID"
value="master">
</parameter>
<parameter
name="cloneDirectoryID"
value="@user.home"> value="@user.home">
</parameter> </parameter>
</command> </command>
</code> </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.eavp.developer" point="org.eclipse.ui.commands">
name="EAVP Developer Tooling" <command
point="org.eclipse.ice.developer.code"> id="org.eclipse.ice.developer.command.clone"
<code name="Clone">
branch="next" <commandParameter
codeCategory="Framework" id="repoURLID"
codeName="EAVP" name="repoURL"
repoURL="https://github.com/eclipse/eavp"> optional="true">
</commandParameter>
<commandParameter
id="branchID"
name="branch"
optional="true">
</commandParameter>
<commandParameter
id="cloneDirectoryID"
name="cloneDirectory"
optional="true">
</commandParameter>
</command>
<command <command
commandName="Clone EAVP" id="org.eclipse.ice.developer.command.cloneAndFix"
implementation="org.eclipse.ice.developer.actions.FixMavenLifecycleCloneHandler"> 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>
</code> <command
id="org.eclipse.ice.developer.command.importLocalRepo"
name="Import Local">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.ice.developer.actions.GitCloneHandler"
commandId="org.eclipse.ice.developer.command.clone">
</handler>
<handler
class="org.eclipse.ice.developer.actions.BuildICEHandler"
commandId="org.eclipse.ice.developer.command.build">
</handler>
<handler
class="org.eclipse.ice.developer.actions.LaunchNewICEHandler"
commandId="org.eclipse.ice.developer.command.launch">
</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