Before you can complete the steps in this example,
you must have a plug-in project that includes the
com.businessobjects.crystalreports.designer.sdk
library and extends the
newWizards extension
point.
This example shows how to connect
a
newWizards extension
point to a class that implements a custom report wizard.
In the
Project
Explorer, expand
META-INF.
Right-click
MANIFEST.MF, and point to
Open With > Plug-in Manifest
Editor.
The Plug-in
Manifest Editor displays the plug-in project settings.
Click the
Extensions
tab.
Expand
org.eclipse.ui.newWizards, and select
the wizard element.
For example, select
My Custom Report
(wizard).
The
Extension Element
Details area appears.
Click
class.
The
"New Java
Class" wizard appears.
Note: If this class has already been created,
it will be displayed instead of the wizard.
Type the location of the source
folder in the
Source
folder box.
For example, type
MyProject/src.
Type the package name in the
Package
box.
For example, type
myproject.
Type the name of the implementing
class in the
Name box.
For example, type
MyReportWizard.
Type
com.businessobjects.crystalreports.designer.sdk.wizard.ReportWizard
in the
Superclass
box.
In the
Interfaces
list, double-click
org.eclipse.ui.INewWizard, and
click
Remove.
Select
Constructors from
superclass.
Clear the
Inherited abstract
methods check box.
The wizard connects the
newWizards extension
point to the class that implements a report page.
Note: The class may have compilation errors until
you implement it.