Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test cases from the case study regarding transitive change propagation #84

Merged
merged 107 commits into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
316fda0
EDIT: Copy PCM UML Class test project.
tsaglam Jun 26, 2019
a747ecd
ADD: Added project files for the transitive tests.
tsaglam Jul 4, 2019
1d42df7
FIX: Fixed manifest of test project.
tsaglam Jul 4, 2019
89e14bb
EDIT: Adapted the test class to include the bidirectional transformat…
tsaglam Jul 8, 2019
f6e0052
EDIT: Added user interaction to allows the tests to pass even when th…
tsaglam Jul 8, 2019
a2041ba
EDIT: Implemented Java checks for the interface concept tests.
tsaglam Jul 13, 2019
130c376
EDIT: Implemented Java checks for the repository concept test. Extend…
tsaglam Jul 13, 2019
9102ded
ADD: Introduced class that extends the PcmUmlClassApplicationsTest wi…
tsaglam Jul 14, 2019
c023687
EDIT: Removed unnecessary functionality from the PcmUmlClassTest clas…
tsaglam Jul 14, 2019
ca20faf
EDIT: Implemented Java checks for the attribute concept test.
tsaglam Jul 14, 2019
f4ea2f3
EDIT: Added additional methods for accessing correlating Java/UML ele…
tsaglam Jul 14, 2019
df1967a
EDIT: Implemented generic checks for Java elements. These checks can …
tsaglam Jul 14, 2019
b7aacc3
EDIT: Implemented Java checks for the provided role concept test.
tsaglam Jul 14, 2019
1557d63
EDIT: Implemented further generic checks for Java elements.
tsaglam Jul 14, 2019
11eba7f
EDIT: Adapted existing test case to utilize the generic checks offere…
tsaglam Jul 14, 2019
1eca879
EDIT: Adapted copied code segments to make the class more compact and…
tsaglam Jul 15, 2019
5eb07b6
EDIT: Implemented additional checks for methods and constructors.
tsaglam Jul 15, 2019
3a3bbe2
FIX: Added constructor check to cover the full UML model during the c…
tsaglam Jul 15, 2019
1d5cfe8
EDIT: Implemented Java checks for the system concept test.
tsaglam Jul 15, 2019
3b33ad2
EDIT: Implemented Java checks for the required role concept test.
tsaglam Jul 15, 2019
1bd5c33
FIX: Fixes method checks to avoid issues with assumptions about the m…
tsaglam Jul 17, 2019
76cfe9e
EDIT: Implemented Java checks for the signature concept test.
tsaglam Jul 17, 2019
c1623ed
EDIT: Implemented a more sophisticated method for comparing UML types…
tsaglam Jul 18, 2019
38bd1e8
EDIT: Implemented Java checks for the assembly context concept test.
tsaglam Jul 18, 2019
07dec98
EDIT: Implemented a method for comparing generalization relations bet…
tsaglam Jul 18, 2019
c2ebb2d
EDIT: Implemented Java checks for the composite data type concept test.
tsaglam Jul 18, 2019
7cc227b
EDIT: Implemented Java checks for the repository component concept test.
tsaglam Jul 18, 2019
368e79f
FIX: Added check for parameter lists to the method checks.
tsaglam Jul 18, 2019
ac54b74
EDIT: Implemented Java checks for the parameter concept test.
tsaglam Jul 18, 2019
4d8e59d
FIX: Added missing checks for the parts of the model that were create…
tsaglam Jul 19, 2019
ee90497
EDIT: Optimized the code of the transitive change test class. Adapted…
tsaglam Jul 19, 2019
d19532c
RENAME: Renamed the test suite.
tsaglam Jul 19, 2019
d417f8b
FIX: Fixed a small bug that lead to unexpected test failures.
tsaglam Jul 20, 2019
e25fdc3
FIX: Fixed repository access, because one test case uses primitive da…
tsaglam Jul 24, 2019
a918a5f
EDIT: Implemented prototypical methods for full UML model checking. A…
tsaglam Jul 24, 2019
61cb767
EDIT: Refactored project to remove copied code.
tsaglam Jul 29, 2019
1157bb0
FIX: Fixed a problem with the creation of Java parameters. When a cor…
tsaglam Aug 8, 2019
f70c20e
EDIT: Changed the parameter concept test to create UML parameters of …
tsaglam Aug 10, 2019
bfc7306
EDIT: Added a user selection to select ArrayList as Collection return…
tsaglam Aug 13, 2019
ceababf
EDIT: Implemented fixed parameter checking.
tsaglam Aug 13, 2019
bd9f763
ADD: Added documentation for the fixes in this case study.
tsaglam Sep 13, 2019
8b562f1
EDIT: Formatting of the fix documentation.
tsaglam Sep 13, 2019
972b71b
EDIT: Added descriptions for the fixes problems and the tested networ…
tsaglam Sep 14, 2019
6d911a9
FIX: Fixed correlation between PR 43 and the fixes 6-8.
tsaglam Oct 28, 2019
7af1e57
EDIT: Enabled the model transformation from Java to UML for the trans…
tsaglam Oct 29, 2019
7da771d
EDIT: Added mocked user interaction for the test case to succeed with…
tsaglam Oct 29, 2019
2d76a97
EDIT: Documented the recent fix for the package duplication and its c…
tsaglam Oct 30, 2019
2c25e63
EDIT: Added fix to test case failure correlation table.
tsaglam Nov 12, 2019
3068687
EDIT: Moved correlation tables to a dedicated section in the fix docu…
tsaglam Nov 12, 2019
59963e4
EDIT: Added change propagation specification for PCM to Java, adapted…
tsaglam Nov 19, 2019
56c93e8
EDIT: Added check for the amount of packages between UML and Java.
tsaglam Nov 20, 2019
36a0047
EDIT: Added a section for the next phase. Documented the first fix.
tsaglam Nov 21, 2019
1b2f435
EDIT: Added links to the fix tags on github.
tsaglam Nov 21, 2019
97eb16c
EDIT: Documented another fix and the correlating pull request
tsaglam Nov 21, 2019
dbcb4bf
EDIT: Documented fix 12.
tsaglam Nov 25, 2019
7265da8
EDIT: Added pull request information for fix 12 and fixed a small typo.
tsaglam Nov 26, 2019
e872e86
EDIT: Added additional checks to the repository concept test cases to…
tsaglam Nov 26, 2019
cff4419
EDIT: Documented fix 13 and the correlating pull request.
tsaglam Nov 27, 2019
a7b1fe7
EDIT: Documented another fix, replaced arrows with unicode symbols.
tsaglam Dec 2, 2019
921e3fb
EDIT: Updated plugin project for Java SE 11.
tsaglam Dec 3, 2019
36f2f1e
EDIT: Rebuilt the application projects after pulling from upstream.
tsaglam Dec 3, 2019
eeb32c4
FIX: Fixed a problem that sometimes lead to crashes during resource s…
tsaglam Dec 4, 2019
0623014
EDIT: Corrected pull request number and documented the null sequence …
tsaglam Dec 6, 2019
1054724
EDIT: Repaired broken link.
tsaglam Dec 17, 2019
a5244d9
EDIT: Documented fix 16 regarding the Java package deletion issue.
tsaglam Dec 19, 2019
bb0efd9
EDIT: Ensure correct package to EClass tagging when directly creating…
tsaglam Dec 20, 2019
8b344b8
FIX: Restored changes that were made by a previous commit but were so…
tsaglam Dec 23, 2019
309185f
REMOVE: Removed generated source file that are no longer needed after…
tsaglam Dec 25, 2019
eb0e068
FIX: Corrected test project manifest and classpath file.
tsaglam Jan 5, 2020
c7a48e1
EDIT: Added missing mock user input that is required when enabling th…
tsaglam Jan 6, 2020
4fbb3bb
EDIT: Documented fix 17 & 18.
tsaglam Jan 10, 2020
f3befba
FIX: Restored changes that were made by a previous commit but were so…
tsaglam Dec 23, 2019
32fc543
EDIT: Added the Java to PCM transformation.
tsaglam Jan 22, 2020
53389ef
FIX: Adapted the transitive change test to the recent utility class c…
tsaglam Jan 22, 2020
831d648
EDIT: Added required mock user interaction.
tsaglam Jan 23, 2020
757c6b4
EDIT: Documented fix 19 & 20. Added a section for the full network an…
tsaglam Jan 23, 2020
c2d65f1
EDIT: Updated dependencies.
tsaglam Jan 24, 2020
50ce998
EDIT: Documented three more fixes and added tags for two old ones.
tsaglam Jan 26, 2020
d5f3e9e
ADD: Added temporary project for shared utils that will later be move…
tsaglam Jan 18, 2020
d307f9a
EDIT: Adapted user interaction mocking to pass the system concept tes…
tsaglam Jan 30, 2020
6660271
EDIT: Documented two more fixes and added missing fix tags.
tsaglam Jan 30, 2020
6cc03f6
EDIT: Added missing user interactions to the composite data type tests.
tsaglam Jan 31, 2020
3d9623d
EDIT: Documented two additional problems and their correlating pull r…
tsaglam Feb 3, 2020
587bd10
EDIT: Added missing tags to multiple fixes in the documentation.
tsaglam Feb 6, 2020
a3e2370
EDIT: Documented the last fix.
tsaglam Feb 7, 2020
efd5f15
EDIT: Documented the fix-to-issue correlation for the PCM ↔︎ UML ↔︎ J…
tsaglam Feb 9, 2020
29edafd
EDIT: Added missing user interaction.
tsaglam Feb 9, 2020
cfad08b
EDIT: Added the last missing correlation matrix.
tsaglam Feb 10, 2020
adbab6b
EDIT: Moved fix8 to the second stage, as it only affects the test cas…
tsaglam Feb 12, 2020
b6cb7f3
EDIT: Resolved some issues caused by updating the fork from the upstr…
tsaglam May 19, 2020
b29fbed
EDIT: Enabled the option for test classes to only use the linear netw…
tsaglam Nov 25, 2020
f1cd52c
FIX: Updated project setup to match the changes made to the existing …
tsaglam Nov 25, 2020
9861a65
FIX: Removed media store resources that are not needed
tsaglam Nov 25, 2020
f4a2f1f
REMOVE: Removed documentation of the case study fixes to prepare for …
tsaglam Nov 25, 2020
7a31b65
EDIT: Cleaned up the dependencies of the utility project, reverted so…
tsaglam Nov 26, 2020
b0092da
EDIT: Minor cosmetical changes to make the code cleaner.
tsaglam Nov 30, 2020
d8d216d
FIX: Added methods that were probably removed while rebasing.
tsaglam Jan 5, 2021
6fd3919
EDIT: Adapted the transitive test project for the use as legacy test …
tsaglam Jan 5, 2021
3df8a7b
EDIT: Cleaned up manifest of the temporary utils.
tsaglam Jan 5, 2021
be147a0
MOVE: Moved the transitive test project our of the pcmumlclassjava su…
tsaglam Jan 5, 2021
5ffb8ad
FIX: Increased the bundle version to 0.2.0
tsaglam Jan 5, 2021
cfeb5c1
EDIT: Removed eclipse settings.
tsaglam Jan 5, 2021
d91c48d
FIX: Fixed outdated dependency.
tsaglam Jan 5, 2021
4802b3d
FIX: Fixed another outdated dependency on umljava.util.
tsaglam Jan 5, 2021
06bb971
FIX: Made the UML/Java and the PCM/UML test projects host bundles ins…
tsaglam Jan 7, 2021
f942e37
EDIT: Cleaned up optional warnings and changed formatting.
tsaglam Jan 7, 2021
fe31406
FIX: Restored dependencies required by reactions and restored missing…
tsaglam Jan 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ Bundle-Version: 0.2.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: com.google.guava,
org.apache.log4j,
org.eclipse.emf.ecore,
org.eclipse.core.resources,
org.eclipse.xtext.xbase.lib,
org.eclipse.xtend.lib,
org.eclipse.xtend.lib.macro,
edu.kit.ipd.sdq.activextendannotations,
tools.vitruv.domains.uml,
tools.vitruv.domains.java,
Expand All @@ -24,5 +20,6 @@ Require-Bundle: com.google.guava,
tools.vitruv.extensions.dslsruntime.reactions,
tools.vitruv.extensions.dslsruntime.mappings,
tools.vitruv.applications.util.temporary;visibility:=reexport
Export-Package: tools.vitruv.applications.umljava
Export-Package: tools.vitruv.applications.umljava,
tools.vitruv.applications.umljava.util
Bundle-Vendor: vitruv.tools
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ Comment: This project is only temporary, as the utils will be moved to their res
Bundle-SymbolicName: tools.vitruv.applications.util.temporary
Automatic-Module-Name: tools.vitruv.applications.util.temporary
Bundle-Version: 0.2.0.qualifier
Require-Bundle: com.google.guava,
org.eclipse.xtext.xbase.lib,
org.eclipse.xtend.lib,
org.eclipse.xtend.lib.macro,
Require-Bundle: org.eclipse.xtend.lib,
tools.vitruv.domains.uml,
tools.vitruv.domains.java,
tools.vitruv.domains.pcm,
org.apache.log4j,
org.eclipse.core.resources,
edu.kit.ipd.sdq.activextendannotations,
tools.vitruv.extensions.dslsruntime.reactions,
tools.vitruv.framework.userinteraction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ class JavaContainerAndClassifierUtil {
* @return the new class with the given attributes
*/
def static createJavaClass(String name, JavaVisibility visibility, boolean abstr, boolean fin) {
val jClass = ClassifiersFactory.eINSTANCE.createClass;
val jClass = ClassifiersFactory.eINSTANCE.createClass
setName(jClass, name)
setJavaVisibilityModifier(jClass, visibility)
setAbstract(jClass, abstr)
setFinal(jClass, fin)

return jClass;
return jClass
}

/**
Expand All @@ -78,13 +77,13 @@ class JavaContainerAndClassifierUtil {
* @return the new interface
*/
def static createJavaInterface(String name, List<Interface> superInterfaces) {
val jInterface = ClassifiersFactory.eINSTANCE.createInterface;
val jInterface = ClassifiersFactory.eINSTANCE.createInterface
setName(jInterface, name)
jInterface.makePublic;
jInterface.makePublic
if (!superInterfaces.nullOrEmpty) {
jInterface.extends.addAll(createNamespaceReferenceFromList(superInterfaces));
jInterface.extends.addAll(createNamespaceReferenceFromList(superInterfaces))
}
return jInterface;
return jInterface
}

/**
Expand All @@ -96,11 +95,11 @@ class JavaContainerAndClassifierUtil {
* @return the new enum
*/
def static createJavaEnum(String name, JavaVisibility visibility, List<EnumConstant> constantsList) {
val jEnum = ClassifiersFactory.eINSTANCE.createEnumeration;
val jEnum = ClassifiersFactory.eINSTANCE.createEnumeration
setName(jEnum, name)
setJavaVisibilityModifier(jEnum, visibility)
addEnumConstantIfNotNull(jEnum, constantsList)
return jEnum;
return jEnum
}

/**
Expand Down Expand Up @@ -142,7 +141,7 @@ class JavaContainerAndClassifierUtil {
while (iter.hasNext) {
val type = (iter.next as NamespaceClassifierReference).classifierReferences.head.target
if (classif.name.equals(type.name)) {
iter.remove;
iter.remove
}
}
}
Expand Down Expand Up @@ -184,7 +183,7 @@ class JavaContainerAndClassifierUtil {
val iter = jPackage.compilationUnits.iterator
while (iter.hasNext) {
if (iter.next.name.equals(jClassifier.name)) {
iter.remove;
iter.remove
}
}
}
Expand All @@ -193,7 +192,7 @@ class JavaContainerAndClassifierUtil {
val file = new File(directory + "/package-info.java")
file.createNewFile
val writer = new PrintWriter(file)
writer.println("package " + packageName + ";")
writer.println("package " + packageName + "")
writer.close
return file
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class JavaMemberAndParameterUtil {
return setterMethod
}

static def createSetter(Field field, ClassMethod method) {
def static createSetter(Field field, ClassMethod method) {
method.name = "set" + field.name.toFirstUpper
method.annotationsAndModifiers.add(ModifiersFactory.eINSTANCE.createPublic)
method.typeReference = TypesFactory.eINSTANCE.createVoid
Expand Down Expand Up @@ -249,7 +249,7 @@ class JavaMemberAndParameterUtil {
return method
}

static def createGetter(Field field, ClassMethod method) {
def static createGetter(Field field, ClassMethod method) {
method.name = "get" + field.name.toFirstUpper
method.annotationsAndModifiers.add(ModifiersFactory.eINSTANCE.createPublic)
method.typeReference = EcoreUtil.copy(field.typeReference)
Expand All @@ -265,7 +265,7 @@ class JavaMemberAndParameterUtil {
return method
}

def static void addParametersIfNotNull(Parametrizable parametrizable, List<Parameter> params) {
def static addParametersIfNotNull(Parametrizable parametrizable, List<Parameter> params) {
if (!params.nullOrEmpty) {
parametrizable.parameters.addAll(params)
}
Expand Down Expand Up @@ -332,7 +332,7 @@ class JavaMemberAndParameterUtil {
return getJavaClassMethodsWithName(jClass, buildGetterName(jAttributeName))
}

def static void removeJavaGettersOfAttribute(Field jAttribute) {
def static removeJavaGettersOfAttribute(Field jAttribute) {
val getters = getJavaGettersOfAttribute(jAttribute)
if (!getters.nullOrEmpty) {
for (getter : getters) {
Expand All @@ -341,7 +341,7 @@ class JavaMemberAndParameterUtil {
}
}

def static void removeJavaSettersOfAttribute(Field jAttribute) {
def static removeJavaSettersOfAttribute(Field jAttribute) {
val setters = getJavaSettersOfAttribute(jAttribute)
if (!setters.nullOrEmpty) {
for (setter : setters) {
Expand All @@ -357,7 +357,7 @@ class JavaMemberAndParameterUtil {
* @param jAttributeWithOldName the Attribute with the new name
* @param the name of jAttribute before it was renamed
*/
def static void renameSettersOfAttribute(Field jAttributeWithnewName, String oldName) {
def static renameSettersOfAttribute(Field jAttributeWithnewName, String oldName) {
val setters = getJavaSettersOfAttribute(jAttributeWithnewName.containingConcreteClassifier, oldName)
for (setter : setters) {
renameSetter(setter, jAttributeWithnewName, oldName)
Expand All @@ -369,7 +369,7 @@ class JavaMemberAndParameterUtil {
* Renames the given setter so that it matches the name of the given attribute
* @param oldNaem new Setter name without set-Prefix
*/
def static void renameSetter(ClassMethod setter, Field jAttribute, String oldName) {
def static renameSetter(ClassMethod setter, Field jAttribute, String oldName) {
setter.name = buildSetterName(jAttribute.name)
for (expStatement : setter.statements.filter(ExpressionStatement)) {
val selfReference = getAttributeSelfReferenceInExpressionStatement(expStatement, oldName)
Expand All @@ -378,7 +378,7 @@ class JavaMemberAndParameterUtil {

}

def static void updateAttributeTypeInSetters(Field jAttribute) {
def static updateAttributeTypeInSetters(Field jAttribute) {
val setters = getJavaSettersOfAttribute(jAttribute)
for (setter : setters) {
updateAttributeTypeInSetter(setter, jAttribute)
Expand All @@ -389,7 +389,7 @@ class JavaMemberAndParameterUtil {
* Assumption: Setter has one parameter and one assignment for the attribute
*
*/
def static void updateAttributeTypeInSetter(ClassMethod setter, Field jAttribute) {
def static updateAttributeTypeInSetter(ClassMethod setter, Field jAttribute) {
val param = setter.parameters.head
if (param !== null) {
param.typeReference = EcoreUtil.copy(jAttribute.typeReference)
Expand All @@ -405,7 +405,7 @@ class JavaMemberAndParameterUtil {
*
* @param jAttribute the attribute with the new name
*/
def static void renameGettersOfAttribute(Field jAttribute, String oldName) {
def static renameGettersOfAttribute(Field jAttribute, String oldName) {
val getters = getJavaGettersOfAttribute(jAttribute.containingConcreteClassifier, oldName)
for (getter : getters) {
renameGetterOfAttribute(getter, jAttribute)
Expand All @@ -416,7 +416,7 @@ class JavaMemberAndParameterUtil {
* Renames the given getter so that it matches the name of the given attribute
* Assumption: standard getter that only returns the attribute
*/
def static void renameGetterOfAttribute(ClassMethod getter, Field jAttribute) {
def static renameGetterOfAttribute(ClassMethod getter, Field jAttribute) {
getter.name = buildGetterName(jAttribute.name)
val returnStatement = getter.statements.filter(Return).head
if (returnStatement !== null) {
Expand All @@ -429,7 +429,7 @@ class JavaMemberAndParameterUtil {
* and matches the return type of the getters to the type of the attribute.
*
*/
def static void updateAttributeTypeInGetters(Field jAttribute) {
def static updateAttributeTypeInGetters(Field jAttribute) {
for (getter : getJavaGettersOfAttribute(jAttribute)) {
updateAttributeTypeInGetter(getter, jAttribute)
}
Expand All @@ -438,7 +438,7 @@ class JavaMemberAndParameterUtil {
/**
* Updates the return type of the given getter to match the return type of the given attribute.
*/
def static void updateAttributeTypeInGetter(ClassMethod getter, Field jAttribute) {
def static updateAttributeTypeInGetter(ClassMethod getter, Field jAttribute) {
getter.typeReference = EcoreUtil.copy(jAttribute.typeReference)
}

Expand Down Expand Up @@ -477,12 +477,12 @@ class JavaMemberAndParameterUtil {
return true
}

def static void initializeClassMethod(ClassMethod classMethod, Method implementedMethod, boolean ensurePublic) {
def static initializeClassMethod(ClassMethod classMethod, Method implementedMethod, boolean ensurePublic) {
initializeClassMethod(classMethod, implementedMethod.name, implementedMethod.typeReference, implementedMethod.modifiers, implementedMethod.parameters,
ensurePublic)
}

def static void initializeClassMethod(ClassMethod classMethod, String name, TypeReference typeReference, Modifier[] modifiers,
def static initializeClassMethod(ClassMethod classMethod, String name, TypeReference typeReference, Modifier[] modifiers,
Parameter[] parameters, boolean ensurePublic) {
classMethod.name = name
if (null !== typeReference) {
Expand Down Expand Up @@ -510,7 +510,7 @@ class JavaMemberAndParameterUtil {
return currentMethod as ClassMethod
}
}
null
return null
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class JavaModifierUtil {
* @param visibility the java visibility to set
*
*/
def static void setJavaVisibilityModifier(AnnotableAndModifiable modifiable, JavaVisibility visibility) {
def static setJavaVisibilityModifier(AnnotableAndModifiable modifiable, JavaVisibility visibility) {
if (visibility == JavaVisibility.PACKAGE) {
removeJavaVisibilityModifiers(modifiable)
} else {
Expand Down Expand Up @@ -120,7 +120,7 @@ class JavaModifierUtil {
* @param the name to set
* @throws IllegalArgumentException if name is null
*/
def static void setName(NamedElement namedElement, String name) {
def static setName(NamedElement namedElement, String name) {
if (name === null) {
throw new IllegalArgumentException("Cannot set name of " + namedElement + " to null")
}
Expand All @@ -134,7 +134,7 @@ class JavaModifierUtil {
* @param modifiable the AnnotableAndModifiable
* @param toAdd true to add the modifier, otherwise remove
*/
def static void setFinal(AnnotableAndModifiable modifiable, boolean toAdd) {
def static setFinal(AnnotableAndModifiable modifiable, boolean toAdd) {
setJavaModifier(modifiable, ModifiersFactory.eINSTANCE.createFinal, toAdd)
}

Expand All @@ -145,7 +145,7 @@ class JavaModifierUtil {
* @param modifiable the AnnotableAndModifiable
* @param toAdd true to add the modifier, otherwise remove
*/
def static void setAbstract(AnnotableAndModifiable modifiable, boolean toAdd) {
def static setAbstract(AnnotableAndModifiable modifiable, boolean toAdd) {
setJavaModifier(modifiable, ModifiersFactory.eINSTANCE.createAbstract, toAdd)
}

Expand All @@ -156,7 +156,7 @@ class JavaModifierUtil {
* @param modifiable the AnnotableAndModifiable
* @param toAdd true to add the modifier, otherwise remove
*/
def static void setStatic(AnnotableAndModifiable modifiable, boolean toAdd) {
def static setStatic(AnnotableAndModifiable modifiable, boolean toAdd) {
setJavaModifier(modifiable, ModifiersFactory.eINSTANCE.createStatic, toAdd)
}

Expand Down Expand Up @@ -214,7 +214,7 @@ class JavaModifierUtil {
* @param jModifiable the AnnotableAndModifiable for which a java visibility modifier should be set
* @param uVisibility the VisibilityKind
*/
def static void setJavaVisibility(AnnotableAndModifiable jModifiable, VisibilityKind uVisibility) {
def static setJavaVisibility(AnnotableAndModifiable jModifiable, VisibilityKind uVisibility) {
setJavaVisibilityModifier(jModifiable, getJavaVisibilityConstantFromUmlVisibilityKind(uVisibility))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ import static tools.vitruv.applications.util.temporary.java.JavaTypeUtil.*
*/
@Utility
class JavaStandardType {
public static val BOOLEAN = "boolean";
public static val BYTE = "byte";
public static val CHAR = "char";
public static val DOUBLE = "double";
public static val FLOAT = "float";
public static val INT = "int";
public static val LONG = "long";
public static val SHORT = "short";
public static val BOOLEAN = "boolean"
public static val BYTE = "byte"
public static val CHAR = "char"
public static val DOUBLE = "double"
public static val FLOAT = "float"
public static val INT = "int"
public static val LONG = "long"
public static val SHORT = "short"
public static val STRING = "String"
public static val VOID = "void"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class JavaTypeUtil {
return namespaceClassifierReference
}

def static void setTypeReference(TypedElement typedElement, TypeReference typeRef) {
def static setTypeReference(TypedElement typedElement, TypeReference typeRef) {
if (typeRef !== null) {
typedElement.typeReference = typeRef
} else {
Expand Down Expand Up @@ -188,7 +188,7 @@ class JavaTypeUtil {
return null
}

static def boolean hasSameTargetReference(TypeReference reference1, TypeReference reference2) {
def static boolean hasSameTargetReference(TypeReference reference1, TypeReference reference2) {
if (reference1 == reference2 || reference1.equals(reference2)) {
return true
}
Expand Down Expand Up @@ -264,8 +264,6 @@ class JavaTypeUtil {
addJavaImport(compUnit, typeArgument.typeReference)
}
}
} else {
// shouldn't occur
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.palladiosimulator.pcm.repository.PrimitiveTypeEnum
@Utility
class PcmDataTypeUtil {

static val PCM_PRIMITIVE_TYPES_URI = URI.createURI("pathmap://PCM_MODELS/PrimitiveTypes.repository");
static val PCM_PRIMITIVE_TYPES_URI = URI.createURI("pathmap://PCM_MODELS/PrimitiveTypes.repository")

def static getPcmPrimitiveTypes(EObject alreadyPersistedObject) {
return getPcmPrimitiveTypes(alreadyPersistedObject.eResource.resourceSet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import static extension edu.kit.ipd.sdq.commons.util.java.lang.IterableUtil.*

@Utility
class PcmParameterUtil {
static def void setParameterName(Parameter parameter, String newName) {
def static setParameterName(Parameter parameter, String newName) {
// Set entity name as well if it exists
if (parameter.eClass.EAllAttributes.exists[name == "entityName"]) {
parameter.eSet(parameter.eClass.EAllAttributes.filter[name == "entityName"].claimOne, newName);
parameter.eSet(parameter.eClass.EAllAttributes.filter[name == "entityName"].claimOne, newName)
}
parameter.parameterName = newName;
parameter.parameterName = newName
}
}
Loading