use of com.centurylink.mdw.plugin.project.extensions.ExtensionModulesTable in project mdw-designer by CenturyLinkCloud.
the class ExtensionModulesWizardPage method drawWidgets.
/**
* draw the widgets using a grid layout
*
* @param parent
* - the parent composite
*/
public void drawWidgets(Composite parent) {
// create the composite to hold the widgets
Composite composite = new Composite(parent, SWT.NULL);
// create the layout for this wizard page
GridLayout gl = new GridLayout();
int ncol = 4;
gl.numColumns = ncol;
composite.setLayout(gl);
extensionsTable = new ExtensionModulesTable(getProject());
extensionsTable.create();
extensionsTable.getTableEditor().render(composite, false);
extensionsTable.setSelectedModules(new ArrayList<ExtensionModule>());
extensionsTable.getTableEditor().addValueChangeListener(new ValueChangeListener() {
public void propertyValueChanged(Object newValue) {
getProject().setExtensionModules(extensionsTable.getSelectedModules());
}
});
setControl(composite);
}
use of com.centurylink.mdw.plugin.project.extensions.ExtensionModulesTable in project mdw-designer by CenturyLinkCloud.
the class ExtensionModulesPropertyPage method createContents.
@Override
protected Control createContents(Composite parent) {
noDefaultAndApplyButton();
initializeWorkflowProject();
Composite composite = createComposite(parent);
extensionsTable = new ExtensionModulesTable(getProject());
extensionsTable.create();
extensionsTable.getTableEditor().render(composite, false);
existingModules = getProject().getExtensionModules();
List<ExtensionModule> selectedModules = new ArrayList<>();
selectedModules.addAll(existingModules);
extensionsTable.setSelectedModules(selectedModules);
return composite;
}
Aggregations