ClustererUI clustererUI = builder.getUI();
JPanel panel = clustererUI.getPanel();
clustererUI.setup(model.getSelectedClusterer());
DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ClusteringTopComponent.class, "ClusteringTopComponent.settings.title", builder.getName()));
if (DialogDisplayer.getDefault().notify(dd).equals(NotifyDescriptor.OK_OPTION)) {
clustererUI.unsetup();
}
}
private void reset() {
model.removeClusterer(model.getSelectedClusterer());