本文整理汇总了Java中org.eclipse.search.ui.text.AbstractTextSearchViewPage类的典型用法代码示例。如果您正苦于以下问题:Java AbstractTextSearchViewPage类的具体用法?Java AbstractTextSearchViewPage怎么用?Java AbstractTextSearchViewPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractTextSearchViewPage类属于org.eclipse.search.ui.text包,在下文中一共展示了AbstractTextSearchViewPage类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setInput
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
@Override
public void setInput(final ISearchResult newSearch, final Object viewState)
{
super.setInput(newSearch, viewState);
if (newSearch != null)
{
if (getLayout() == AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT)
{
final IJiveSearchResult result = (IJiveSearchResult) newSearch;
final IJiveSearchQuery query = result.getQuery();
resultType = query.getResultType();
setLayout(AbstractTextSearchViewPage.FLAG_LAYOUT_TREE);
setLayout(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
// Display the sequence diagram and notify it of changing results
final IJiveGraphicalView diagram = (IJiveGraphicalView) showView(JiveUIPlugin.ID_SEQUENCE_DIAGRAM_VIEW);
final IJiveDebugTarget activeTarget = JiveSearchResultPage.activeTarget();
if (activeTarget != null)
{
final GraphicalViewer viewer = diagram.getViewer();
final IQueryListener contents = (IQueryListener) viewer.getContents();
contents.queryFinished(newSearch.getQuery());
}
}
}
开发者ID:UBPL,项目名称:jive,代码行数:26,代码来源:JiveSearchResultPage.java
示例2: TypeScriptSearchLabelProvider
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public TypeScriptSearchLabelProvider(AbstractTextSearchViewPage page, int orderFlag) {
fLabelProvider= new WorkbenchLabelProvider();
fOrder= orderFlag;
fPage= page;
fLineMatchImage= SearchPluginImages.get(SearchPluginImages.IMG_OBJ_TEXT_SEARCH_LINE);
fMatchComparator= new Comparator() {
public int compare(Object o1, Object o2) {
return ((TypeScriptMatch) o1).getOriginalOffset() - ((TypeScriptMatch) o2).getOriginalOffset();
}
};
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:12,代码来源:TypeScriptSearchLabelProvider.java
示例3: OccurrencesSearchResultPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public OccurrencesSearchResultPage() {
super(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
fLinkWithEditorListener= new LinkWithEditorListener();
fLinkingEnabled= false;
fToggleLinkingAction= new ToggleLinkingAction();
fToggleLinkingAction.setActionDefinitionId(IWorkbenchCommandConstants.NAVIGATE_TOGGLE_LINK_WITH_EDITOR);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:OccurrencesSearchResultPage.java
示例4: SearchIndexLabelProvider
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public SearchIndexLabelProvider(AbstractTextSearchViewPage page) {
fLabelProvider = new WorkbenchLabelProvider();
fPage = page;
fLineMatchImage = SearchPluginImages.get(SearchPluginImages.IMG_OBJ_TEXT_SEARCH_LINE);
fMatchComparator = new Comparator() {
@Override
public int compare(Object o1, Object o2) {
return ((ICustomMatch) o1).getOriginalOffset() - ((ICustomMatch) o2).getOriginalOffset();
}
};
}
开发者ID:fabioz,项目名称:Pydev,代码行数:12,代码来源:SearchIndexLabelProvider.java
示例5: FileLabelProvider
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public FileLabelProvider(AbstractTextSearchViewPage page, int orderFlag) {
fLabelProvider = new WorkbenchLabelProvider();
fOrder = orderFlag;
fPage = page;
fLineMatchImage = SharedUiPlugin.getImageCache().get(UIConstants.LINE_MATCH);
fMatchComparator = new Comparator<FileMatch>() {
@Override
public int compare(FileMatch o1, FileMatch o2) {
return o1.getOriginalOffset() - o2.getOriginalOffset();
}
};
}
开发者ID:fabioz,项目名称:Pydev,代码行数:14,代码来源:FileLabelProvider.java
示例6: PlanSearchResultPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public PlanSearchResultPage(){
super(AbstractTextSearchViewPage.FLAG_LAYOUT_TREE | AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:4,代码来源:PlanSearchResultPage.java
示例7: NLSSearchResultPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public NLSSearchResultPage() {
super(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:NLSSearchResultPage.java
示例8: NLSSearchResultLabelProvider2
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public NLSSearchResultLabelProvider2(AbstractTextSearchViewPage page) {
super(page);
fLabelProvider= new AppearanceAwareLabelProvider(JavaElementLabels.ALL_POST_QUALIFIED, 0);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:5,代码来源:NLSSearchResultLabelProvider2.java
示例9: TextSearchLabelProvider
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public TextSearchLabelProvider(AbstractTextSearchViewPage page) {
fPage= page;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:TextSearchLabelProvider.java
示例10: getPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public AbstractTextSearchViewPage getPage() {
return fPage;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:TextSearchLabelProvider.java
示例11: OccurrencesSearchLabelProvider
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public OccurrencesSearchLabelProvider(AbstractTextSearchViewPage page) {
super(page);
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:OccurrencesSearchLabelProvider.java
示例12: UrnTextSearchViewPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public UrnTextSearchViewPage() {
super(AbstractTextSearchViewPage.FLAG_LAYOUT_TREE);
setElementLimit(new Integer(DEFAULT_ELEMENT_LIMIT));
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:5,代码来源:UrnTextSearchViewPage.java
注:本文中的org.eclipse.search.ui.text.AbstractTextSearchViewPage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论