Commit 72a4502d authored by Johannes Eder's avatar Johannes Eder

added enumeration members in model navigator

Issue-Ref: 4004
Issue-Url: https://af3-developer.fortiss.org/issues/4004Signed-off-by: Johannes Eder's avatarJohannes Eder <eder@fortiss.org>
parent 8d9a70e5
ArrayHandler.java 1d17548dffca9839e552a283c0d7b1ec0d4aa741 GREEN
DataDictionaryHandler.java f421407a82eba44a53558314ac3028a9271e89d3 GREEN
EnumerationHandler.java 8b716e6f98f619d07b14931f9c799ceefd6d39e7 GREEN
EnumerationHandler.java ce7548f6665d24cbfe2b826b8aaa187a2dc4fc02 YELLOW
FunctionDefinitionHandler.java 9e0ea3284373c3fce7d9816337caa49d385bf6cd GREEN
LibraryFunctionDefinitionHandler.java 6f216d33f71fd3bb5b9e229b2f7e3d29a38b6c8c GREEN
LibraryTypeDefinitionHandler.java a78a38fc457296502fa947ff804adfafc65542c6 GREEN
......
......@@ -15,8 +15,12 @@
+--------------------------------------------------------------------------*/
package org.fortiss.af3.expression.ui.handler;
import static java.util.stream.Collectors.toList;
import static org.fortiss.af3.expression.ui.AF3ExpressionUIActivator.PLUGIN_ID;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.fortiss.af3.expression.model.definitions.Enumeration;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -45,4 +49,10 @@ public final class EnumerationHandler extends ModelElementHandlerBase<Enumeratio
protected String getIconPath(Enumeration element) {
return "icons/enumeration.gif";
}
/** {@inheritDoc} */
@Override
public List<EObject> getSubnodes(Enumeration element) {
return element.getMembers().stream().collect(toList());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment