|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDialog
com.ibm.etools.systems.core.ui.open.SystemQuickOpenDialog
Constructor Summary | |
---|---|
SystemQuickOpenDialog(Shell shell,
ISelection selection,
String pageId)
The constructor for the quick open dialog. |
Method Summary | |
---|---|
protected HashMap |
aboutToStart(boolean enableCancelButton)
About to start a long running operation tiggered through the dialog. |
protected void |
cancelPressed()
Calls the super class method if there are no running operations. |
protected void |
configureShell(Shell shell)
|
void |
create()
|
protected Control |
createDialogArea(Composite parent)
Creates a page area, a progress monitor and a separator. |
protected Control |
createPageArea(Composite parent)
Creates the page area. |
protected IProgressMonitor |
getProgressMonitor()
Returns the progress monitor. |
IRunnableContext |
getRunnableContext()
Returns the context for the search operation. |
ISelection |
getSelection()
Returns the selection with which this container was opened. |
protected void |
handleShellCloseEvent()
Checks to see if there are any long running operations. |
protected void |
okPressed()
Calls performAction . |
boolean |
okToClose()
Checks if any operations are running. |
protected boolean |
performAction()
Returns whether ok to close. |
protected void |
restoreEnableState(Control w,
HashMap h,
String key)
Restores the enable state of a control. |
void |
run(boolean fork,
boolean cancelable,
IRunnableWithProgress runnable)
|
void |
setPerformActionEnabled(boolean state)
Sets the enable state of the perform action button of this container. |
protected void |
stopped(HashMap state)
A long running operation triggered through the wizard was stopped either by user input or by normal end. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemQuickOpenDialog(Shell shell, ISelection selection, String pageId)
shell
- the shell.selection
- the current selection.pageId
- the initial page id.Method Detail |
public void create()
Window
protected void configureShell(Shell shell)
Window
protected Control createDialogArea(Composite parent)
Dialog
protected Control createPageArea(Composite parent)
parent
- the parent composite.
protected void cancelPressed()
Dialog
protected void okPressed()
performAction
. If the result of calling this method is true
Dialog
protected boolean performAction()
true
if the dialog can be closed, false
otherwise.public IRunnableContext getRunnableContext()
ISystemQuickOpenPageContainer
getRunnableContext
in interface ISystemQuickOpenPageContainer
IRunnableContext
for the search operationISystemQuickOpenPageContainer.getRunnableContext()
public ISelection getSelection()
ISystemQuickOpenPageContainer
getSelection
in interface ISystemQuickOpenPageContainer
ISystemQuickOpenPageContainer.getSelection()
public void setPerformActionEnabled(boolean state)
ISystemQuickOpenPageContainer
setPerformActionEnabled
in interface ISystemQuickOpenPageContainer
state
- true
to enable the button which performs the actionISystemQuickOpenPageContainer.setPerformActionEnabled(boolean)
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
IRunnableContext
protected IProgressMonitor getProgressMonitor()
null
is returned.
protected HashMap aboutToStart(boolean enableCancelButton)
enableCancelButton
- true
if cancel button should be enabled, false
otherwise.
#stopped(HashMap);
protected void stopped(HashMap state)
aboutToStart(boolean)
protected void restoreEnableState(Control w, HashMap h, String key)
w
- the control whose state needs to be restored.h
- the hashmap containing the enable state of the control.key
- the key to use to retrieve the enable state.protected void handleShellCloseEvent()
Window
public boolean okToClose()
false
indicating the dialog should not be closed.
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |