Class AbstractLayoutProvider

    • Constructor Detail

      • AbstractLayoutProvider

        public AbstractLayoutProvider()
    • Method Detail

      • isMultiLine

        protected static boolean isMultiLine​(VDomainModelReference domainModelReference,
                                             org.eclipse.emf.ecore.EObject domainModel)
        Checks whether a setting is set to multiline.
        Parameters:
        domainModelReference - the VDomainModelReference pointing to the feature to check
        domainModel - the root EObject of the domain model reference
        Returns:
        true if multiline, false otherwise
        Since:
        1.6
      • getColumnLayout

        public org.eclipse.swt.widgets.Layout getColumnLayout​(int numColumns,
                                                              boolean equalWidth,
                                                              org.eclipse.swt.graphics.Point margins)
        Specified by:
        getColumnLayout in interface LayoutProvider
        Parameters:
        numColumns - the number of columns to create
        equalWidth - whether the columns should be equal width
        margins - the margins of the layout
        Returns:
        the layout to use
        Since:
        1.7