Class EmfTableProperties<T,V>

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.descriptors.TableProperties<T,V,EMFTable<V>>
com.amalgamasimulation.desktop.ui.editor.sections.descriptors.EmfTableProperties<T,V>
Type Parameters:
T - the type of the container holding table data
V - the type of elements displayed in the table (typically EMF objects)

public class EmfTableProperties<T,V> extends TableProperties<T,V,EMFTable<V>>
A specialized builder class for configuring properties of EMF-based SWT Table controls. Extends TableProperties to add EMF-specific functionality including EStructuralFeature binding, observable lists, and double-click message handling. Note: This class is not intended to be used directly by end users. It serves as a specialized configuration class for internal framework components working with EMF models.
Author:
Ionov Ivan
  • Constructor Details

    • EmfTableProperties

      public EmfTableProperties()
  • Method Details

    • getElementsFeature

      public org.eclipse.emf.ecore.EStructuralFeature getElementsFeature()
      Returns the EStructuralFeature used to extract elements from the container.
      Returns:
      the EStructuralFeature for element extraction
    • elementsFeature

      public EmfTableProperties<T,V> elementsFeature(org.eclipse.emf.ecore.EStructuralFeature elementsFeature)
      Sets the EStructuralFeature used to extract elements from the container.
      Parameters:
      elementsFeature - the EStructuralFeature for element extraction
      Returns:
      this EmfTableProperties instance for method chaining
    • getObservableFeatures

      public org.eclipse.emf.ecore.EStructuralFeature[] getObservableFeatures()
      Returns the array of EStructuralFeatures that should be observed for changes.
      Returns:
      an array of observable EStructuralFeatures
    • observableFeatures

      public EmfTableProperties<T,V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures)
      Sets the EStructuralFeatures that should be observed for changes.
      Parameters:
      observableFeatures - variable array of EStructuralFeatures to observe
      Returns:
      this EmfTableProperties instance for method chaining
    • isSendHighlightMessageOnDoubleClick

      public boolean isSendHighlightMessageOnDoubleClick()
      Returns whether double-click events should send highlight messages.
      Returns:
      true if double-click should send highlight messages, false otherwise
    • setSendHighlightMessageOnDoubleClick

      public void setSendHighlightMessageOnDoubleClick(boolean sendHighlightMessageOnDoubleClick)
      Sets whether double-click events should send highlight messages.
      Parameters:
      sendHighlightMessageOnDoubleClick - true to enable highlight messages on double-click
    • isSendNavigateMessageOnDoubleClick

      public boolean isSendNavigateMessageOnDoubleClick()
      Returns whether double-click events should send navigate messages.
      Returns:
      true if double-click should send navigate messages, false otherwise
    • setSendNavigateMessageOnDoubleClick

      public void setSendNavigateMessageOnDoubleClick(boolean sendNavigateMessageOnDoubleClick)
      Sets whether double-click events should send navigate messages.
      Parameters:
      sendNavigateMessageOnDoubleClick - true to enable navigate messages on double-click
    • getElements

      public org.eclipse.core.databinding.observable.list.IObservableList<V> getElements()
      Returns the observable list of elements for the table.
      Returns:
      the IObservableList containing table elements
    • elements

      public void elements(org.eclipse.core.databinding.observable.list.IObservableList<V> elements)
      Sets the observable list of elements for the table.
      Parameters:
      elements - the IObservableList containing table elements