choose = new JButton(mLocalizer.msg("selectPlugins", "Choose Plugins"));
choose.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Window parent = UiUtilities.getLastModalChildOf(MainFrame
.getInstance());
MarkerChooserDlg chooser = new MarkerChooserDlg(parent,
mClientPlugins, null);
chooser.setLocationRelativeTo(parent);
chooser.setVisible(true);
mClientPlugins = chooser.getMarker();
handlePluginSelection();
}
});
choose.setEnabled(ProgramPanelSettings.typeContainsType(Settings.propPictureType.getInt(), ProgramPanelSettings.SHOW_PICTURES_FOR_PLUGINS));