Skip to content

Commit

Permalink
7192: Event browser should be able to search and show event type ids
Browse files Browse the repository at this point in the history
Reviewed-by: hirt
  • Loading branch information
aptmac committed Nov 20, 2023
1 parent 2a076d2 commit d734567
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -271,6 +271,9 @@ private boolean isLeaf(Object element) {

private boolean matches(Object element) {
String label = labelProvider.apply(element);
if (element instanceof EventTypeNode) {
label = label.concat(" " + ((EventTypeNode) element).getType().getIdentifier());
}
if (FilterMatcher.getInstance().match(label, filterString, true)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -350,6 +350,8 @@ private void rebuildItemList() {
newColumns.add(0, new ColumnSettings(combinedId, false, null, null));
}
});
// add a column for the event type id, hidden by default
itemListBuilder.addColumn(JfrAttributes.EVENT_TYPE_ID);
listColumns.addAll(0, newColumns);

saveFilterActionStates();
Expand Down

0 comments on commit d734567

Please sign in to comment.