Skip to content

Commit d1e97a8

Browse files
committed
GH-53 Re-enabled configuring max number of results in OQL console using a system property
1 parent 018ca38 commit d1e97a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/oql/OQLConsoleView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
})
131131
public class OQLConsoleView extends HeapViewerFeature {
132132

133+
private static final int RESULTS_LIMIT = Integer.parseInt(System.getProperty("OQLController.limitResults", "100")); // NOI18N
134+
133135
private static final Color SEPARATOR_COLOR = UIManager.getColor("Separator.foreground"); // NOI18N
134136

135137
private final HeapContext context;
@@ -548,7 +550,7 @@ private void executeQueryImpl(final String oqlQuery) {
548550
// public void run() {
549551
new RequestProcessor("OQL Query Processor").post(new Runnable() { // NOI18N
550552
public void run() {
551-
final AtomicInteger counter = new AtomicInteger(100);
553+
final AtomicInteger counter = new AtomicInteger(RESULTS_LIMIT);
552554
progressModel.setMaximum(100);
553555

554556
final StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)