Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Also note that we provide a template, this can be used in the wizard to show the default facets, in our case we wanted only that the java facet be there.

Before diving into the Java code for these classes there are two more extension point that we want to add first:

Code Block
xml
xml

<extension point="org.eclipse.ui.newWizards">
		<category name="%jbi.category"
			id="org.eclipse.jst.jbi.ui">
		</category>
		<wizard name="%jbi.component.project.name" icon="/icons/jbi-component.gif"
			category="org.eclipse.jst.jbi.ui"
			class="org.eclipse.jst.jbi.ui.project.facet.JbiProjectWizard"
			project="true"
			finalPerspective="org.eclipse.jdt.internal.ui.JavaHierarchyPerspectiveFactory"
			id="org.eclipse.jst.jbi.ui.project.facet.JbiProjectWizard">
			<description>%jbi.component.project.description</description>
		</wizard>
	</extension>

	<extension point="org.eclipse.wst.common.project.facet.ui.wizard">
		<wizard-pages facet="jst.jbi.component" version="1.0">
			<install>
				<page
					class="org.eclipse.jst.jbi.ui.project.facet.JbiFacetInstallPage" />
			</install>
		</wizard-pages>
	</extension>

These are used to first define our new JBI project wizard and then to define the install page for our JBI facet, since we are leveraging the WST/JST we will be able to re-use much of their infrastructure to get us a little closer.