super.addPluginConfig(globalMenu, frame);
globalMenu.addMenuItem("KnnDendrogram Color Presets...", new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {
if (cpresetFrame == null) {
cpresetFrame = new JFrame("KnnDendrogram Color Presets");
SettingsPanelHolder holder = new SettingsPanelHolder(cpresetFrame,
frame.getApp().getGlobalConfig().getRoot());
holder.addSettingsPanel(cpresetEditor);
cpresetFrame.getContentPane().add(holder);
}
cpresetFrame.pack();
cpresetFrame.setVisible(true);
}