Group modelConfigurationGroup = new Group(composite, SWT.NONE);
modelConfigurationGroup.setLayout(new GridLayout(2, false));
modelConfigurationGroup.setText("Options");
modelConfigurationGroup.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
ProjectFrameworkAdapter projectFrameworkAdapter = (ProjectFrameworkAdapter) getProject().getAdapter(ProjectFrameworkAdapter.class);
Label adaptorLabel = new Label(modelConfigurationGroup, SWT.NONE);
adaptorLabel.setText("Adaptor:");
_adaptorCombo = new Combo(modelConfigurationGroup, SWT.READ_ONLY);
_adaptorCombo.add("None");
int selectedIndex = 0;
int index = 0;
for (String pluginName : projectFrameworkAdapter.getAdaptorFrameworks().keySet()) {
_adaptorCombo.add(pluginName);
if ("JDBC".equals(pluginName)) {
selectedIndex = index;
}
index ++;
}
_adaptorCombo.select(selectedIndex + 1);
Label pluginLabel = new Label(modelConfigurationGroup, SWT.NONE);
pluginLabel.setText("PlugIn:");
_pluginCombo = new Combo(modelConfigurationGroup, SWT.READ_ONLY);
_pluginCombo.add("None");
for (String pluginName : projectFrameworkAdapter.getPluginFrameworks().keySet()) {
_pluginCombo.add(pluginName);
}
_pluginCombo.select(0);
_createEOGeneratorFileButton = new Button(modelConfigurationGroup, SWT.CHECK);