mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
improve api
This commit is contained in:
@@ -97,6 +97,10 @@ public class JdkChooserPanel extends JPanel {
|
||||
return myCurrentJdk;
|
||||
}
|
||||
|
||||
public Object[] getAllJdks() {
|
||||
return myListModel.toArray();
|
||||
}
|
||||
|
||||
public void editJdkTable() {
|
||||
ProjectJdksEditor editor = new ProjectJdksEditor((Sdk)myList.getSelectedValue(),
|
||||
myProject != null ? myProject : ProjectManager.getInstance().getDefaultProject(),
|
||||
|
||||
@@ -142,6 +142,10 @@ public class ProjectJdkForModuleStep extends ModuleWizardStep {
|
||||
return myJdkChooser.getChosenJdk();
|
||||
}
|
||||
|
||||
public Object[] getAllJdks() {
|
||||
return myJdkChooser.getAllJdks();
|
||||
}
|
||||
|
||||
public Icon getIcon() {
|
||||
return NEW_PROJECT_ICON;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public class ProjectJdkStep extends ModuleWizardStep {
|
||||
private static final Icon NEW_PROJECT_ICON = IconLoader.getIcon("/newprojectwizard.png");
|
||||
private final WizardContext myContext;
|
||||
|
||||
private final ProjectJdksConfigurable myProjectJdksConfigurable;
|
||||
protected final ProjectJdksConfigurable myProjectJdksConfigurable;
|
||||
|
||||
private final JComponent myJDKsComponent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user