Class CompositeFactory


  • public final class CompositeFactory
    extends java.lang.Object
    Author:
    Eugen Neufeld
    • Method Detail

      • getSelectModelClassComposite

        public static SelectionComposite<org.eclipse.jface.viewers.TreeViewer> getSelectModelClassComposite​(java.util.Collection<org.eclipse.emf.ecore.EPackage> unsupportedEPackages,
                                                                                                            java.util.Collection<org.eclipse.emf.ecore.EPackage> filteredEPackages,
                                                                                                            java.util.Collection<org.eclipse.emf.ecore.EClass> filteredEClasses)
        Creates a SelectionComposite to select an EClass.
        Parameters:
        unsupportedEPackages - EPackages that are not supported and will not be shown
        filteredEPackages - EPackages to be shown
        filteredEClasses - EClasses to be shown
        Returns:
        SelectionComposite
      • getTableSelectionComposite

        public static SelectionComposite<org.eclipse.jface.viewers.TableViewer> getTableSelectionComposite​(java.lang.Object rootObject,
                                                                                                           boolean multiSelection)
        Creates a SelectionComposite with a TableViewer to select an EObject.
        Parameters:
        rootObject - The children of this object are shown in the table.
        multiSelection - Whether the user can select multiple EObjects
        Returns:
        a SelectionComposite
        Since:
        1.5
      • getCheckedTableSelectionComposite

        public static CheckedEStructuralFeatureComposite getCheckedTableSelectionComposite​(java.lang.Object rootObject)
        Creates a CompositeProvider for a composite displaying a table with checkboxes.
        Parameters:
        rootObject - the viewer input
        Returns:
        the composite provider