UML

org.topcased.modeler.uml.compositestructuresdiagram.common.dialog
Class ReferenceCollaborationDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.topcased.modeler.uml.compositestructuresdiagram.common.dialog.ReferenceCollaborationDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

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

A Dialog used to reference or create a 'Collaboration' object during the creation of a 'CollaborationUse'.


Nested Class Summary
 class ReferenceCollaborationDialog.CollaborationContentProvider
          This Content Provider displays contents of collaborations.
 
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
ReferenceCollaborationDialog(org.eclipse.uml2.uml.StructuredClassifier class_, org.eclipse.swt.widgets.Shell parentShell)
          Creates the Dialog window to select a Collaboration to associate with the current CollaborationUse.
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
          Overrides the initial method to allow the OK button to be created with a disabled status.
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Creates the Dialog area
protected  void createMainGroup(org.eclipse.swt.widgets.Composite parent)
          Creates the SWT Objects of the Dialog
 boolean getCreateCollaboration()
          Returns true if a collaboration should be created
 org.eclipse.uml2.uml.Collaboration getNewCollaboration()
          Returns the new collaboration
 java.lang.String getNewCollaborationName()
          Returns the name of the collaboration to create
protected  void okPressed()
           
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, 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

ReferenceCollaborationDialog

public ReferenceCollaborationDialog(org.eclipse.uml2.uml.StructuredClassifier class_,
                                    org.eclipse.swt.widgets.Shell parentShell)
Creates the Dialog window to select a Collaboration to associate with the current CollaborationUse.

Parameters:
class_ - the class that contains the State
parentShell - the parent 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)

createDialogArea

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

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

createMainGroup

protected void createMainGroup(org.eclipse.swt.widgets.Composite parent)
Creates the SWT Objects of the Dialog

Parameters:
parent - the parent Composite

getNewCollaboration

public org.eclipse.uml2.uml.Collaboration getNewCollaboration()
Returns the new collaboration

Returns:
a collaboration

getNewCollaborationName

public java.lang.String getNewCollaborationName()
Returns the name of the collaboration to create

Returns:
String

getCreateCollaboration

public boolean getCreateCollaboration()
Returns true if a collaboration should be created

Returns:
boolean

okPressed

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

createButtonsForButtonBar

protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Overrides the initial method to allow the OK button to be created with a disabled status.

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

UML

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