Class DistributionSupportUiUtil

java.lang.Object
com.e1c.g5.v8.dt.internal.distribution.ui.DistributionSupportUiUtil

public final class DistributionSupportUiUtil extends Object
  • Constructor Details

    • DistributionSupportUiUtil

      public DistributionSupportUiUtil()
  • Method Details

    • createTrie

      public static EObjectTrie createTrie(org.eclipse.core.resources.IProject project, org.eclipse.emf.ecore.EClass[] containedEClasses, Predicate<org.eclipse.xtext.resource.IEObjectDescription> includeToTriePredicate, IFilteredNavigatorContentProvider filteredNavigatorContentProvider)
      Creates project trie.
      Parameters:
      project - the project, cannot be null
      containedEClasses - the contained e-classes, cannot be null
      includeToTriePredicate - the include to trie predicate, cannot be null
      filteredNavigatorContentProvider - the filtered navigator content provider, cannot be null
      Returns:
      the trie, cannot be null
    • getFirstAndLastObjects

      public static Optional<Pair<List<MdObject>,ParentConfigurationInfo>> getFirstAndLastObjects(IStructuredSelection selection)
      Returns first md-object and last parent configuration info from selection and empty if its not present.
      Parameters:
      selection - the structured selection, cannot be null
      Returns:
      the first md-object and last parent configuration info from selection and empty if its not present, never null
    • getObjects

      public static Optional<List<MdObject>> getObjects(IStructuredSelection selection)
      Returns the list of objects from selection
      Parameters:
      selection - the structured selection, cannot be null
      Returns:
      the list of objects from selection, never null, can be optional empty