Class ECPCompositeFactory


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

      • getCreateProjectComposite

        public static CreateProjectComposite getCreateProjectComposite​(java.util.List<ECPProvider> providers)
        Util method to create a composite which allows to ceate an ECP project.
        Parameters:
        providers - the providers to be considered to create a new project
        Returns:
        A CreateProjectComposite allowing to create a new project
      • getCheckedModelClassComposite

        public static CheckedModelClassComposite getCheckedModelClassComposite​(java.util.Collection<org.eclipse.emf.ecore.EPackage> ePackages)
        Util method to create a composite which allows to select Classes from EPackages with a checkbox.
        Parameters:
        ePackages - The EPackages to select from.
        Returns:
        The CheckedModelClassComposite
      • 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)
        Util method to create a composite which allows to select an EClass based on all known EPackages in the registry by applying the provided filters.
        Parameters:
        unsupportedEPackages - The EPackages that should not be available (blacklist)
        filteredEPackages - The EPackages that should be available (whitelist)
        filteredEClasses - The EClasses that should be available (whitelist)
        Returns:
        The SelectionComposite based on a TreeViewer
      • getSelectModelClassComposite

        public static SelectionComposite<org.eclipse.jface.viewers.TreeViewer> getSelectModelClassComposite​(ECPProject project)
        Util method to create a composite which allows to select an EClass based on all known EPackages in the registry by applying the filters in the provided project.
        Parameters:
        project - The ECPProject to use as a filter
        Returns:
        The SelectionComposite based on a TreeViewer
      • 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