本文整理汇总了Java中org.eclipse.search.ui.text.AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT属性的典型用法代码示例。如果您正苦于以下问题:Java AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT属性的具体用法?Java AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT怎么用?Java AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.search.ui.text.AbstractTextSearchViewPage
的用法示例。
在下文中一共展示了AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setInput
@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: OccurrencesSearchResultPage
public OccurrencesSearchResultPage() {
super(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
fLinkWithEditorListener= new LinkWithEditorListener();
fLinkingEnabled= false;
fToggleLinkingAction= new ToggleLinkingAction();
fToggleLinkingAction.setActionDefinitionId(IWorkbenchCommandConstants.NAVIGATE_TOGGLE_LINK_WITH_EDITOR);
}
示例3: PlanSearchResultPage
public PlanSearchResultPage(){
super(AbstractTextSearchViewPage.FLAG_LAYOUT_TREE | AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
示例4: NLSSearchResultPage
public NLSSearchResultPage() {
super(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}