|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Offers client access to the search dialog. A search page can enable or disable the dialog's action button and get an operation context to perform the action. The dialog itself cannot be accessed directly.
This interface is not intended to be implemented by clients.
Field Summary | |
static int |
SELECTION_SCOPE
Selection scope (value 1 ). |
static int |
WORKING_SET_SCOPE
Working set scope (value 2 ). |
static int |
WORKSPACE_SCOPE
Workspace scope (value 0 ). |
Method Summary | |
IRunnableContext |
getRunnableContext()
Returns the context for the search operation. |
int |
getSelectedScope()
Returns search container's selected scope. |
IWorkingSet[] |
getSelectedWorkingSets()
Returns the selected working sets of this container. |
ISelection |
getSelection()
Returns the selection with which this container was opened. |
boolean |
hasValidScope()
Tells whether a valid scope is selected. |
void |
setPerformActionEnabled(boolean state)
Sets the enable state of the perform action button of this container. |
void |
setSelectedScope(int scope)
Sets the selected scope of this search page container. |
void |
setSelectedWorkingSets(IWorkingSet[] workingSets)
Sets the selected working sets of this container. |
Field Detail |
public static final int WORKSPACE_SCOPE
0
).
public static final int SELECTION_SCOPE
1
).
public static final int WORKING_SET_SCOPE
2
).
Method Detail |
public ISelection getSelection()
public IRunnableContext getRunnableContext()
IRunnableContext
for the search operationpublic void setPerformActionEnabled(boolean state)
state
- true
to enable the button which performs the actionpublic int getSelectedScope()
public void setSelectedScope(int scope)
public boolean hasValidScope()
true
if a valid scope is selected in this search page containerpublic IWorkingSet[] getSelectedWorkingSets()
null
if the scope is not WORKING_SET_SCOPEpublic void setSelectedWorkingSets(IWorkingSet[] workingSets)
workingSets
- an array of IWorkingSet
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |