Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
02be09b2
Commit
02be09b2
authored
Aug 06, 2014
by
Dongyue Mou
Browse files
GREEN code reviewed
refs 2075
parent
32cac787
Changes
12
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.component/trunk/pom.xml
View file @
02be09b2
<?xml version="1.0" encoding="UTF-8"?>
<!--
@ConQAT.Rating YELLOW Hash: A7709F159BAB2A369EB3E05A48FE10DD
-->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
org.fortiss.af3
</groupId>
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/generator/component/ComponentProgramTransformationBase.java
View file @
02be09b2
...
...
@@ -60,7 +60,7 @@ import org.fortiss.tooling.kernel.extension.exception.TransformationFailedExcept
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
82C0E14ABFC1AD172E20F48D9211CDE4
* @ConQAT.Rating
GREEN
Hash:
DFA6E064D2F40C5DD4609892D1009092
*/
public
abstract
class
ComponentProgramTransformationBase
extends
TransformationProviderBase
<
Component
,
ComponentProgram
>
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/generator/java/ComponentProgramToJavaSourcePackageTransformation.java
View file @
02be09b2
...
...
@@ -56,7 +56,7 @@ import org.fortiss.tooling.kernel.extension.exception.TransformationFailedExcept
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
1CB0D98CC68932C7517AA8CF80E6FE7C
* @ConQAT.Rating
GREEN
Hash:
07060159485A7A1ED44B9BEB87E3458D
*/
public
class
ComponentProgramToJavaSourcePackageTransformation
extends
TransformationProviderBase
<
ComponentProgram
,
JavaSourcePackage
>
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/generator/java/JavaReplacement.java
View file @
02be09b2
...
...
@@ -46,7 +46,7 @@ import org.fortiss.af3.project.model.typesystem.ITerm;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
9E5DF04C0C8D7D1ADE2E87837DC65624
* @ConQAT.Rating
GREEN
Hash:
AF5402FFB95EC3DBA2C8C170F10EAF23
*/
class
JavaReplacement
extends
TermReplacementVisitor
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/library/ComponentLibraryHandler.java
View file @
02be09b2
...
...
@@ -37,7 +37,7 @@ import org.fortiss.tooling.kernel.model.ILibraryElement;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating
YELLOW
Hash:
817738A48129FA7B01010F008F8C1ACB
* @ConQAT.Rating
GREEN
Hash:
7ED03096A7F34AF5FD4B0A19B6851621
*/
public
class
ComponentLibraryHandler
implements
ILibraryElementHandler
<
Component
>
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/model/impl/ComponentStaticImpl.java
View file @
02be09b2
...
...
@@ -54,7 +54,7 @@ import org.fortiss.af3.project.model.typesystem.VarBase;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 18709 $
* @ConQAT.Rating
YELLOW
Hash:
4BAEFC032DB33A8B71AFB32EB2867635
* @ConQAT.Rating
GREEN
Hash:
5C63D8FAE0720FE734D629BC37F4B9EF
*/
class
ComponentStaticImpl
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/model/impl/PortStaticImpl.java
View file @
02be09b2
...
...
@@ -41,7 +41,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author teufl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
8334E85C7B4260C6A796665657A133BB
* @ConQAT.Rating
GREEN
Hash:
906811B0191977ACC14E9DC0D340D144
*/
class
PortStaticImpl
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/simulator/transform/ExecutableComponentTransformationBase.java
View file @
02be09b2
...
...
@@ -32,7 +32,7 @@ import org.fortiss.tooling.kernel.utils.TransformationUtils;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash:
B657DB747CF31B343DF5C7CAA5119132
* @ConQAT.Rating GREEN Hash:
7E27370C19448BC885919D16C153F3AB
*/
public
abstract
class
ExecutableComponentTransformationBase
implements
ITransformationProvider
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/utils/ComponentLibraryUtils.java
View file @
02be09b2
...
...
@@ -24,6 +24,7 @@ import static org.fortiss.af3.expression.utils.ExpressionModelElementFactory.cre
import
static
org
.
fortiss
.
af3
.
project
.
utils
.
ProjectModelElementFactory
.
createDummyDevelopmentProcess
;
import
static
org
.
fortiss
.
af3
.
project
.
utils
.
ProjectModelElementFactory
.
createFileProject
;
import
static
org
.
fortiss
.
af3
.
project
.
utils
.
ProjectModelElementFactory
.
createProjectConfiguration
;
import
static
org
.
fortiss
.
tooling
.
kernel
.
utils
.
EcoreUtils
.
copy
;
import
static
org
.
fortiss
.
tooling
.
kernel
.
utils
.
EcoreUtils
.
getChildrenWithType
;
import
static
org
.
fortiss
.
tooling
.
kernel
.
utils
.
EcoreUtils
.
pickInstanceOf
;
import
static
org
.
fortiss
.
tooling
.
kernel
.
utils
.
KernelModelElementUtils
.
findElementById
;
...
...
@@ -46,7 +47,6 @@ import org.fortiss.tooling.kernel.model.IIdLabeled;
import
org.fortiss.tooling.kernel.model.INamedElement
;
import
org.fortiss.tooling.kernel.service.ILibraryService
;
import
org.fortiss.tooling.kernel.service.IPersistencyService
;
import
org.fortiss.tooling.kernel.utils.EcoreUtils
;
/**
* Utility methods for the component libraries.
...
...
@@ -54,7 +54,7 @@ import org.fortiss.tooling.kernel.utils.EcoreUtils;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating
YELLOW
Hash:
882D5B3DBA2286BD3AC1684FA24FACB8
* @ConQAT.Rating
GREEN
Hash:
B878BAF0EF99616AAE1B26509192E52C
*/
public
class
ComponentLibraryUtils
{
...
...
@@ -85,12 +85,12 @@ public class ComponentLibraryUtils {
List
<
DataDictionary
>
dd
=
getDataDictionaries
(
fp
);
List
<
DataDictionary
>
ddCopies
=
new
ArrayList
<
DataDictionary
>();
for
(
DataDictionary
d
:
dd
)
{
ddCopies
.
add
(
EcoreUtils
.
copy
(
d
));
ddCopies
.
add
(
copy
(
d
));
}
Component
top
=
comp
.
getTopComponentParent
();
ModelElementLibraryService
.
INSTANCE
.
ensureChildrenLibraryReferenceAreUpToDate
(
top
);
Component
newTop
=
EcoreUtils
.
copy
(
top
);
Component
newTop
=
copy
(
top
);
List
<
ComponentRef
>
componentReferences
=
getChildrenWithType
(
newTop
,
ComponentRef
.
class
);
for
(
ComponentRef
cRef
:
componentReferences
)
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/utils/ComponentModelElementFactory.java
View file @
02be09b2
...
...
@@ -48,7 +48,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
6E3F0C098AF86BC8807D9156FE0B123C
* @ConQAT.Rating
GREEN
Hash:
C32E210EB8359431714B9A71D9498B59
*/
public
final
class
ComponentModelElementFactory
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/utils/ComponentUtils.java
View file @
02be09b2
...
...
@@ -32,7 +32,7 @@ import org.fortiss.tooling.base.model.element.IHierarchicElement;
* @author SVoss
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
9F7D707D2186C9265239A762E3AA5F09
* @ConQAT.Rating
GREEN
Hash:
A22EA77D0CD69006408351FB51128F28
*/
public
class
ComponentUtils
{
...
...
@@ -71,7 +71,7 @@ public class ComponentUtils {
}
/**
* Returns the casted object i
t
it is a component, or its top component if it is a component
* Returns the casted object i
f
it is a component, or its top component if it is a component
* architecture.
*/
public
static
Component
componentOf
(
EObject
comp
)
{
...
...
org.fortiss.af3.component/trunk/src/org/fortiss/af3/component/utils/GeneratorModelElementFactory.java
View file @
02be09b2
...
...
@@ -46,7 +46,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
YELLOW
Hash:
78EFB7F3B7D3E612AF14A2FCD34F04E1
* @ConQAT.Rating
GREEN
Hash:
366A71B019F49A5444898B0756536CF9
*/
public
class
GeneratorModelElementFactory
{
...
...
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