Skip to content

Commit f6405d1

Browse files
Merge pull request #747 from moosetechnology/716-Generated-entity-comments-can-break-tables
Remove lines from comments in generated entity comments
2 parents eec9d16 + 71917d2 commit f6405d1

11 files changed

+17
-23
lines changed

src/Famix-Java-Entities/FamixJavaContainerEntity.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
88
| `definedAnnotationTypes` | `FamixTWithAnnotationTypes` | `annotationTypesContainer` | `FamixTAnnotationType` | The container in which the AnnotationTypes may be declared|
9-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
10-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
9+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1110
1211
1312

src/Famix-Java-Entities/FamixJavaException.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
| `attributes` | `FamixTWithAttributes` | `parentType` | `FamixTAttribute` | List of attributes declared by this type.|
1414
| `comments` | `FamixTWithComments` | `commentedEntity` | `FamixTComment` | List of comments for the entity|
1515
| `methods` | `FamixTWithMethods` | `parentType` | `FamixTMethod` | Methods declared by this type.|
16-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
17-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
16+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1817
1918
### Outgoing dependencies
2019
| Relation | Origin | Opposite | Type | Comment |

src/Famix-Java-Entities/FamixJavaTWithInterfaces.trait.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ I can contain interfaces (Packages, Methods, Classes...)
77
### Children
88
| Relation | Origin | Opposite | Type | Comment |
99
|---|
10-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
11-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
10+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1211
1312
1413

src/Famix-MetamodelBuilder-Core/FmxMBBehavior.class.st

+7-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ FmxMBBehavior >> classGeneralization: anObject [
115115

116116
{ #category : #accessing }
117117
FmxMBBehavior >> commentWithRelations [
118-
"It is sometimes hard to find our way in all the methods and relations of a moose entity. To help with this I am adding informations in the class comments about the different kind of relations of the model."
118+
"It is sometimes hard to find our way through all the methods and relations of a moose entity. To help, I add information in the class comments about the different kind of relations in the model."
119119

120120
^ String streamContents: [ :aStream |
121121
aStream nextPutAll: self comment.
@@ -165,7 +165,9 @@ FmxMBBehavior >> commentWithRelations [
165165
nextPutAll: '` | `';
166166
nextPutAll: strategy relationSide oppositeType;
167167
nextPutAll: '` | ';
168-
nextPutAll: strategy relationSide comment;
168+
nextPutAll: (strategy relationSide comment
169+
copyWithRegex: (String with: Character cr with: $+)
170+
matchesReplacedWith: ' ');
169171
nextPut: $|;
170172
cr ].
171173

@@ -192,7 +194,9 @@ FmxMBBehavior >> commentWithRelations [
192194
nextPutAll: '` | ';
193195
print: property defaultValue;
194196
nextPutAll: ' | ';
195-
nextPutAll: property comment;
197+
nextPutAll: (property comment
198+
copyWithRegex: (String with: Character cr with: $+)
199+
matchesReplacedWith: ' ');
196200
nextPut: $|;
197201
cr ] ] ]
198202
]

src/Famix-PharoSmalltalk-Entities/FamixStNamespace.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
88
| `globalVariables` | `FamixTWithGlobalVariables` | `parentScope` | `FamixTGlobalVariable` | Global variables defined in the scope, if any.|
9-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
10-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
9+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1110
1211
### Other
1312
| Relation | Origin | Opposite | Type | Comment |

src/Famix-PharoSmalltalk-Entities/FamixStPackage.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
|---|
88
| `childEntities` | `FamixTPackage` | `parentPackage` | `FamixTPackageable` | |
99
| `globalVariables` | `FamixTWithGlobalVariables` | `parentScope` | `FamixTGlobalVariable` | Global variables defined in the scope, if any.|
10-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
11-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
10+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1211
1312
### Other
1413
| Relation | Origin | Opposite | Type | Comment |

src/Famix-Test3-Entities/FamixTest3PrimitiveType.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
### Children
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
9-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
8+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
109
1110
### Incoming dependencies
1211
| Relation | Origin | Opposite | Type | Comment |

src/Famix-Traits/FamixTWithClasses.trait.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
### Children
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
9-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
8+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
109
1110
1211

src/Famix-Traits/FamixTWithTypes.trait.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
### Children
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
9-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
8+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
109
1110
1211

src/Moose-Core-Tests-Entities/MooseMSEImporterTestNamespace.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
### Children
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
9-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
8+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
109
1110
### Other
1211
| Relation | Origin | Opposite | Type | Comment |

src/Moose-Core-Tests-Entities/MooseMSEImporterTestPackage.class.st

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
| Relation | Origin | Opposite | Type | Comment |
1212
|---|
1313
| `childEntities` | `FamixTPackage` | `parentPackage` | `FamixTPackageable` | |
14-
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any.
15-
#types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
14+
| `types` | `FamixTWithTypes` | `typeContainer` | `FamixTType` | Types contained (declared) in this entity, if any. #types is declared in ContainerEntity because different kinds of container can embed types. Types are usually contained in a Famix.Namespace. But types can also be contained in a Famix.Class or Famix.Method (in Java with inner classes for example). Famix.Function can also contain some types such as structs.|
1615
1716
### Other
1817
| Relation | Origin | Opposite | Type | Comment |

0 commit comments

Comments
 (0)