Skip to content

Commit cb40958

Browse files
Merge pull request #898 from moosetechnology/838-Rename-property-outgoingImports-of-FamixTWithImports-
Rename #outgoingImports to #imports
2 parents ab4b44d + a64552c commit cb40958

7 files changed

+51
-18
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
### Outgoing dependencies
1919
| Relation | Origin | Opposite | Type | Comment |
2020
|---|
21+
| `imports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
2122
| `interfaceImplementations` | `FamixTCanImplement` | `implementingClass` | `FamixTImplementation` | Implementation relationships|
22-
| `outgoingImports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
2323
| `superInheritances` | `FamixTWithInheritances` | `subclass` | `FamixTInheritance` | Superinheritance relationships, i.e. known superclasses of this type.|
2424
2525
### Incoming dependencies

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
### Outgoing dependencies
1919
| Relation | Origin | Opposite | Type | Comment |
2020
|---|
21-
| `outgoingImports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
21+
| `imports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
2222
| `superInheritances` | `FamixTWithInheritances` | `subclass` | `FamixTInheritance` | Superinheritance relationships, i.e. known superclasses of this type.|
2323
2424
### Incoming dependencies

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Association source
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `importingEntity` | `FamixTImport` | `outgoingImports` | `FamixTWithImports` | Importing entity|
8+
| `importingEntity` | `FamixTImport` | `imports` | `FamixTWithImports` | Importing entity|
99
1010
### Association target
1111
| Relation | Origin | Opposite | Type | Comment |

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
### Outgoing dependencies
1818
| Relation | Origin | Opposite | Type | Comment |
1919
|---|
20-
| `outgoingImports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
20+
| `imports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
2121
| `superInheritances` | `FamixTWithInheritances` | `subclass` | `FamixTInheritance` | Superinheritance relationships, i.e. known superclasses of this type.|
2222
2323
### Incoming dependencies

src/Famix-MetamodelGeneration/FamixGenerator.class.st

+1-1
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ FamixGenerator >> defineRelations [
14351435
((tInvocationsReceiver property: #receivingInvocations)
14361436
comment: 'List of invocations performed on this entity (considered as the receiver)').
14371437

1438-
((tWithImports property: #outgoingImports)
1438+
((tWithImports property: #imports)
14391439
comment: '')
14401440
-*
14411441
((tImport property: #importingEntity)

src/Famix-Traits/FamixTImport.trait.st

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Association source
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `importingEntity` | `FamixTImport` | `outgoingImports` | `FamixTWithImports` | Importing entity|
8+
| `importingEntity` | `FamixTImport` | `imports` | `FamixTWithImports` | Importing entity|
99
1010
### Association target
1111
| Relation | Origin | Opposite | Type | Comment |
@@ -25,8 +25,8 @@
2525
Trait {
2626
#name : #FamixTImport,
2727
#instVars : [
28-
'#importingEntity => FMOne type: #FamixTWithImports opposite: #outgoingImports',
29-
'#importedEntity => FMOne type: #FamixTImportable opposite: #incomingImports'
28+
'#importedEntity => FMOne type: #FamixTImportable opposite: #incomingImports',
29+
'#importingEntity => FMOne type: #FamixTWithImports opposite: #imports'
3030
],
3131
#traits : 'FamixTAssociation',
3232
#classTraits : 'FamixTAssociation classTrait',
@@ -61,7 +61,7 @@ FamixTImport >> importedEntity: anObject [
6161

6262
{ #category : #accessing }
6363
FamixTImport >> importingEntity [
64-
"Relation named: #importingEntity type: #FamixTWithImports opposite: #outgoingImports"
64+
"Relation named: #importingEntity type: #FamixTWithImports opposite: #imports"
6565

6666
<generated>
6767
<FMComment: 'Importing entity'>

src/Famix-Traits/FamixTWithImports.trait.st

+42-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
### Outgoing dependencies
66
| Relation | Origin | Opposite | Type | Comment |
77
|---|
8-
| `outgoingImports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
8+
| `imports` | `FamixTWithImports` | `importingEntity` | `FamixTImport` | |
99
1010
1111
1212
"
1313
Trait {
1414
#name : #FamixTWithImports,
1515
#instVars : [
16-
'#outgoingImports => FMMany type: #FamixTImport opposite: #importingEntity'
16+
'#imports => FMMany type: #FamixTImport opposite: #importingEntity'
1717
],
1818
#category : #'Famix-Traits-Traits'
1919
}
@@ -28,23 +28,56 @@ FamixTWithImports classSide >> annotation [
2828
]
2929

3030
{ #category : #adding }
31-
FamixTWithImports >> addOutgoingImport: anObject [
31+
FamixTWithImports >> addImport: anObject [
3232
<generated>
33-
^ self outgoingImports add: anObject
33+
^ self imports add: anObject
34+
]
35+
36+
{ #category : #'as yet unclassified' }
37+
FamixTWithImports >> addOutgoingImport: anObject [
38+
39+
self
40+
deprecated: 'Use #addImport:'
41+
transformWith:
42+
'`@receiver addOutgoingImport: `@argument' -> '`@receiver addImport: `@argument'.
43+
44+
^ self addImport: anObject
3445
]
3546

3647
{ #category : #accessing }
37-
FamixTWithImports >> outgoingImports [
38-
"Relation named: #outgoingImports type: #FamixTImport opposite: #importingEntity"
48+
FamixTWithImports >> imports [
49+
"Relation named: #imports type: #FamixTImport opposite: #importingEntity"
3950

4051
<generated>
4152
<derived>
42-
^ outgoingImports
53+
^ imports
4354
]
4455

4556
{ #category : #accessing }
46-
FamixTWithImports >> outgoingImports: anObject [
57+
FamixTWithImports >> imports: anObject [
4758

4859
<generated>
49-
outgoingImports value: anObject
60+
imports value: anObject
61+
]
62+
63+
{ #category : #'as yet unclassified' }
64+
FamixTWithImports >> outgoingImports [
65+
66+
self
67+
deprecated: 'Use #imports'
68+
transformWith:
69+
'`@receiver outgoingImports' -> '`@receiver imports'.
70+
71+
^ self imports
72+
]
73+
74+
{ #category : #'as yet unclassified' }
75+
FamixTWithImports >> outgoingImports: anObject [
76+
77+
self
78+
deprecated: 'Use #imports:'
79+
transformWith:
80+
'`@receiver outgoingImports: `@argument' -> '`@receiver imports: `@argument'.
81+
82+
^ self imports: anObject
5083
]

0 commit comments

Comments
 (0)