Package com._1c.g5.v8.dt.ui.dialog
Class BipartiteElementsSelectionDialog
- java.lang.Object
- 
- org.eclipse.jface.window.Window
- 
- org.eclipse.jface.dialogs.Dialog
- 
- org.eclipse.jface.dialogs.TrayDialog
- 
- org.eclipse.jface.dialogs.TitleAreaDialog
- 
- com._1c.g5.v8.dt.ui.dialog.ItemSelectionDialog
- 
- com._1c.g5.v8.dt.ui.dialog.BipartiteElementsSelectionDialog
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- ISwtSelectionDialog,- org.eclipse.jface.window.IShellProvider
 
 public class BipartiteElementsSelectionDialog extends ItemSelectionDialog General dialog for bipartite (or two way) selecting elements (e.g from one list to another list) In order to set elements provider IStructuredSelection, label and content providers. Note that content provider should return all elements that are available and dialog will remove the selected elements from available ones, so there will be no intersections.
- 
- 
Field Summary- 
Fields inherited from class com._1c.g5.v8.dt.ui.dialog.ItemSelectionDialogcontentProvider, context, dialogValidator, labelProvider, multiselect, selection
 - 
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialogDLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
 - 
Fields inherited from class org.eclipse.jface.dialogs.DialogblockedHandler, 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
 
- 
 - 
Constructor SummaryConstructors Constructor Description BipartiteElementsSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, Object context, IStructuredSelection selection, ILabelProvider labelProvider, IContentProvider contentProvider, String windowTitle, boolean hasPriorityButtons, boolean editable)Default constructor.BipartiteElementsSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, Object context, IStructuredSelection selection, ILabelProvider labelProvider, IContentProvider contentProvider, IElementComparer comparer, String windowTitle, boolean hasPriorityButtons, boolean editable)Default constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.ControlcreateDialogControls(org.eclipse.swt.widgets.Composite parent)Creates dialog controls and handlersprotected voidupdateSelection()Updates selection that will be returned by getSelection()- 
Methods inherited from class com._1c.g5.v8.dt.ui.dialog.ItemSelectionDialogconfigureShell, createButtonBar, createDialogArea, getInitialSize, getResult, getSelection, okPressed, setDialogValidator
 - 
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialogcreateContents, getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
 - 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialogcloseTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 - 
Methods inherited from class org.eclipse.jface.dialogs.DialogapplyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 - 
Methods inherited from class org.eclipse.jface.window.WindowcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com._1c.g5.v8.dt.ui.dialog.ISwtSelectionDialogopen
 
- 
 
- 
- 
- 
Constructor Detail- 
BipartiteElementsSelectionDialogpublic BipartiteElementsSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, Object context, IStructuredSelection selection, ILabelProvider labelProvider, IContentProvider contentProvider, String windowTitle, boolean hasPriorityButtons, boolean editable)Default constructor.- Parameters:
- parentShell- - parent shell
- context- - context owner of item
- selection- - IStructuredSelection that contains selected item (s)
- labelProvider- - label provider for viewer
- contentProvider- - content provider for viewer
- windowTitle- - title of the window
- hasPriorityButtons- - flag, indicating that dialog supports prioritizing buttons
- editable- - the editable state,- trueif this model is editable,- falseotherwise
 
 - 
BipartiteElementsSelectionDialogpublic BipartiteElementsSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, Object context, IStructuredSelection selection, ILabelProvider labelProvider, IContentProvider contentProvider, IElementComparer comparer, String windowTitle, boolean hasPriorityButtons, boolean editable)Default constructor.- Parameters:
- parentShell- - parent shell
- context- - context owner of item
- selection- - IStructuredSelection that contains selected item (s)
- labelProvider- - label provider for viewer
- contentProvider- - content provider for viewer
- comparer- - the- IElementComparerinstance of- null.
- windowTitle- - title of the window
- hasPriorityButtons- - flag, indicating that dialog supports prioritizing buttons
- editable- - the editable state,- trueif this model is editable,- falseotherwise
 
 
- 
 - 
Method Detail- 
updateSelectionprotected void updateSelection() Description copied from class:ItemSelectionDialogUpdates selection that will be returned by getSelection()- Specified by:
- updateSelectionin class- ItemSelectionDialog
 
 - 
createDialogControlsprotected org.eclipse.swt.widgets.Control createDialogControls(org.eclipse.swt.widgets.Composite parent) Description copied from class:ItemSelectionDialogCreates dialog controls and handlers- Specified by:
- createDialogControlsin class- ItemSelectionDialog
- Parameters:
- parent- - parent composite
- Returns:
- dialog area control
 
 
- 
 
-