|
RSE Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.rse.ui.open.SystemQuickOpenDialog
public class SystemQuickOpenDialog
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
Window.IExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
| Fields inherited from class org.eclipse.jface.window.Window |
|---|
CANCEL, OK |
| 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 org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
| 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()
create in class DialogWindow.create()protected void configureShell(Shell shell)
configureShell in class WindowWindow.configureShell(org.eclipse.swt.widgets.Shell)protected Control createDialogArea(Composite parent)
createDialogArea in class DialogDialog.createDialogArea(org.eclipse.swt.widgets.Composite)protected Control createPageArea(Composite parent)
parent - the parent composite.
protected void cancelPressed()
cancelPressed in class DialogDialog.cancelPressed()protected void okPressed()
performAction. If the result of calling this method is true
okPressed in class DialogDialog.okPressed()protected boolean performAction()
true if the dialog can be closed, false otherwise.public IRunnableContext getRunnableContext()
ISystemQuickOpenPageContainer
getRunnableContext in interface ISystemQuickOpenPageContainerIRunnableContext for the search operationISystemQuickOpenPageContainer.getRunnableContext()public ISelection getSelection()
ISystemQuickOpenPageContainer
getSelection in interface ISystemQuickOpenPageContainerISystemQuickOpenPageContainer.getSelection()public void setPerformActionEnabled(boolean state)
ISystemQuickOpenPageContainer
setPerformActionEnabled in interface ISystemQuickOpenPageContainerstate - true to enable the button which performs the actionISystemQuickOpenPageContainer.setPerformActionEnabled(boolean)
public void run(boolean fork,
boolean cancelable,
IRunnableWithProgress runnable)
throws InvocationTargetException,
InterruptedException
run in interface IRunnableContextInvocationTargetException
InterruptedExceptionIRunnableContext.run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)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)
savedState - The saveState returned by aboutToStart.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()
handleShellCloseEvent in class WindowWindow.handleShellCloseEvent()public boolean okToClose()
false
indicating the dialog should not be closed.
true if it is ok to close the dialog, false otherwise.
|
RSE Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||