<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
     <extension
           point="org.eclipse.ui.startup">
        <startup
              class="org.springsource.ide.eclipse.commons.frameworks.ui.internal.legacyconversion.LegacySTSChecker">
        </startup>
     </extension>
     <extension
           point="org.eclipse.ui.popupMenus">
	      <!-- Deal with legacy projects -->
	      <objectContribution
	            objectClass="org.eclipse.core.resources.IProject"
	            adaptable="true"
	            id="iprojectcontributions">
	      <visibility>
	         	<or>
		         	<objectState name="nature" value="com.springsource.sts.grails.core.nature"/>
				    </or>
	       </visibility>
	       <action
	               label="Migrate legacy STS projects..."
	               class="org.springsource.ide.eclipse.commons.frameworks.ui.internal.legacyconversion.ConvertLegacyProjectAction"
	               menubarPath="org.eclipse.ui.projectConfigure/additions"
	               id="convertLegacy">
	         </action>
	      </objectContribution>
     </extension>
</plugin>

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
     <extension
           point="org.eclipse.ui.startup">
        <startup
              class="org.springsource.ide.eclipse.commons.frameworks.ui.internal.legacyconversion.LegacySTSChecker">
        </startup>
     </extension>
     <extension
           point="org.eclipse.ui.popupMenus">
	      <!-- Deal with legacy projects -->
	      <objectContribution
	            objectClass="org.eclipse.core.resources.IProject"
	            adaptable="true"
	            id="iprojectcontributions">
	      <visibility>
	         	<or>
		         	<objectState name="nature" value="com.springsource.sts.grails.core.nature"/>
		         	<objectState name="nature" value="com.springsource.sts.gradle.core.nature"/>
				 </or>
	       </visibility>
	       <action
	               label="Migrate legacy STS projects..."
	               class="org.springsource.ide.eclipse.commons.frameworks.ui.internal.legacyconversion.ConvertLegacyProjectAction"
	               menubarPath="org.eclipse.ui.projectConfigure/additions"
	               id="convertLegacy">
	         </action>
	      </objectContribution>
     </extension>
</plugin>

Allow gradle legacy nature to enable the 'migrate legacy STs project's menu
Allow gradle legacy nature to enable the 'migrate legacy STs project's menu