Compare commits

...

3 Commits

Author SHA1 Message Date
Svitlana Ponomarova
3e80a4b139 Merge branch 'maintenance/7.3' into fix/TBD-13744 2022-04-19 13:23:31 +03:00
Svitlana Ponomarova
f397365914 fix(TBD-13744): fix 2022-04-15 17:38:41 +03:00
Svitlana Ponomarova
993f8dbcbb fix(TBD-13744): tHDFSoutput does not keep the ACTION status 2022-04-15 12:50:35 +03:00

View File

@@ -16,6 +16,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.emf.common.util.EList;
@@ -54,6 +55,12 @@ public final class ComponentUtilities {
}
}
public static boolean getNodePropertyValueAsBoolean(NodeType node, String property) {
return Optional.ofNullable(getNodeProperty(node, property))
.map(ElementParameterType::getValue)
.map(Boolean::valueOf) .orElse(false);
}
public static ElementParameterType getNodeProperty(NodeType node, String property) {
for (Object o : node.getElementParameter()) {
ElementParameterType t = (ElementParameterType) o;