Class SourcePanel

    • Constructor Detail

      • SourcePanel

        public SourcePanel​(org.eclipse.swt.widgets.Composite parent,
                           Configuration configuration,
                           EventHandlersFilter filter,
                           org.eclipse.xtext.scoping.IGlobalScopeProvider globalScopeProvider,
                           IResourceLookup resourceLookup,
                           IBmEmfIndexManager indexManager,
                           IIndexSlicePredicateService slicePredicateService,
                           IFilterBySubsystemsManager filterBySubsystemsManager,
                           IDtProjectManager dtProjectManager)
        Constructor
        Parameters:
        parent - parent composite, cannot be null
        configuration - editor's configuration, cannot be null.
        filter - filter to edit, cannot be null
        globalScopeProvider - global scope provider, cannot be null
        resourceLookup - resource lookup, cannot be null
        indexManager - EMF index manager, cannot be null
        slicePredicateService - the slice predicate service, cannot be null
        filterBySubsystemsManager - the filter by subsystems manager, cannot be null
        dtProjectManager - the DT project manager, cannot be null
    • Method Detail

      • getViewer

        public Viewer getViewer()
        Returns panel viewer.
        Returns:
        panel viewer. Can't return null.
      • getSelectedItems

        public Collection<TypeItem> getSelectedItems()
        Returns selected in viewer items.
        Returns:
        selected in viewer items. Can't return null.
      • setState

        protected void setState​(Object element,
                                boolean checked)
        Description copied from class: AbstractViewerPanel
        Sets node check state and updates its subtree and parents.
        Overrides:
        setState in class AbstractViewerPanel
        Parameters:
        element - the target node, can not be null
        checked - the check value
      • createIsCompositeCheckBox

        protected void createIsCompositeCheckBox()
        Creates is composite checkbox.