Compare commits

...

2 Commits

Author SHA1 Message Date
Svitlana Ponomarova
ef71f794b4 fix(TBD-13744): fix 2022-04-18 15:11:16 +03:00
Svitlana Ponomarova
15dd1cbf37 fix(TBD-13744): tHDFSoutput does not keep the ACTION status 2022-04-18 15:11:05 +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;