UML

org.topcased.modeler.uml.classdiagram.dialogs
Class AssociationEditDialog

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

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

Updating association parameters


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
AssociationEditDialog(org.eclipse.uml2.uml.Association assoc, org.eclipse.swt.widgets.Shell parentShell)
          Create the dialog for a given association
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
          Set the shell title
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Create the Dialog area
protected  void createOperationGroup(org.eclipse.swt.widgets.Composite parent)
          Creates the group
 java.util.Map getAssociationData()
          Return all the informations concerning an Association
protected  void okPressed()
          Save the datas before the widgets are disposed
protected  boolean validateFirstEndGroup()
          Check if the informations contained in the Group are valid
protected  boolean validateSecondEndGroup()
          Check if the informations contained in the Group are valid
 
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, createContents, 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

AssociationEditDialog

public AssociationEditDialog(org.eclipse.uml2.uml.Association assoc,
                             org.eclipse.swt.widgets.Shell parentShell)
Create the dialog for a given association

Parameters:
assoc - the association to edit
parentShell - the owning shell
Method Detail

configureShell

protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
Set the shell title

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

createDialogArea

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

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

createOperationGroup

protected void createOperationGroup(org.eclipse.swt.widgets.Composite parent)
Creates the group

Parameters:
parent - the parent Composite

validateFirstEndGroup

protected boolean validateFirstEndGroup()
Check if the informations contained in the Group are valid

Returns:
true if it is OK

validateSecondEndGroup

protected boolean validateSecondEndGroup()
Check if the informations contained in the Group are valid

Returns:
true if it is OK

okPressed

protected void okPressed()
Save the datas before the widgets are disposed

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

getAssociationData

public java.util.Map getAssociationData()
Return all the informations concerning an Association

Returns:
a Map

UML

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