Community
Participate
Working Groups
IManageContainer and the IFactory framework enable the creation of instances and their configuration/wiring on a core level. Currently we are missing a framework to contribute user interfaces for already contributed core factories.
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