Skip to content

Commit 6f75693

Browse files
author
Michael P Schroeder
committed
hide hier-cluster levels in annotation dialog (possibly to permissive..)
1 parent 66a4393 commit 6f75693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.gitools.ui.core/src/main/java/org/gitools/ui/core/pages/common/AnnotationEditPage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ public void actionPerformed(ActionEvent e) {
380380
DefaultListModel<AnnotationOption> model = new DefaultListModel<>();
381381
FilterCellRenderer cellRenderer = new FilterCellRenderer();
382382

383-
383+
// show all annotations except hierarchical clusters..
384384
annotation = new ArrayList<>();
385385
for (String key : hdim.getAnnotations().getLabels()) {
386-
if (key.toLowerCase().startsWith("hierarchical-cols") || key.toLowerCase().startsWith("hierarchical-rows")) {
386+
if (key.matches(".* L[0-9]{1,2}$")) {
387387
continue;
388388
}
389389
String description = hdim.getAnnotations().getAnnotationMetadata(AnnotationMatrix.METADATA_DESCRIPTION, key);

0 commit comments

Comments
 (0)