本文整理汇总了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);
}
}
示例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);
}
}
示例3: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(ISearchPageContainer container) {
fContainer = container;
}
示例4: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(ISearchPageContainer container) {
// pass
}
示例5: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
/**
* ISearchPage mandatory method.
*/
@Override
public void setContainer(ISearchPageContainer container) {
// do nothing
}
示例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);
}
示例7: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
public void setContainer(ISearchPageContainer container) {
fContainer= container;
}
示例8: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(final ISearchPageContainer container) {
this.container = container;
}
示例9: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(final ISearchPageContainer container)
{
this.container = container;
}
示例10: getContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
private ISearchPageContainer getContainer()
{
return container;
}
示例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;
}
示例12: setContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
@Override
public void setContainer(ISearchPageContainer container) {
fContainer = container;
}
示例13: getContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
private ISearchPageContainer getContainer() {
return fContainer;
}
示例14: getContainer
import org.eclipse.search.ui.ISearchPageContainer; //导入依赖的package包/类
private ISearchPageContainer getContainer() {
return fContainer;
}
示例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);
}