本文整理汇总了Java中org.eclipse.search.ui.ISearchPageContainer类的典型用法代码示例。如果您正苦于以下问题:Java ISearchPageContainer类的具体用法?Java ISearchPageContainer怎么用?Java ISearchPageContainer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISearchPageContainer类属于org.eclipse.search.ui包,在下文中一共展示了ISearchPageContainer类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: getContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
* Returns the search page's container.
* @return the search page container
*/
private ISearchPageContainer getContainer() {
return fContainer;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:JavaSearchPage.java
示例17: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
* Sets the supplied {@code ISearchPageContainer} as the container of the page. This allows the
* page to enable or disable the Search button based on the input fields.
*
* @param container
* the search container for the page
*/
void setContainer(ISearchPageContainer container);
开发者ID:UBPL,项目名称:jive,代码行数:9,代码来源:IJiveSearchPage.java
示例18: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
* Sets the search page's container.
*
* @param container
* the container to set
*/
public void setContainer(ISearchPageContainer container) {
fContainer = container;
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:10,代码来源:UrnSearchPage.java
示例19: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
* Sets the search page's container.
*
* @param container the container to set
*/
@Override
public void setContainer(ISearchPageContainer container) {
fContainer = container;
}
开发者ID:GoClipse,项目名称:goclipse,代码行数:10,代码来源:GoSearchPage.java
注:本文中的org.eclipse.search.ui.ISearchPageContainer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论