use of org.obeonetwork.dsl.typeslibrary.TypesLibrary in project InformationSystem by ObeoNetwork.
the class TypeInstanceItemProvider method getUsedNativeTypesLibraries.
protected Collection<NativeTypesLibrary> getUsedNativeTypesLibraries(Object object) {
final Collection<NativeTypesLibrary> nativeTypesLibraries = new ArrayList<NativeTypesLibrary>();
if (object instanceof EObject) {
EObject eObject = (EObject) object;
final TypesLibraryUser user = getTypesLibraryUserFromParents(eObject);
if (user != null && user.getUsedLibraries().isEmpty() == false) {
for (TypesLibrary library : user.getUsedLibraries()) {
if (library instanceof NativeTypesLibrary) {
nativeTypesLibraries.add((NativeTypesLibrary) library);
}
}
}
}
return nativeTypesLibraries;
}
Aggregations