UML

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

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.LifelineEditDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

Deprecated. Use the Tabbed Properties View instead

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

Dialog which will be drawn for the edition of a lifeline.


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
LifelineEditDialog(org.eclipse.uml2.uml.Lifeline life, org.eclipse.gef.EditDomain domain, org.eclipse.swt.widgets.Shell parentShell)
          Deprecated. Consructor
 
Method Summary
protected  void buttonPressed(int buttonId)
          Deprecated. Handle the "Create classifer" button
protected  void cancelPressed()
          Deprecated. Undo the
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
          Deprecated.  
protected  void createClassifierGroup(org.eclipse.swt.widgets.Composite parent)
          Deprecated. Create the view of the list of classifier
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
          Deprecated. Add updates
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Deprecated. create the area
protected  void createNewClassifierGroup(org.eclipse.swt.widgets.Composite parent)
          Deprecated. Create the view of the list of classifier
protected  java.util.ArrayList filterClassifiers(java.util.ArrayList list, java.lang.Class clazz)
          Deprecated. Filter a list of classifiers : only the instance of the specified class are kept.
 org.eclipse.gef.commands.Command getCommand()
          Deprecated. Return the command to update the lifeline
protected  void okPressed()
          Deprecated. Save the viewers datas before the dialogs disposing
protected  java.util.ArrayList sortClassifiers(java.util.ArrayList list)
          Deprecated. Sort the list of classifiers by their types.
protected  int updateClassifierNames()
          Deprecated. Update the list of classifier
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, 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

LifelineEditDialog

public LifelineEditDialog(org.eclipse.uml2.uml.Lifeline life,
                          org.eclipse.gef.EditDomain domain,
                          org.eclipse.swt.widgets.Shell parentShell)
Deprecated. 
Consructor

Parameters:
life - the lifeline to edit
domain - the edit domain
parentShell - the owning parent
Method Detail

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Deprecated. 
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)
Deprecated. 
Add updates

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

createClassifierGroup

protected void createClassifierGroup(org.eclipse.swt.widgets.Composite parent)
Deprecated. 
Create the view of the list of classifier

Parameters:
parent - the owning composite

createNewClassifierGroup

protected void createNewClassifierGroup(org.eclipse.swt.widgets.Composite parent)
Deprecated. 
Create the view of the list of classifier

Parameters:
parent - the owning composite

updateClassifierNames

protected int updateClassifierNames()
Deprecated. 
Update the list of classifier

Returns:
the index of the selected classifier

sortClassifiers

protected java.util.ArrayList sortClassifiers(java.util.ArrayList list)
Deprecated. 
Sort the list of classifiers by their types. First there are the classes, then the actors and the rest

Parameters:
list - the unsorted list of classifiers
Returns:
the sorted array list of classifiers

filterClassifiers

protected java.util.ArrayList filterClassifiers(java.util.ArrayList list,
                                                java.lang.Class clazz)
Deprecated. 
Filter a list of classifiers : only the instance of the specified class are kept.

Parameters:
list - the list of classifiers
clazz - the class type to filter
Returns:
the filtered classifiers

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Deprecated. 
create the area

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

buttonPressed

protected void buttonPressed(int buttonId)
Deprecated. 
Handle the "Create classifer" button

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

okPressed

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

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

cancelPressed

protected void cancelPressed()
Deprecated. 
Undo the

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

getCommand

public org.eclipse.gef.commands.Command getCommand()
Deprecated. 
Return the command to update the lifeline

Returns:
the lifeline command

UML

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