Commit aa5f30fe authored by Johannes Eder's avatar Johannes Eder

added structure 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 72a4502d
......@@ -5,4 +5,4 @@ FunctionDefinitionHandler.java 9e0ea3284373c3fce7d9816337caa49d385bf6cd GREEN
LibraryFunctionDefinitionHandler.java 6f216d33f71fd3bb5b9e229b2f7e3d29a38b6c8c GREEN
LibraryTypeDefinitionHandler.java a78a38fc457296502fa947ff804adfafc65542c6 GREEN
MemberHandler.java fc612dc4983bd1e34477a530392be5e996586c68 GREEN
StructureHandler.java 08619790c52ec966643c6c8b7c6f138e88f8d1e3 GREEN
StructureHandler.java 18e3a76a72cb9608e569ecd3d83d2177d3fecb7a YELLOW
......@@ -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.Structure;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.ModelElementHandlerBase;
......@@ -45,4 +49,10 @@ public final class StructureHandler extends ModelElementHandlerBase<Structure> {
protected String getIconPath(Structure element) {
return "icons/structure.png";
}
/** {@inheritDoc} */
@Override
public List<EObject> getSubnodes(Structure 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