override getScriptNature() only once for project wizard
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 f87fb9e..30b1c83 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
@@ -53,10 +53,6 @@ super(composite); } - protected String getCurrentLanguageNature() { - return PythonNature.NATURE_ID; - } - protected String getIntereprtersPreferencePageId() { return "org.eclipse.dltk.python.preferences.interpreters"; //$NON-NLS-1$ } @@ -66,6 +62,11 @@ } }; + @Override + public String getScriptNature() { + return PythonNature.NATURE_ID; + } + protected IInterpreterGroup createInterpreterGroup(Composite parent) { return new PythonInterpreterGroup(parent); } @@ -88,10 +89,6 @@ useNewSourcePage(), null); } - protected String getScriptNature() { - return PythonNature.NATURE_ID; - } - protected IPreferenceStore getPreferenceStore() { return PythonUI.getDefault().getPreferenceStore(); }