introduce DefaultInterpreterGroup, so languages don't need to create own descendants
diff --git a/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/wizards/PythonProjectCreationWizard.java b/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/wizards/PythonProjectCreationWizard.java index 30b1c83..ed023d1 100644 --- a/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/wizards/PythonProjectCreationWizard.java +++ b/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/wizards/PythonProjectCreationWizard.java
@@ -47,30 +47,19 @@ super.addPages(); fFirstPage = new ProjectWizardFirstPage() { - final class PythonInterpreterGroup extends AbstractInterpreterGroup { - - public PythonInterpreterGroup(Composite composite) { - super(composite); - } - - protected String getIntereprtersPreferencePageId() { - return "org.eclipse.dltk.python.preferences.interpreters"; //$NON-NLS-1$ - } - - protected boolean isTargetEnvironmentAllowed() { - return false; - } - }; - @Override public String getScriptNature() { return PythonNature.NATURE_ID; } + @Override protected IInterpreterGroup createInterpreterGroup(Composite parent) { - return new PythonInterpreterGroup(parent); + return new DefaultInterpreterGroup(parent, + "org.eclipse.dltk.python.preferences.interpreters", //$NON-NLS-1$ + DefaultInterpreterGroupOption.NO_TARGET_ENVIRONMENT); } + @Override protected boolean interpeterRequired() { // TODO Auto-generated method stub return false;