SearchHistoryAction.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
public static void openSearch (final File repository, final File root, final String contextName, final int lineNumber) {
    final String title = NbBundle.getMessage(SearchHistoryTopComponent.class, "LBL_SearchHistoryTopComponent.title", contextName);
    final RepositoryInfo info = RepositoryInfo.getInstance(repository);
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run () {
            SearchHistoryTopComponent tc = new SearchHistoryTopComponent(repository, info, root, new SearchHistoryTopComponent.DiffResultsViewFactory() {
                @Override
                DiffResultsView createDiffResultsView(SearchHistoryPanel panel, List<RepositoryRevision> results) {
                    return new DiffResultsViewForLine(panel, results, lineNumber);
                }
            });
            tc.setDisplayName(title);
            tc.open();
            tc.requestActive();
            tc.search(true);
            tc.activateDiffView(true);
        }
    });
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号