Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected 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 createFilter()  
      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 getDialogSettings()  
      String getElementName​(Object item)  
      protected Comparator<com._1c.g5.v8.dt.md.ui.dialogs.OpenMdObjectSelectionDialog.ObjectDescriptionPair> getItemsComparator()  
      protected void setResult​(List newResult)  
      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 Detail

      • 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 on
        multy - indicates whether dialog allows to select more than one position in its list of items
        symbolicLinkLocalizer - the symbolic link localizer for model object names, can not be null
    • Method Detail

      • getElementName

        public String getElementName​(Object item)
        Specified by:
        getElementName in class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
      • setResult

        protected void setResult​(List newResult)
        Overrides:
        setResult in class org.eclipse.ui.dialogs.SelectionDialog
      • createExtendedContentArea

        protected org.eclipse.swt.widgets.Control createExtendedContentArea​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createExtendedContentArea in class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
      • configureShell

        protected void configureShell​(org.eclipse.swt.widgets.Shell newShell)
        Overrides:
        configureShell in class org.eclipse.ui.dialogs.SelectionStatusDialog
      • getDialogSettings

        protected org.eclipse.jface.dialogs.IDialogSettings getDialogSettings()
        Specified by:
        getDialogSettings in class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
      • validateItem

        protected org.eclipse.core.runtime.IStatus validateItem​(Object item)
        Specified by:
        validateItem in class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
      • createFilter

        protected org.eclipse.ui.dialogs.FilteredItemsSelectionDialog.ItemsFilter createFilter()
        Specified by:
        createFilter in class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
      • getItemsComparator

        protected Comparator<com._1c.g5.v8.dt.md.ui.dialogs.OpenMdObjectSelectionDialog.ObjectDescriptionPair> getItemsComparator()
        Specified by:
        getItemsComparator in class org.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 class org.eclipse.ui.dialogs.FilteredItemsSelectionDialog
        Throws:
        org.eclipse.core.runtime.CoreException