Modelers

org.topcased.search.core.engine
Class ModelSearchScopeFactory

java.lang.Object
  extended by org.topcased.search.core.engine.ModelSearchScopeFactory

public final class ModelSearchScopeFactory
extends java.lang.Object


Constructor Summary
ModelSearchScopeFactory()
           
 
Method Summary
 IModelSearchScope createModelProjectSearchScope(AbstractModelExtensibleSearchParameters params, java.lang.String[] projectNames)
          Populates ModelSearchScope with potential resource participants for the given Project names array.
 IModelSearchScope createModelSearchScope(AbstractModelExtensibleSearchParameters params, org.eclipse.ui.IWorkingSet[] workingSets)
          Populates ModelSearchScope with potential resource participants for the given IWorkingSet array.
 IModelSearchScope createModelSearchScope(AbstractModelExtensibleSearchParameters params, java.lang.Object selection)
          Populates ModelSearchScope with potential resource participants for the given workspace selection.
 IModelSearchScope createModelWorkspaceScope(AbstractModelExtensibleSearchParameters params)
          Populates ModelSearchScope with potential resource participants for the workspace root.
static ModelSearchScopeFactory getInstance()
          Singleton access to the ModelSearchScopeFactory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelSearchScopeFactory

public ModelSearchScopeFactory()
Method Detail

getInstance

public static ModelSearchScopeFactory getInstance()
Singleton access to the ModelSearchScopeFactory instance.

Returns:
New ModelSearchScopeFactory instance or previously created one

createModelWorkspaceScope

public IModelSearchScope createModelWorkspaceScope(AbstractModelExtensibleSearchParameters params)
Populates ModelSearchScope with potential resource participants for the workspace root.

Parameters:
params - Current search query parameters
Returns:
Populated ModelSearchScope if any potential participant matching

createModelSearchScope

public IModelSearchScope createModelSearchScope(AbstractModelExtensibleSearchParameters params,
                                                java.lang.Object selection)
Populates ModelSearchScope with potential resource participants for the given workspace selection.

Parameters:
params - Current search query parameters
selection - IStructuredSelection coming from current search scope selection
Returns:
Populated ModelSearchScope if any potential participant matching

createModelProjectSearchScope

public IModelSearchScope createModelProjectSearchScope(AbstractModelExtensibleSearchParameters params,
                                                       java.lang.String[] projectNames)
Populates ModelSearchScope with potential resource participants for the given Project names array.

Parameters:
params - Current search query parameters
projectNames - Project names array coming from current search scope selection
Returns:
Populated ModelSearchScope if any potential participant matching

createModelSearchScope

public IModelSearchScope createModelSearchScope(AbstractModelExtensibleSearchParameters params,
                                                org.eclipse.ui.IWorkingSet[] workingSets)
Populates ModelSearchScope with potential resource participants for the given IWorkingSet array.

Parameters:
params - Current search query parameters
workingSets - WorkingSet array coming from current search scope selection
Returns:
Populated ModelSearchScope if any potential participant matching

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.