Class ChecksViewerControl

java.lang.Object
com._1c.g5.v8.dt.ui.validation.ChecksViewerControl
Direct Known Subclasses:
ChecksViewerPreferencesControl

public abstract class ChecksViewerControl extends Object
Base control class for vewing/selecting validation cheks,
  • Constructor Details

    • ChecksViewerControl

      public ChecksViewerControl(ChecksViewerProvider checksViewerProvider)
      Creates a new instance.
      Parameters:
      checksViewerProvider - Cheks viewer provider, cannot be null
  • Method Details

    • isTreeViewerInitialized

      public boolean isTreeViewerInitialized()
      Indicates that check tree viewer is created.
      Returns:
      true if tree viewer is initialized
    • setSelection

      public void setSelection(ISelection selection)
      Sets a new selection for this viewer and optionally makes it visible.
      Parameters:
      selection - the new selection, can be null
      See Also:
    • setTreeChecked

      public void setTreeChecked(boolean checked)
      Sets check state for all elements.
      Parameters:
      checked - checked
      See Also:
    • refresh

      public void refresh()
      Refreshes this viewer starting with the given element.
      See Also:
    • refresh

      public void refresh(Object element, boolean updateLabels)
      Refreshes this viewer starting with the given element. Labels are updated as described in refresh(boolean updateLabels).
      Parameters:
      element - the element, never null
      updateLabels - true to update labels for existing elements, false to only update labels as needed, assuming that labels for existing elements are unchanged.
      See Also:
    • setDirty

      public void setDirty(boolean dirty)
      Sets the dirty state
      Parameters:
      dirty - the dirty to set
      See Also:
    • isDirty

      public boolean isDirty()
      Returns the dirty state
      Returns:
      the dirty
      See Also:
    • getCheckedElements

      public Object[] getCheckedElements()
      Returns a list of checked elements in this viewer's tree, including currently hidden ones that are marked as checked but are under a collapsed ancestor.
      Returns:
      the array of checked elements, never null
      See Also:
    • getChecksViewerProvider

      public ChecksViewerProvider getChecksViewerProvider()
      Returns check viewer provider
      Returns:
      ChecksViewerProvider, never null
    • getSelectedCheckObjects

      public org.eclipse.core.databinding.observable.value.WritableValue<ChecksTreeProvider.ChecksTreeNode> getSelectedCheckObjects()
      Returns writable selected check objects
      Returns:
      selected check objects, never null
    • getControl

      public org.eclipse.swt.widgets.Control getControl(org.eclipse.swt.widgets.Composite parent)
      Provides the control with contents.
      Parameters:
      parent - the parent composite, cannot be null
      Returns:
      Control, never null
    • createHeader

      protected void createHeader(org.eclipse.swt.widgets.Composite parent)
      Creates header part of the control
      Parameters:
      parent - the parent composite, cannot be null
    • updateIdHighlight

      protected void updateIdHighlight()
      Updates highlights
    • createAdditionalControls

      protected void createAdditionalControls(org.eclipse.swt.widgets.Composite parent)
      Creates additional controls at the end of the contents.
      Parameters:
      parent - the parent composite, cannot be null