com.pvx.ooadide.views.nomads
Class NewNomadsObjectDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by com.pvx.ooadide.views.nomads.NewNomadsObjectDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class NewNomadsObjectDialog
extends org.eclipse.jface.dialogs.Dialog


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, 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
NewNomadsObjectDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, java.lang.String dialogMessage, java.lang.String initialValue, org.eclipse.jface.dialogs.IInputValidator validator)
          Creates an input dialog with OK and Cancel buttons.
 
Method Summary
 java.lang.String getObjectType()
           
 java.lang.String getValue()
          Returns the string typed into this input dialog.
 void setErrorMessage(java.lang.String errorMessage)
          Sets or clears the error message.
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewNomadsObjectDialog

public NewNomadsObjectDialog(org.eclipse.swt.widgets.Shell parentShell,
                             java.lang.String dialogTitle,
                             java.lang.String dialogMessage,
                             java.lang.String initialValue,
                             org.eclipse.jface.dialogs.IInputValidator validator)
Creates an input dialog with OK and Cancel buttons. Note that the dialog will have no visual representation (no widgets) until it is told to open.

Note that the open method blocks for input dialogs.

Parameters:
parentShell - the parent shell, or null to create a top-level shell
dialogTitle - the dialog title, or null if none
dialogMessage - the dialog message, or null if none
initialValue - the initial input value, or null if none (equivalent to the empty string)
validator - an input validator, or null if none
Method Detail

getValue

public java.lang.String getValue()
Returns the string typed into this input dialog.

Returns:
the input string

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Sets or clears the error message. If not null, the OK button is disabled.

Parameters:
errorMessage - the error message, or null to clear
Since:
3.0

getObjectType

public java.lang.String getObjectType()