com.sodius.mdw.platform.model.templates
Interface ModelTemplateSection


public interface ModelTemplateSection

A template section is used to dynamically populate a model created from the new model wizard.

Clients may implement this interface.

Since:
MDWorkbench 3.0.0
See Also:
extension-point: com.sodius.mdw.platform.model.modelTemplate

Method Summary
 org.eclipse.jface.wizard.IWizardPage createOptionsPage()
          Provides an optional additional wizard page, so that the user can provide specific options to this template.
 void execute(com.sodius.mdw.core.model.Model model)
          Executes the template on the specified model.
 

Method Detail

createOptionsPage

public org.eclipse.jface.wizard.IWizardPage createOptionsPage()
Provides an optional additional wizard page, so that the user can provide specific options to this template.

Returns:
an options page, null if no additional page is required.

execute

public void execute(com.sodius.mdw.core.model.Model model)
             throws org.eclipse.core.runtime.CoreException
Executes the template on the specified model. Implementation should add new model elements here.

Parameters:
model - the model this template must contribute
Throws:
org.eclipse.core.runtime.CoreException - if the template fails to populate the model for some reason.