|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.Dialog org.eclipse.jface.dialogs.TrayDialog org.eclipse.jface.dialogs.TitleAreaDialog com.ibm.commons.swt.data.dialog.LWPDCommonDialog com.ibm.commons.swt.data.dialog.LWPDOnePageDialog
public class LWPDOnePageDialog
A wizard container that only supports one wizard page. This 'wizard' dialog does not support a previous and next button.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary | |
---|---|
static int |
EXPORT_WIZARD
|
static int |
IMPORT_WIZARD
|
static int |
NEW_WIZARD
|
Fields inherited from class com.ibm.commons.swt.data.dialog.LWPDCommonDialog |
---|
_bDialogWidgetInitialized, _bSetFocusControl, useEclipseDialog |
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
---|
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE |
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 | |
---|---|
LWPDOnePageDialog(org.eclipse.jface.dialogs.IDialogPage dialogPage,
org.eclipse.swt.widgets.Shell parentShell)
Constructs a new instance of the class given the IDialogPage, and a shell which serves as a parent. |
|
LWPDOnePageDialog(java.lang.String wizardId,
org.eclipse.jface.viewers.IStructuredSelection selection,
org.eclipse.swt.widgets.Shell parentShell)
Constructs a new instance of the class given the wizard id, the current selection, and a shell which serves as a parent. |
|
LWPDOnePageDialog(java.lang.String wizardId,
org.eclipse.jface.viewers.IStructuredSelection selection,
org.eclipse.swt.widgets.Shell parentShell,
int wizardType)
Constructs a new instance of the class given the wizard id, the current selection, a shell which serves as a parent, and a wizard type. |
Method Summary | |
---|---|
protected void |
configureShell(org.eclipse.swt.widgets.Shell newShell)
Configures the Shell in which the dialog will reside. |
protected void |
fillClientArea(org.eclipse.swt.widgets.Composite parent)
Consummers implement this function to provide their content |
org.eclipse.jface.wizard.IWizardPage |
getCurrentPage()
|
protected java.lang.String |
getDialogTitle()
Returns the title of the dialog. |
protected org.eclipse.swt.graphics.Image |
getTitleImage()
Returns an image to be displayed in the title area of the dialog. |
org.eclipse.ui.IWorkbenchWizard |
getWizard()
Returns the workbench wizard that is being used in conjunction with the dialog. |
protected boolean |
performDialogOperation(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
An abstract method that gets called when the OK button is pressed on the dialog. |
void |
run(boolean fork,
boolean cancelable,
org.eclipse.jface.operation.IRunnableWithProgress runnable)
|
void |
showPage(org.eclipse.jface.wizard.IWizardPage page)
|
void |
updateButtons()
|
void |
updateMessage()
|
void |
updateTitleBar()
|
void |
updateWindowTitle()
|
protected void |
validateDialog()
Provide dialog validation for the contents of the dialog. |
Methods inherited from class com.ibm.commons.swt.data.dialog.LWPDCommonDialog |
---|
attachProgressMonitor, close, createButtonBar, createContainerLayout, createContents, createDialogArea, createTitleAreaComposite, detachProgressMonitor, doPerformDialog, getDialogBoundsSettings, getDialogBoundsStrategy, getTitleImageDescriptor, getUpdater, getWorkbench, initMainPanel, invalidateDialog, isDirty, isModal, needsProgressMonitor, okPressed, open, refreshTitleArea, setBlockOnOpen, setClassDef, setDataChangeNotifier, setDataProvider, setDirty, setErrorMessage, setMessage, setUpdater, useScrollableContents |
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog |
---|
getInitialSize, getTitleArea, getTitleImageLabel, setMessage, setTitle, setTitleAreaColor, setTitleImage |
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog |
---|
closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
---|
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, 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 |
Methods inherited from interface org.eclipse.jface.wizard.IWizardContainer |
---|
getShell |
Field Detail |
---|
public static int NEW_WIZARD
public static int IMPORT_WIZARD
public static int EXPORT_WIZARD
Constructor Detail |
---|
public LWPDOnePageDialog(java.lang.String wizardId, org.eclipse.jface.viewers.IStructuredSelection selection, org.eclipse.swt.widgets.Shell parentShell)
wizardId
- the qualified wizard idselection
- current workbench selectionshell
- a parent shellpublic LWPDOnePageDialog(java.lang.String wizardId, org.eclipse.jface.viewers.IStructuredSelection selection, org.eclipse.swt.widgets.Shell parentShell, int wizardType)
wizardId
- the qualified wizard idselection
- current workbench selectionshell
- a parent shellwizardType
- an int which is one of
public LWPDOnePageDialog(org.eclipse.jface.dialogs.IDialogPage dialogPage, org.eclipse.swt.widgets.Shell parentShell)
dialogPage
- a dialog page upon which to form the wizard pageshell
- a parent shellMethod Detail |
---|
protected void fillClientArea(org.eclipse.swt.widgets.Composite parent)
LWPDCommonDialog
fillClientArea
in class LWPDCommonDialog
parent
- the parent compositeprotected org.eclipse.swt.graphics.Image getTitleImage()
LWPDCommonDialog
getTitleImage
in class LWPDCommonDialog
protected java.lang.String getDialogTitle()
LWPDCommonDialog
getDialogTitle
in class LWPDCommonDialog
protected void validateDialog()
LWPDCommonDialog
LWPDCommonDialog.invalidateDialog(String)
should be called.
validateDialog
in class LWPDCommonDialog
protected boolean performDialogOperation(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
LWPDCommonDialog
LWPDCommonDialog.needsProgressMonitor()
must return true in order for the progress monitor
is visible.
performDialogOperation
in class LWPDCommonDialog
progressMonitor
- the progress monitor that is to be used to provide progress feedback to the user
public org.eclipse.jface.wizard.IWizardPage getCurrentPage()
getCurrentPage
in interface org.eclipse.jface.wizard.IWizardContainer
public void showPage(org.eclipse.jface.wizard.IWizardPage page)
showPage
in interface org.eclipse.jface.wizard.IWizardContainer
public void updateButtons()
updateButtons
in interface org.eclipse.jface.wizard.IWizardContainer
public void updateMessage()
updateMessage
in interface org.eclipse.jface.wizard.IWizardContainer
public void updateTitleBar()
updateTitleBar
in interface org.eclipse.jface.wizard.IWizardContainer
public void updateWindowTitle()
updateWindowTitle
in interface org.eclipse.jface.wizard.IWizardContainer
public void run(boolean fork, boolean cancelable, org.eclipse.jface.operation.IRunnableWithProgress runnable) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
run
in interface org.eclipse.jface.operation.IRunnableContext
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public org.eclipse.ui.IWorkbenchWizard getWizard()
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
LWPDCommonDialog
configureShell
in class LWPDCommonDialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |