Bug 324523 - [UI] Provide pluggable UI wizard framework for container element creation
Summary: [UI] Provide pluggable UI wizard framework for container element creation
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.net4j.ui (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: Power to the People
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2010-09-04 15:14 EDT by Eike Stepper CLA
Modified: 2011-06-23 03:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2010-09-04 15:14:58 EDT
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.
Comment 1 Eike Stepper CLA 2010-09-04 15:19:37 EDT
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;
}
Comment 2 Eike Stepper CLA 2010-09-04 15:20:00 EDT
Committed to HEAD
Comment 3 Eike Stepper CLA 2011-06-23 03:37:28 EDT
Available in R20110608-1407