本文整理汇总了Java中org.eclipse.search.ui.ISearchResultViewPart类的典型用法代码示例。如果您正苦于以下问题:Java ISearchResultViewPart类的具体用法?Java ISearchResultViewPart怎么用?Java ISearchResultViewPart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISearchResultViewPart类属于org.eclipse.search.ui包,在下文中一共展示了ISearchResultViewPart类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
@Override
public void setViewPart(ISearchResultViewPart part) {
}
开发者ID:gw4e,项目名称:gw4e.project,代码行数:4,代码来源:ModelSearchResultPage.java
示例2: setViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
public void setViewPart(ISearchResultViewPart part) {
super.setViewPart(part);
//fActionGroup= new NewTextSearchActionGroup(part);
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:5,代码来源:TypeScriptSearchResultPage.java
示例3: setViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
public void setViewPart(ISearchResultViewPart part) {
this.part = part;
}
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:ReferenceSearchViewPage.java
示例4: setViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
@Override
public void setViewPart(ISearchResultViewPart part) {
viewPart = part;
}
开发者ID:insweat,项目名称:hssd,代码行数:5,代码来源:AbstractSearchResultPage.java
示例5: getViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
protected ISearchResultViewPart getViewPart() {
return viewPart;
}
开发者ID:insweat,项目名称:hssd,代码行数:4,代码来源:AbstractSearchResultPage.java
示例6: performAction
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
/**
* This is run when the "search" button is pressed.
*/
@Override
public boolean performAction() {
saveWidgetValues();
if(searchQueries.size() == 0){
return false;
}
searcher.clearQueries();
if(hasAllMustNotQueries()){
searcher.addQuery(PlanSearcher.DEFAULT_QUERY);
}
for(PlanSearchDialogQuery query : searchQueries){
query.getPlanSearchInput().setDefaultBooleanID(defaultBooleanOption.getSelectionIndex());
query.getPlanSearchInput().addQueries(searcher);
}
try{
ISearchResultViewPart view = NewSearchUI.activateSearchResultView();
IActionBars actionBars = view.getViewSite().getActionBars();
OperationHistoryActionHandler undoHandler = (OperationHistoryActionHandler)actionBars.getGlobalActionHandler(ActionFactory.UNDO.getId());
PlatformUI.getWorkbench().getOperationSupport().getUndoContext();
undoHandler.setContext(IOperationHistory.GLOBAL_UNDO_CONTEXT);
OperationHistoryActionHandler redoHandler = (OperationHistoryActionHandler)actionBars.getGlobalActionHandler(ActionFactory.REDO.getId());
redoHandler.setContext(IOperationHistory.GLOBAL_UNDO_CONTEXT);
String searchLabel = "";
for(int i = 0; i < searchQueries.size(); i++){
searchLabel += searchQueries.get(i).getPlanSearchInput().getSearchLabel();
if(i < searchQueries.size() - 1){
searchLabel += ",\n";
}
}
// don't run query until the indexer is finished. (stop waiting after 3 seconds).
indexingCompletedLatch.await(maximumIndexingWaitTime, TimeUnit.SECONDS);
NewSearchUI.runQueryInBackground(new PlanSearchQuery(searchLabel, searcher, indexer));
}
catch (Exception e){
LogUtil.error(e.getMessage());
System.out.println("Exception in performing search action: " + e.getMessage());
return false;
}
return true;
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:52,代码来源:PlanSearchPage.java
示例7: setViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
@Override
public void setViewPart(ISearchResultViewPart part) {
super.setViewPart(part);
fActionGroup= new NewSearchViewActionGroup(part);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:6,代码来源:JavaSearchResultPage.java
示例8: isSearchResultView
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
private boolean isSearchResultView(IWorkbenchPart part) {
return SearchUtil.isSearchPlugInActivated() && part instanceof ISearchResultViewPart;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:JavaBrowsingPart.java
示例9: setViewPart
import org.eclipse.search.ui.ISearchResultViewPart; //导入依赖的package包/类
@Override
public void setViewPart(ISearchResultViewPart part) {
super.setViewPart(part);
fActionGroup = new NewTextSearchActionGroup(part);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:6,代码来源:AbstractSearchIndexResultPage.java
注:本文中的org.eclipse.search.ui.ISearchResultViewPart类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论