public static Map<String, Object> getCompileCodeLevels() {
CodeLevel[] ret = new CodeLevel[2];
ret[0] = CodeLevel.ONE_FIVE;
ret[1] = CodeLevel.ONE_SIX;
BindingEditor editor = new BindingEditor(new BindingSpec[] {
new BindingSpec.BindingSpecBuilder().setLabel("Output type")
.setName(InputKeys.jarType.toString()).setTooltip(
"Thin jar").setValue(
new String[] { JarType.Thin.toString(),
JarType.Fat.toString() })
.createBindingSpec(),
new BindingSpec.BindingSpecBuilder().setLabel("Source level")
.setName(InputKeys.sourceLevel.toString()).setTooltip(
"Source code level").setValue(
new String[] { CodeLevel.ONE_FIVE.toString(),
CodeLevel.ONE_SIX.toString() })
.createBindingSpec(),
new BindingSpec.BindingSpecBuilder().setLabel("Target level")
.setName(InputKeys.targetLevel.toString()).setTooltip(
"Target code level").setValue(
new String[] { CodeLevel.ONE_FIVE.toString(),
CodeLevel.ONE_SIX.toString() })
.createBindingSpec() });
SwtDialog.newDialog(editor, "", 600, 400);
return editor.getEditedValues();
// if (editor.getEditedValues() != null) {
// ret[0] = CodeLevel.valueOf((String) editor.getEditedValues().get(
// CodeLevelDialogKeys.sourceLevel.toString()));
// ret[1] = CodeLevel.valueOf((String) editor.getEditedValues().get(
// CodeLevelDialogKeys.targetLevel.toString()));