You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2024/10/10 01:02:24 UTC
Re: [PR] Added code preview for “search results” [netbeans]
mbien commented on code in PR #7779:
URL: https://github.com/apache/netbeans/pull/7779#discussion_r1794434558
##########
platform/api.search/src/org/netbeans/modules/search/ui/BasicSearchResultsPanel.java:
##########
@@ -18,15 +18,26 @@
*/
package org.netbeans.modules.search.ui;
+import java.beans.PropertyChangeEvent;
+import javax.swing.BoxLayout;
+import javax.swing.JPanel;
+import javax.swing.JSplitPane;
import org.netbeans.modules.search.BasicComposition;
+import org.netbeans.modules.search.ContextView;
+import org.netbeans.modules.search.FindDialogMemory;
import org.netbeans.modules.search.ResultModel;
import org.openide.nodes.Node;
+import org.openide.util.RequestProcessor;
/**
*
* @author jhavlin
*/
public class BasicSearchResultsPanel extends BasicAbstractResultsPanel {
+ private static final RequestProcessor RP =
+ new RequestProcessor(BasicSearchResultsPanel.class.getName());
+ private final RequestProcessor.Task SAVE_TASK = RP.create(new BasicSearchResultsPanel.SaveTask());
Review Comment:
this could probably use the `RequestProcessor.getDefault().create..` most likely, since updating a single attribute should be super fast and doesn't really happen that often.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists