Skip to content

Commit a5ed055

Browse files
jisedlacthurka
authored andcommitted
HeapViewerNodeAction API cleanup
1 parent 19549ad commit a5ed055

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/ui/HeapViewerNodeAction.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ public static abstract class Provider {
7373
}
7474

7575

76-
static final class Actions {
76+
public static final class Actions {
7777

7878
private final List<HeapViewerNodeAction> actions;
7979

8080
private Actions(List<HeapViewerNodeAction> actions) {
8181
this.actions = actions;
8282
}
8383

84-
static Actions forNode(HeapViewerNode node, Collection<HeapViewerNodeAction.Provider> actionProviders,
84+
public static Actions forNode(HeapViewerNode node, Collection<HeapViewerNodeAction.Provider> actionProviders,
8585
HeapContext context, HeapViewerActions actions, HeapViewerNodeAction... additionalActions) {
8686
List<HeapViewerNodeAction> actionsList = new ArrayList();
8787
for (HeapViewerNodeAction.Provider provider : actionProviders) {
@@ -98,7 +98,7 @@ public int compare(HeapViewerNodeAction a1, HeapViewerNodeAction a2) {
9898
}
9999

100100

101-
void performDefaultAction(ActionEvent e) {
101+
public void performDefaultAction(ActionEvent e) {
102102
for (HeapViewerNodeAction action : actions) {
103103
if (action.isDefault()) {
104104
if (action.isEnabled()) action.actionPerformed(e);
@@ -107,7 +107,7 @@ void performDefaultAction(ActionEvent e) {
107107
}
108108
}
109109

110-
void performMiddleButtonAction(ActionEvent e) {
110+
public void performMiddleButtonAction(ActionEvent e) {
111111
for (HeapViewerNodeAction action : actions) {
112112
if (action.isMiddleButtonDefault(e)) {
113113
if (action.isEnabled()) {
@@ -118,7 +118,7 @@ void performMiddleButtonAction(ActionEvent e) {
118118
}
119119
}
120120

121-
void populatePopup(JPopupMenu popup) {
121+
public void populatePopup(JPopupMenu popup) {
122122
int lastPosition = -1;
123123
for (HeapViewerNodeAction action : actions) {
124124
int position = action.getPosition() / 100;

0 commit comments

Comments
 (0)