Package com._1c.g5.v8.dt.md.ui.dialogs
Class OpenMdObjectSelectionDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.ui.dialogs.SelectionDialog
org.eclipse.ui.dialogs.SelectionStatusDialog
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
com._1c.g5.v8.dt.md.ui.dialogs.OpenMdObjectSelectionDialog
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class OpenMdObjectSelectionDialog
extends org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
Dialog for search and open exist metadata object in workspace
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.AbstractContentProvider, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.SelectionHistory
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.ui.dialogs.FilteredItemsSelectionDialog
CARET_BEGINNING, FULL_SELECTION, NONE
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
ConstructorsConstructorDescriptionOpenMdObjectSelectionDialog
(org.eclipse.swt.widgets.Shell shell, boolean multy, ISymbolicLinkLocalizer symbolicLinkLocalizer) Constructor create a new instance of dialog -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureShell
(org.eclipse.swt.widgets.Shell newShell) protected org.eclipse.swt.widgets.Control
createExtendedContentArea
(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter
protected void
fillContentProvider
(org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.AbstractContentProvider contentProvider, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter itemsFilter, org.eclipse.core.runtime.IProgressMonitor progressMonitor) protected org.eclipse.jface.dialogs.IDialogSettings
getElementName
(Object item) protected Comparator<com._1c.g5.v8.dt.md.ui.dialogs.OpenMdObjectSelectionDialog.ObjectDescriptionPair>
protected void
protected org.eclipse.core.runtime.IStatus
validateItem
(Object item) Methods inherited from class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
accessedHistoryItem, addListFilter, applyFilter, close, computeResult, create, createDialogArea, fillContextMenu, fillViewMenu, getDialogBoundsSettings, getInitialPattern, getPatternControl, getSelectedItems, getSelectionHistory, getStyledStringHighlighter, handleDoubleClick, handleSelected, isDuplicateElement, isHistoryElement, okPressed, refresh, reloadCache, removeHistoryItem, restoreDialog, scheduleProgressMessageRefresh, scheduleRefresh, setDetailsLabelProvider, setInitialPattern, setInitialPattern, setListLabelProvider, setListSelectionLabelDecorator, setSelectionHistory, setSeparatorLabel, setStyledStringHighlighter, storeDialog, updateProgressLabel, updateStatus
Methods inherited from class org.eclipse.ui.dialogs.SelectionStatusDialog
createButtonBar, getFirstResult, setImage, setResult, setStatusLineAboveButtons, updateButtonsEnableState
Methods inherited from class org.eclipse.ui.dialogs.SelectionDialog
createButtonsForButtonBar, createMessageArea, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setSelectionResult, setTitle
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, 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, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
OpenMdObjectSelectionDialog
public OpenMdObjectSelectionDialog(org.eclipse.swt.widgets.Shell shell, boolean multy, ISymbolicLinkLocalizer symbolicLinkLocalizer) Constructor create a new instance of dialog- Parameters:
shell
- shell to parent the dialog onmulty
- indicates whether dialog allows to select more than one position in its list of itemssymbolicLinkLocalizer
- the symbolic link localizer for model object names, can not benull
-
-
Method Details
-
getElementName
- Specified by:
getElementName
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
-
setResult
- Overrides:
setResult
in classorg.eclipse.ui.dialogs.SelectionDialog
-
createExtendedContentArea
protected org.eclipse.swt.widgets.Control createExtendedContentArea(org.eclipse.swt.widgets.Composite parent) - Specified by:
createExtendedContentArea
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
configureShell
in classorg.eclipse.ui.dialogs.SelectionStatusDialog
-
getDialogSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogSettings()- Specified by:
getDialogSettings
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
-
validateItem
- Specified by:
validateItem
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
-
createFilter
protected org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter createFilter()- Specified by:
createFilter
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
-
getItemsComparator
protected Comparator<com._1c.g5.v8.dt.md.ui.dialogs.OpenMdObjectSelectionDialog.ObjectDescriptionPair> getItemsComparator()- Specified by:
getItemsComparator
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
-
fillContentProvider
protected void fillContentProvider(org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.AbstractContentProvider contentProvider, org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter itemsFilter, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws org.eclipse.core.runtime.CoreException - Specified by:
fillContentProvider
in classorg.eclipse.ui.dialogs.FilteredItemsSelectionDialog
- Throws:
org.eclipse.core.runtime.CoreException
-