| Summary: | [UI] Provide pluggable UI wizard framework for container element creation | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> |
| Component: | cdo.net4j.ui | Assignee: | Eike Stepper <stepper> |
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> |
| Severity: | enhancement | ||
| Priority: | P3 | Keywords: | noteworthy |
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Power to the People | ||
|
Description
Eike Stepper
The user must implement an IElementWizard that is responsible for adding special controls to an SWT Composite. These controls must be able to provide all the information that a conrete IFactory implementation needs as its description parameter.
public interface IElementWizard
{
public String getResultDescription();
public void create(Composite parent, String factoryType, String defaultDescription);
}
A factory for this wizard must be contributed to the IManagedContainer. This factory should be a subclass of ElementWizardFactory:
public abstract class ElementWizardFactory extends Factory
{
public static final String PRODUCT_GROUP = "org.eclipse.net4j.util.ui.elementWizards"; //$NON-NLS-1$
public ElementWizardFactory(String elementProductGroup, String elementFactoryType)
{
super(PRODUCT_GROUP, elementProductGroup + ":" + elementFactoryType);
}
public abstract IElementWizard create(String description) throws ProductCreationException;
}
Committed to HEAD Available in R20110608-1407 |