diff --git a/msi.gama.core/src/msi/gaml/descriptions/SymbolDescription.java b/msi.gama.core/src/msi/gaml/descriptions/SymbolDescription.java index 0b1ede2e51..ed51b7e8e0 100644 --- a/msi.gama.core/src/msi/gaml/descriptions/SymbolDescription.java +++ b/msi.gama.core/src/msi/gaml/descriptions/SymbolDescription.java @@ -1,7 +1,7 @@ /******************************************************************************************************* * * SymbolDescription.java, in msi.gama.core, is part of the source code of the GAMA modeling and simulation platform - * (v.2.0.0). + * (v.1.8.2). * * (c) 2007-2021 UMI 209 UMMISCO IRD/SU & Partners (IRIT, MIAT, TLU, CTU) * @@ -98,7 +98,10 @@ public SymbolDescription(final String keyword, final IDescription superDesc, fin this.keyword = keyword; this.facets = facets; element = source; - if (superDesc != null) { originName = superDesc.getName(); } + if (facets != null && facets.containsKey(ORIGIN)) { + originName = facets.getLabel(ORIGIN); + facets.remove(ORIGIN); + } else if (superDesc != null) { originName = superDesc.getName(); } setEnclosingDescription(superDesc); proto = DescriptionFactory.getProto(getKeyword(), getSpeciesContext()); } diff --git a/msi.gama.core/src/msi/gaml/descriptions/TypeDescription.java b/msi.gama.core/src/msi/gaml/descriptions/TypeDescription.java index 43eabc6f27..4d33956570 100644 --- a/msi.gama.core/src/msi/gaml/descriptions/TypeDescription.java +++ b/msi.gama.core/src/msi/gaml/descriptions/TypeDescription.java @@ -1,9 +1,9 @@ /******************************************************************************************************* * - * msi.gaml.descriptions.TypeDescription.java, in plugin msi.gama.core, is part of the source code of the GAMA modeling - * and simulation platform (v. 1.8.1) + * TypeDescription.java, in msi.gama.core, is part of the source code of the GAMA modeling and simulation platform + * (v.1.8.2). * - * (c) 2007-2020 UMI 209 UMMISCO IRD/SU & Partners + * (c) 2007-2021 UMI 209 UMMISCO IRD/SU & Partners (IRIT, MIAT, TLU, CTU) * * Visit https://github.com/gama-platform/gama for license information and contacts. * @@ -50,12 +50,39 @@ public abstract class TypeDescription extends SymbolDescription { } // AD 08/16 : actions and attributes are now inherited dynamically and built + /** The actions. */ // lazily protected IMap actions; + + /** The attributes. */ protected IMap attributes; + + /** The parent. */ protected TypeDescription parent; + + /** The is abstract. */ protected final boolean isAbstract; + /** + * Instantiates a new type description. + * + * @param keyword + * the keyword + * @param clazz + * the clazz + * @param macroDesc + * the macro desc + * @param parent + * the parent + * @param cp + * the cp + * @param source + * the source + * @param facets + * the facets + * @param plugin + * the plugin + */ public TypeDescription(final String keyword, final Class clazz, final IDescription macroDesc, final TypeDescription parent, final Iterable cp, final EObject source, final Facets facets, final String plugin) { @@ -72,6 +99,11 @@ public TypeDescription(final String keyword, final Class clazz, final IDescripti } + /** + * Gets the attribute documentation. + * + * @return the attribute documentation + */ public String getAttributeDocumentation() { final StringBuilder sb = new StringBuilder(200); sb.append("
Attributes :