Package com._1c.g5.v8.dt.md.ui.dialogs
Class TypeLinkDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
com._1c.g5.v8.dt.md.ui.dialogs.TypeLinkDialog
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class TypeLinkDialog
extends org.eclipse.jface.dialogs.Dialog
This dialog allows user to compose a
TypeLink
object.
Type links consist of a dataPath (string value) and a linkItem (int value).
Data paths represent a full name (or symbolic link) for attribute
(and also resource and dimensions for basic register objects).-
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, resizeHasOccurred
-
Constructor Summary
ConstructorsConstructorDescriptionTypeLinkDialog
(org.eclipse.swt.widgets.Shell parentShell, ILabelProvider labelProvider, Collection<? extends Object> input, Object selectedObject, int link) Creates a newTypeLinkDialog
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createButtonsForButtonBar
(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.Control
createDialogArea
(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.graphics.Point
Returns 350 x 350int
getLink()
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, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, 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
-
Constructor Details
-
TypeLinkDialog
public TypeLinkDialog(org.eclipse.swt.widgets.Shell parentShell, ILabelProvider labelProvider, Collection<? extends Object> input, Object selectedObject, int link) Creates a newTypeLinkDialog
.- Parameters:
parentShell
- the shell.labelProvider
- the label provider for given input.input
- the input, a collection of objects.selectedObject
- the selected object.link
- the link item.
-
-
Method Details
-
getSelectedObject
- Returns:
- the selected type link object.
-
getLink
public int getLink()- Returns:
- the link.
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
createButtonsForButtonBar
in classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize()Returns 350 x 350- Overrides:
getInitialSize
in classorg.eclipse.jface.dialogs.Dialog
-