Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codeling
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
ADVERT
codeling
Commits
bc61facc
Commit
bc61facc
authored
Dec 19, 2017
by
Marco Konersmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes naming of field types in JEE delegation
parent
9e52de87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ChildTypeTransformation.java
.../transformation/bean_feature/ChildTypeTransformation.java
+4
-4
No files found.
Language Integration/JEE/org.codeling.lang.jee.transformation/src/main/java/org/codeling/lang/jee7/transformation/bean_feature/ChildTypeTransformation.java
View file @
bc61facc
...
...
@@ -124,14 +124,14 @@ public class ChildTypeTransformation
List
<
EObject
>
targets
=
Models
.
getTargetsAsList
(
modelElement
,
eReference
);
for
(
EObject
target
:
targets
)
{
String
originalTargetName
=
getNameAttributeValue
(
target
);
String
targetName
=
originalTargetName
;
targetName
=
Character
.
toLowerCase
(
targetName
.
charAt
(
0
))
+
t
argetName
.
substring
(
1
);
String
upperCaseName
=
Character
.
toUpperCase
(
originalTargetName
.
charAt
(
0
))
+
originalTargetName
.
substring
(
1
)
;
String
lowerCaseName
=
Character
.
toLowerCase
(
originalTargetName
.
charAt
(
0
))
+
originalT
argetName
.
substring
(
1
);
IType
type
=
(
IType
)
getIALHolder
().
getIALCodeElement
();
IField
field
=
type
.
getField
(
target
Name
);
IField
field
=
type
.
getField
(
lowerCase
Name
);
if
(
field
==
null
||
!
field
.
exists
())
{
try
{
String
content
=
"@Inject\r"
;
content
+=
""
+
originalTargetName
+
" "
+
target
Name
+
";\r\r"
;
content
+=
""
+
upperCaseName
+
" "
+
lowerCase
Name
+
";\r\r"
;
type
.
createField
(
content
,
null
,
true
,
null
);
}
catch
(
JavaModelException
e
)
{
e
.
printStackTrace
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment