UML

org.topcased.modeler.uml.sequencediagram.dialogs
Class ClassifierCreateDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.topcased.modeler.uml.sequencediagram.dialogs.ClassifierCreateDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

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

Dialog to create a classifier in the model This dialog will offer the choice of created type :
- Actor
- Class
and the choice where ut will be created (in which package).


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
 
Constructor Summary
ClassifierCreateDialog(org.eclipse.uml2.uml.Model m, org.eclipse.swt.widgets.Shell parentShell)
          Constructor
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Create the complete area
protected  void createNameEntry(org.eclipse.swt.widgets.Composite parent)
          Create the name input entry
protected  void createPackageGroup(org.eclipse.swt.widgets.Composite parent)
          Create the list of package
protected  void createTypeGroup(org.eclipse.swt.widgets.Composite parent)
          Create the area of the type buttons
 org.eclipse.gef.commands.Command getCommand()
          Return the creation command
 org.eclipse.uml2.uml.Classifier getCreatedClassifier()
          Return the created Classifier (Class or Actor)
protected  void okPressed()
          Save the viewers datas before the dialogs disposing
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
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, handleShellCloseEvent, 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

ClassifierCreateDialog

public ClassifierCreateDialog(org.eclipse.uml2.uml.Model m,
                              org.eclipse.swt.widgets.Shell parentShell)
Constructor

Parameters:
m - the UML2 root element
parentShell - the owning shell
Method Detail

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Overrides:
configureShell in class org.eclipse.jface.window.Window
See Also:
Window.configureShell(org.eclipse.swt.widgets.Shell)

createContents

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

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Create the complete area

Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)

createNameEntry

protected void createNameEntry(org.eclipse.swt.widgets.Composite parent)
Create the name input entry

Parameters:
parent - the owning area

createTypeGroup

protected void createTypeGroup(org.eclipse.swt.widgets.Composite parent)
Create the area of the type buttons

Parameters:
parent - the owning area

createPackageGroup

protected void createPackageGroup(org.eclipse.swt.widgets.Composite parent)
Create the list of package

Parameters:
parent - the owning area

okPressed

protected void okPressed()
Save the viewers datas before the dialogs disposing

Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.okPressed()

getCreatedClassifier

public org.eclipse.uml2.uml.Classifier getCreatedClassifier()
Return the created Classifier (Class or Actor)

Returns:
Classifier

getCommand

public org.eclipse.gef.commands.Command getCommand()
Return the creation command

Returns:
the command

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.