The limit of the number of the displayed OQL query results should not be hardwired. Since it is not a parameter a typical user will change often it is sufficient to introduce a system property holding the limit.
The system property used to limit the number of the displayed results is
Integrated into 'main-golden', will be available in build *201103020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Bachorik <email@example.com>
Log: #196011: Using a system property to define the limit for the number of OQL query results being displayed