org.eclipse.ocl.examples.modelregistry.ui.properties
Class RegistrationDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.jface.dialogs.StatusDialog
                  extended by org.eclipse.ocl.examples.modelregistry.ui.properties.RegistrationDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class RegistrationDialog
extends org.eclipse.jface.dialogs.StatusDialog

Dialog to enter/edit a registration


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, 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, resizeHasOccurred
 
Constructor Summary
RegistrationDialog(org.eclipse.swt.widgets.Shell parent, AccessorRegistry<?> accessorRegistry, Registration<?> registration, java.util.List<Registration<?>> currentRegistrationModel, FileHandle fileHandle)
           
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  void createAccessorNameControls(org.eclipse.swt.widgets.Composite parent)
           
protected  void createBrowseFileSystemButton(org.eclipse.swt.widgets.Composite parent)
           
protected  void createBrowseRegisteredPackagesButton(org.eclipse.swt.widgets.Composite parent)
           
protected  void createBrowseWorkspaceButton(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  void createResourceURIControls(org.eclipse.swt.widgets.Composite parent, int columnsPerLine)
           
protected  void createSerializationControls(org.eclipse.swt.widgets.Composite parent)
           
protected  void doValidation()
           
 Registration<?> getRegistration()
           
protected  void setShellStyle(int newShellStyle)
           
 
Methods inherited from class org.eclipse.jface.dialogs.StatusDialog
create, createButtonBar, createButtonsForButtonBar, getStatus, setImage, setStatusLineAboveButtons, setTitle, updateButtonsEnableState, updateStatus
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, 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, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationDialog

public RegistrationDialog(org.eclipse.swt.widgets.Shell parent,
                          AccessorRegistry<?> accessorRegistry,
                          Registration<?> registration,
                          java.util.List<Registration<?>> currentRegistrationModel,
                          FileHandle fileHandle)
Method Detail

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Overrides:
configureShell in class org.eclipse.jface.dialogs.StatusDialog

createAccessorNameControls

protected void createAccessorNameControls(org.eclipse.swt.widgets.Composite parent)

createBrowseFileSystemButton

protected void createBrowseFileSystemButton(org.eclipse.swt.widgets.Composite parent)

createBrowseRegisteredPackagesButton

protected void createBrowseRegisteredPackagesButton(org.eclipse.swt.widgets.Composite parent)

createBrowseWorkspaceButton

protected void createBrowseWorkspaceButton(org.eclipse.swt.widgets.Composite parent)

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog

createResourceURIControls

protected void createResourceURIControls(org.eclipse.swt.widgets.Composite parent,
                                         int columnsPerLine)

createSerializationControls

protected void createSerializationControls(org.eclipse.swt.widgets.Composite parent)

doValidation

protected void doValidation()

getRegistration

public Registration<?> getRegistration()

setShellStyle

protected void setShellStyle(int newShellStyle)
Overrides:
setShellStyle in class org.eclipse.jface.window.Window