Class AbstractSubsystemsPanel

java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com._1c.g5.v8.dt.ui.dialog.AbstractViewerPanel
com._1c.g5.v8.dt.md.ui.dialogs.AbstractSubsystemsPanel
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public abstract class AbstractSubsystemsPanel extends AbstractViewerPanel
Basic panel for populating filter by subsystems.
  • Constructor Details

    • AbstractSubsystemsPanel

      public AbstractSubsystemsPanel(org.eclipse.swt.widgets.Composite parent, IFilterBySubsystemsManager filterBySubsystemsManager, boolean oneProjectMode, FilterBySubsystemsSettings filterSettings, IDtProjectManager dtProjectManager)
      Creates new instance of AbstractSubsystemsPanel.
      Parameters:
      parent - the parent composite, cannot be null
      filterBySubsystemsManager - the filter by subsystems manager, cannot be null
      oneProjectMode - whether to show only one project
      resourceLookup - the resource lookup, cannot be null
      filterSettings - initial filter settings, cannot be null
      dtProjectManager - the DT project manager, cannot be null
  • Method Details

    • setIncludeObjectsFromSubordinateSubsystems

      public void setIncludeObjectsFromSubordinateSubsystems(boolean includeObjectsFromSubordinateSubsystems)
      Sets whether to include objects from subordinate subsystems.
      Parameters:
      includeObjectsFromSubordinateSubsystems - whether to include objects from subordinate subsystems
    • setIncludeObjectsFromParentSubsystems

      public void setIncludeObjectsFromParentSubsystems(boolean includeObjectsFromParentSubsystems)
      Sets whether to include objects from parent subsystems.
      Parameters:
      includeObjectsFromParentSubsystems - whether to include objects from parent subsystems
    • addViewerFilter

      public void addViewerFilter(ViewerFilter filter)
      Description copied from class: AbstractViewerPanel
      Adds filter to viewer.
      Overrides:
      addViewerFilter in class AbstractViewerPanel
      Parameters:
      filter - the viewer filter, can not be null
    • removeViewerFilter

      public void removeViewerFilter(ViewerFilter filter)
      Description copied from class: AbstractViewerPanel
      Removes viewer filter.
      Overrides:
      removeViewerFilter in class AbstractViewerPanel
      Parameters:
      filter - the filter, can not be null
    • setCheckedElements

      public void setCheckedElements(Object... elements)
      Description copied from class: AbstractViewerPanel
      Sets the given elements as elements.
      Overrides:
      setCheckedElements in class AbstractViewerPanel
      Parameters:
      elements - the given elements, can not be null
    • getVisibleItemData

      public List<Object> getVisibleItemData()
      Returns data of visible items.
      Returns:
      list of data of visible items, never null
    • saveFilterSettings

      public void saveFilterSettings()
      Saves filter settings.
    • changeActionEnable

      public void changeActionEnable()
      Description copied from class: AbstractViewerPanel
      Changes actions enable state.
      Overrides:
      changeActionEnable in class AbstractViewerPanel
    • createContentProvider

      protected abstract ITreeContentProvider createContentProvider()
      Creates the tree content provider.
      Returns:
      the tree content provider, never null
    • initViewer

      protected void initViewer(Object input)
      Description copied from class: AbstractViewerPanel
      Inits viewer properties.
      Specified by:
      initViewer in class AbstractViewerPanel
      Parameters:
      input - the viewer input, may be null
    • setState

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

      protected void checkAll(boolean state)
      Description copied from class: AbstractViewerPanel
      Checks all elements.
      Overrides:
      checkAll in class AbstractViewerPanel
      Parameters:
      state - the check state
    • initToolbarActions

      protected void initToolbarActions()
      Description copied from class: AbstractViewerPanel
      Inits toolbar actions.
      Overrides:
      initToolbarActions in class AbstractViewerPanel
    • updateCurrentModel

      protected void updateCurrentModel(Object element, boolean checked)
      Updates element with new checked state.
      Parameters:
      element - the element to update, cannot be null
      checked - the new checked state