Class DistributionSupportUiUtil
java.lang.Object
com.e1c.g5.v8.dt.internal.distribution.ui.DistributionSupportUiUtil
DistributionSupport UI util.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EObjectTriecreateTrie(org.eclipse.core.resources.IProject project, org.eclipse.emf.ecore.EClass[] containedEClasses, Predicate<org.eclipse.xtext.resource.IEObjectDescription> includeToTriePredicate, IFilteredNavigatorContentProvider filteredNavigatorContentProvider) Creates project trie.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.getObjects(IStructuredSelection selection) Returns the list of objects from selection
-
Constructor Details
-
DistributionSupportUiUtil
public DistributionSupportUiUtil()
-
-
Method Details
-
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 benull- Returns:
- the first md-object and last parent configuration info from selection and empty
if its not present, never
null
-
getObjects
Returns the list of objects from selection- Parameters:
selection- the structured selection, cannot benull- Returns:
- the list of objects from selection, never
null, can be optional empty