SysML

org.topcased.modeler.sysml.dialogs
Class DefineProfileDialog

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

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


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
static java.lang.String PROFILE_NAME
          th ID of the profile name
 
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
DefineProfileDialog(org.eclipse.uml2.uml.Profile prof, org.eclipse.swt.widgets.Shell parentShell)
          Create the dialog for a given profile
 
Method Summary
protected  void configureShell(org.eclipse.swt.widgets.Shell newShell)
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Create the Dialog area
protected  void createProfileGroup(org.eclipse.swt.widgets.Composite parent)
          Creates the group
 java.util.Map getData()
          Return a map containing property data that may changed
 org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
          Return the label provider
 java.util.Map getOldData()
          Return a map containing old data
protected  java.util.List getReferencedMetaClass(java.util.List currentValues)
          Dialog for metaclasses
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, 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
 

Field Detail

PROFILE_NAME

public static final java.lang.String PROFILE_NAME
th ID of the profile name

See Also:
Constant Field Values
Constructor Detail

DefineProfileDialog

public DefineProfileDialog(org.eclipse.uml2.uml.Profile prof,
                           org.eclipse.swt.widgets.Shell parentShell)
Create the dialog for a given profile

Parameters:
prof - the profile to edit
parentShell - the owing 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)
Create the Dialog area

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

createProfileGroup

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

Parameters:
parent - the parent Composite

getLabelProvider

public org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
Return the label provider

Returns:
the LabelProvider

getReferencedMetaClass

protected java.util.List getReferencedMetaClass(java.util.List currentValues)
Dialog for metaclasses

Parameters:
currentValues - this the current select value
Returns:
the new selection as a List

okPressed

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

getData

public java.util.Map getData()
Return a map containing property data that may changed

Returns:
a Map

getOldData

public java.util.Map getOldData()
Return a map containing old data

Returns:
a Map

SysML

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