当前位置: 首页>>代码示例>>Java>>正文


Java ISearchPageContainer类代码示例

本文整理汇总了Java中org.eclipse.search.ui.ISearchPageContainer的典型用法代码示例。如果您正苦于以下问题:Java ISearchPageContainer类的具体用法?Java ISearchPageContainer怎么用?Java ISearchPageContainer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ISearchPageContainer类属于org.eclipse.search.ui包,在下文中一共展示了ISearchPageContainer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createTextSearchScope

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
public FileTextSearchScope createTextSearchScope() {
    // Setup search scope
    switch (getContainer().getSelectedScope()) {
    case ISearchPageContainer.WORKSPACE_SCOPE:
        return FileTextSearchScope.newWorkspaceScope(getExtensions(), fSearchDerived);
    case ISearchPageContainer.SELECTION_SCOPE:
        return getSelectedResourcesScope();
    case ISearchPageContainer.SELECTED_PROJECTS_SCOPE:
        return getEnclosingProjectScope();
    case ISearchPageContainer.WORKING_SET_SCOPE:
        IWorkingSet[] workingSets = getContainer().getSelectedWorkingSets();
        return FileTextSearchScope.newSearchScope(workingSets, getExtensions(), fSearchDerived);
    default:
        // unknown scope
        return FileTextSearchScope.newWorkspaceScope(getExtensions(), fSearchDerived);
    }
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:18,代码来源:UrnSearchPage.java

示例2: createTextSearchScope

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
public FileTextSearchScope createTextSearchScope() {
  // Setup search scope
  switch (getContainer().getSelectedScope()) {
    case ISearchPageContainer.WORKSPACE_SCOPE:
      return FileTextSearchScope.newWorkspaceScope(getExtensions(), false);
    case ISearchPageContainer.SELECTION_SCOPE:
      return getSelectedResourcesScope();
    case ISearchPageContainer.SELECTED_PROJECTS_SCOPE:
      return getEnclosingProjectScope();
    case ISearchPageContainer.WORKING_SET_SCOPE:
      IWorkingSet[] workingSets = getContainer().getSelectedWorkingSets();
      return FileTextSearchScope.newSearchScope(workingSets, getExtensions(), false);
    default:
      // unknown scope
      return FileTextSearchScope.newWorkspaceScope(getExtensions(), false);
  }
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:18,代码来源:GoSearchPage.java

示例3: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(ISearchPageContainer container) {
	fContainer = container;
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:ModelSearchPage.java

示例4: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(ISearchPageContainer container) {
    // pass
}
 
开发者ID:insweat,项目名称:hssd,代码行数:5,代码来源:EntrySearchPage.java

示例5: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
 * ISearchPage mandatory method.
 */
@Override
public void setContainer(ISearchPageContainer container) {
	// do nothing
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:8,代码来源:PlanSearchPage.java

示例6: SearchPatternData

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
public SearchPatternData(int searchFor, int limitTo, int matchLocations, boolean isCaseSensitive, String pattern, IJavaElement element, int includeMask) {
	this(searchFor, limitTo, matchLocations, pattern, isCaseSensitive, element, ISearchPageContainer.WORKSPACE_SCOPE, null, includeMask);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:JavaSearchPage.java

示例7: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
public void setContainer(ISearchPageContainer container) {
	fContainer= container;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:JavaSearchPage.java

示例8: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(final ISearchPageContainer container) {
    this.container = container;
}
 
开发者ID:GRA-UML,项目名称:tool,代码行数:5,代码来源:ReferenceLibrarySearchPage.java

示例9: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(final ISearchPageContainer container)
{
  this.container = container;
}
 
开发者ID:UBPL,项目名称:jive,代码行数:6,代码来源:JiveSearchPageProxy.java

示例10: getContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
private ISearchPageContainer getContainer()
{
  return container;
}
 
开发者ID:UBPL,项目名称:jive,代码行数:5,代码来源:JiveSearchPageProxy.java

示例11: getContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
 * Returns the search page container in which this page is hosted.
 */
protected ISearchPageContainer getContainer()
{
  return container;
}
 
开发者ID:UBPL,项目名称:jive,代码行数:8,代码来源:JiveSearchPage.java

示例12: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(ISearchPageContainer container) {
    fContainer = container;
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:5,代码来源:AbstractSearchIndexPage.java

示例13: getContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
private ISearchPageContainer getContainer() {
    return fContainer;
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:4,代码来源:UrnSearchPage.java

示例14: getContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
private ISearchPageContainer getContainer() {
  return fContainer;
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:4,代码来源:GoSearchPage.java

示例15: setContainer

import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
 * setContainer
 * 
 * @see org.eclipse.search.ui.ISearchPage#setContainer(org.eclipse.search.ui.ISearchPageContainer)
 */
public void setContainer(ISearchPageContainer container) {
    this.container = container;
    container.setSelectedScope(ISearchPageContainer.SELECTED_PROJECTS_SCOPE);
}
 
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:10,代码来源:UMLModelSearchPage.java


注:本文中的org.eclipse.search.ui.ISearchPageContainer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。