public ISubPropertiesPanel[] getLauncherPanels() {
String selectedLauncher = getClassName();
if (selectedLauncher == null)
return new ISubPropertiesPanel[] {};
try {
ISubpanelProvider model = getLauncherModel(selectedLauncher);
if (model != null)
return model.getSubPanels(parent);
} catch (ClassNotFoundException e) {
JOptionPane.showMessageDialog(parent, "Could not find launcher", "Error", JOptionPane.ERROR_MESSAGE);
e.printStackTrace();
} catch (InstantiationException e) {
JOptionPane.showMessageDialog(parent, "Could not find launcher", "Error", JOptionPane.ERROR_MESSAGE);