本文整理汇总了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());
}
}
}
示例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();
}
};
}
示例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);
}
示例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();
}
};
}
示例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();
}
};
}
示例6: PlanSearchResultPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public PlanSearchResultPage(){
super(AbstractTextSearchViewPage.FLAG_LAYOUT_TREE | AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
示例7: NLSSearchResultPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public NLSSearchResultPage() {
super(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
示例8: NLSSearchResultLabelProvider2
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public NLSSearchResultLabelProvider2(AbstractTextSearchViewPage page) {
super(page);
fLabelProvider= new AppearanceAwareLabelProvider(JavaElementLabels.ALL_POST_QUALIFIED, 0);
}
示例9: TextSearchLabelProvider
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public TextSearchLabelProvider(AbstractTextSearchViewPage page) {
fPage= page;
}
示例10: getPage
import org.eclipse.search.ui.text.AbstractTextSearchViewPage; //导入依赖的package包/类
public AbstractTextSearchViewPage getPage() {
return fPage;
}
示例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));
}