public class ScopePart
extends java.lang.Object
| Constructor and Description |
|---|
ScopePart(org.eclipse.search.internal.ui.SearchDialog searchDialog,
boolean searchEnclosingProjects)
Returns a new scope part with workspace as initial scope.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.widgets.Composite |
createPart(org.eclipse.swt.widgets.Composite parent)
Creates this scope part.
|
int |
getSelectedScope()
Returns the scope selected in this part
|
void |
setActiveEditorCanProvideScopeSelection(boolean state) |
void |
setSelectedScope(int scope)
Sets the selected scope.
|
public ScopePart(org.eclipse.search.internal.ui.SearchDialog searchDialog,
boolean searchEnclosingProjects)
searchDialog - The parent containersearchEnclosingProjects - If true, add the 'search enclosing project' radio buttonpublic int getSelectedScope()
public void setSelectedScope(int scope)
scope - the scope to be selected in this partpublic void setActiveEditorCanProvideScopeSelection(boolean state)
public org.eclipse.swt.widgets.Composite createPart(org.eclipse.swt.widgets.Composite parent)
parent - a widget which will be the parent of the new instance (cannot be null)