Skip to content

Commit

Permalink
[ui] Output the inherited default constructor into the outline.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Sep 3, 2017
1 parent 2c917d5 commit c401000
Showing 1 changed file with 1 addition and 12 deletions.
Expand Up @@ -158,15 +158,6 @@ protected void _createNode(DocumentRootNode parentNode, XtendTypeDeclaration mod
}
}

/** Create a node for the given feature container.
*
* @param parentNode - the parent node.
* @param modelElement - the feature container for which a node should be created.
*/
protected void _createNode(DocumentRootNode parentNode, JvmConstructor modelElement) {
super._createNode(parentNode, modelElement);
}

private void createInheritedConstructors(EStructuralFeatureNode elementNode, XtendClass modelElement) {
final JvmTypeReference extend = modelElement.getExtends();
if (extend != null) {
Expand All @@ -175,9 +166,7 @@ private void createInheritedConstructors(EStructuralFeatureNode elementNode, Xte
final JvmType type = reference.getType();
if (type instanceof JvmDeclaredType) {
for (final JvmConstructor constructor : ((JvmDeclaredType) type).getDeclaredConstructors()) {
if (!constructor.getParameters().isEmpty()) {
createNode(elementNode, constructor);
}
createNode(elementNode, constructor);
}
}
}
Expand Down

0 comments on commit c401000

Please sign in to comment.