|
UML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.topcased.modeler.uml.compositestructuresdiagram.common.dialog.ReferencePropertyDialog
public class ReferencePropertyDialog
A Dialog used to create a new Type or reference an existing Type during the creation of a Property.
| Nested Class Summary | |
|---|---|
class |
ReferencePropertyDialog.TypeContentProvider
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 | |
|---|---|
protected java.lang.String |
type
|
| 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 | |
|---|---|
ReferencePropertyDialog(org.eclipse.uml2.uml.StructuredClassifier structuredClass_,
org.eclipse.swt.widgets.Shell parentShell_)
Creates the Dialog window to select a Classifier to associate with the current Property or Port. |
|
| 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 |
getCreateType()
Returns true if a new Type should be created |
java.lang.String |
getNewTypeName()
Returns the name of the new created Type |
org.eclipse.uml2.uml.Type |
getType()
Returns the 'Type' |
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 |
| Field Detail |
|---|
protected java.lang.String type
| Constructor Detail |
|---|
public ReferencePropertyDialog(org.eclipse.uml2.uml.StructuredClassifier structuredClass_,
org.eclipse.swt.widgets.Shell parentShell_)
class - the class that contains the StateparentShell - the parent Shell| Method Detail |
|---|
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
configureShell in class org.eclipse.jface.window.WindowWindow.configureShell(org.eclipse.swt.widgets.Shell)protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea in class org.eclipse.jface.dialogs.DialogDialog.createDialogArea(org.eclipse.swt.widgets.Composite)protected void createMainGroup(org.eclipse.swt.widgets.Composite parent)
parent - the parent Compositepublic org.eclipse.uml2.uml.Type getType()
public java.lang.String getNewTypeName()
public boolean getCreateType()
true if a new Type should be created
protected void okPressed()
okPressed in class org.eclipse.jface.dialogs.DialogDialog.okPressed()protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonsForButtonBar in class org.eclipse.jface.dialogs.DialogDialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
|
UML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.