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
ce888ebd
Commit
ce888ebd
authored
Jul 12, 2012
by
Florian Hölzl
Browse files
YELLOW
refs 862
parent
bf36418b
Changes
23
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.deployment.ui/trunk/src/org/fortiss/af3/deployment/ui/editor/DeploymentEditorGUI.java
View file @
ce888ebd
...
...
@@ -42,7 +42,7 @@ import org.eclipse.ui.forms.widgets.ScrolledForm;
* @author doebber
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash:
7313EC210B2457DBA4ABBCDB669C2599
* @ConQAT.Rating GREEN Hash:
C839CAD9BA535AC4442A1343A841307D
*/
public
class
DeploymentEditorGUI
extends
Composite
{
private
class
TableLabelProvider
extends
LabelProvider
implements
ITableLabelProvider
{
...
...
org.fortiss.af3.deployment.ui/trunk/src/org/fortiss/af3/deployment/ui/editor/DeploymentPortMappingEditorGUI.java
View file @
ce888ebd
...
...
@@ -40,7 +40,7 @@ import org.eclipse.wb.swt.SWTResourceManager;
* @author doebber
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RE
D
Hash:
* @ConQAT.Rating
G
RE
EN
Hash:
9F65C84334D7ACC827BA32548C84DE34
*/
public
class
DeploymentPortMappingEditorGUI
extends
Composite
{
private
final
FormToolkit
formToolkit
=
new
FormToolkit
(
Display
.
getDefault
());
...
...
org.fortiss.af3.deployment.ui/trunk/src/org/fortiss/af3/deployment/ui/editor/DeploymentTransceiverMappingEditorGUI.java
View file @
ce888ebd
...
...
@@ -40,7 +40,7 @@ import org.eclipse.wb.swt.SWTResourceManager;
* @author doebber
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RE
D
Hash:
* @ConQAT.Rating
G
RE
EN
Hash:
B562C05CCB0345A4422748A8413B2EE8
*/
public
class
DeploymentTransceiverMappingEditorGUI
extends
Composite
{
private
final
FormToolkit
formToolkit
=
new
FormToolkit
(
Display
.
getDefault
());
...
...
org.fortiss.af3.expression.ui/trunk/src/org/fortiss/af3/expression/ui/databinding/validate/StringToIExpressionTermWithTypeCheckValidatorBase.java
View file @
ce888ebd
...
...
@@ -27,7 +27,6 @@ import org.fortiss.af3.expression.language.evaluation.NoVal;
import
org.fortiss.af3.expression.model.types.TDefinedType
;
import
org.fortiss.af3.project.model.typesystem.IType
;
import
org.fortiss.af3.project.typesystem.ITypeChecker
;
import
org.fortiss.af3.project.typesystem.TypeCheckException
;
/**
* Base implementation for databinding validator checking a term against a type.
...
...
@@ -35,7 +34,7 @@ import org.fortiss.af3.project.typesystem.TypeCheckException;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
16641F8E27072095881948B733A8A8E
B
* @ConQAT.Rating YELLOW Hash:
203136A9188D6149C3071A663E997F5
B
*/
public
abstract
class
StringToIExpressionTermWithTypeCheckValidatorBase
extends
StringToIExpressionTermValidator
{
...
...
@@ -62,14 +61,10 @@ public abstract class StringToIExpressionTermWithTypeCheckValidatorBase extends
return
cancel
(
getUnknownTypeMessage
());
}
ITypeChecker
tc
=
handler
.
getTypeChecker
();
try
{
if
(!
tc
.
typecheck
(
expression
,
type
,
context
))
{
return
cancel
(
expression
.
toString
()
+
" is not valid for type "
+
type
);
}
return
OK_STATUS
;
}
catch
(
TypeCheckException
e
)
{
if
(!
tc
.
typecheck
(
expression
,
type
,
context
))
{
return
cancel
(
expression
.
toString
()
+
" is not valid for type "
+
type
);
}
return
OK_STATUS
;
}
return
stat
;
}
...
...
org.fortiss.af3.expression/trunk/src/org/fortiss/af3/expression/language/Evaluator.java
View file @
ce888ebd
...
...
@@ -61,7 +61,7 @@ import org.fortiss.af3.project.typesystem.evaluation.Term;
* @author hoelzl
* @author $Author: ratiu $
* @version $Rev: 1517 $
* @ConQAT.Rating YELLOW Hash:
9CB7D630538A01C1B445A4DB36B5A12A
* @ConQAT.Rating YELLOW Hash:
BC0C4D5A05FB996119C4E5849EF1BB0D
*/
public
class
Evaluator
implements
ITermEvaluator
{
...
...
org.fortiss.af3.expression/trunk/src/org/fortiss/af3/expression/language/TypeSystemHandler.java
View file @
ce888ebd
...
...
@@ -35,7 +35,7 @@ import org.fortiss.af3.project.typesystem.ITypeSystemHandler;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
F3D68F42DD7D7E257D046A9B2C5460DB
* @ConQAT.Rating YELLOW Hash:
A27A03712166FE42B1E9CA2A96050380
*/
public
final
class
TypeSystemHandler
implements
ITypeSystemHandler
<
MicroTypeSystem
>
{
...
...
org.fortiss.af3.expression/trunk/src/org/fortiss/af3/expression/utils/ExpressionModelElementFactory.java
View file @
ce888ebd
...
...
@@ -81,7 +81,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
2A39F9F21F23DADE1D4275740FCA928A
* @ConQAT.Rating
YELLOW
Hash:
3463E5DAA44984653077CA4119DBF22E
*/
public
class
ExpressionModelElementFactory
{
...
...
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/textgen/c/CFilesTextGenerator.java
View file @
ce888ebd
...
...
@@ -31,7 +31,7 @@ import org.fortiss.af3.generator.common.model.source.Import;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
FD656C97BFCA667FCD0F08ABCA6691E6
* @ConQAT.Rating
YELLOW
Hash:
BB451DB22AA5B0B28451B5DA0661770B
*/
public
class
CFilesTextGenerator
{
...
...
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/textgen/c/CLanguageConstructTextGenerator.java
View file @
ce888ebd
...
...
@@ -38,7 +38,7 @@ import org.fortiss.af3.generator.common.model.c.impl.CFunctionDefinitionImpl;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
0E38761D48314FF7945B549DD1D5627C
* @ConQAT.Rating
YELLOW
Hash:
A103ED94764510FED8E11069F4C1F3FD
*/
public
class
CLanguageConstructTextGenerator
{
...
...
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/textgen/c/CLanguageTypesTextGenerator.java
View file @
ce888ebd
...
...
@@ -27,7 +27,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
B7B85D9A79844526BE86BB165CAC310A
* @ConQAT.Rating
YELLOW
Hash:
A791F82366A53886EC4F34DFC8101538
*/
public
class
CLanguageTypesTextGenerator
{
/** The prefix used for generated C types. */
...
...
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/textgen/c/templates/package.html
View file @
ce888ebd
<!--
$Id: package.html 894 2011-07-07 07:36:03Z ratiu $
@version $Rev: 894 $
@ConQAT.Rating
GREEN
Hash:
EAB7F43E9E4DE3E2A123DE1F64ED9B6D
@ConQAT.Rating
YELLOW
Hash:
F34CE72C3D31E2DFA77A74929353338F
-->
<body>
TODO
Package for file templates used in C code generation: configure script, Makedefs, etc.
</body>
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/utils/CLanguageModelElementFacade.java
View file @
ce888ebd
...
...
@@ -46,7 +46,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author ratiu
* @author $Author: ratiu $
* @version $Rev: 4542 $
* @ConQAT.Rating YELLOW Hash:
C6A1312CB8FB461946D527808803DDA0
* @ConQAT.Rating YELLOW Hash:
8AE1D5F4334889F1DD5A69E4127115FC
*/
public
class
CLanguageModelElementFacade
{
...
...
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/utils/CLanguageModelElementFactory.java
View file @
ce888ebd
...
...
@@ -51,7 +51,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4
37E834E7014F44BB56E3ED14A01184B
* @ConQAT.Rating YELLOW Hash: 4
C79839B515BA6A84556EFD64A8DE7E0
*/
public
class
CLanguageModelElementFactory
{
...
...
org.fortiss.af3.generator.common/trunk/src/org/fortiss/af3/generator/common/utils/SourceUtils.java
View file @
ce888ebd
...
...
@@ -37,7 +37,7 @@ import org.fortiss.af3.generator.common.model.source.SourceUnit;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating
GREEN
Hash:
D2DA09252FB021A7C23CD8FA6DD713E3
* @ConQAT.Rating
YELLOW
Hash:
A20C8DC8AEE0EFA0EAE9FBF289C9FB96
*/
public
class
SourceUtils
{
...
...
org.fortiss.af3.platform.ui/trunk/src/org/fortiss/af3/platform/ui/compose/GenericToBusConnectionCompositor.java
View file @
ce888ebd
...
...
@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.extension.data.IConnectionCompositionContext;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
599BD737A7A5C78A45026E7370AED935
* @ConQAT.Rating YELLOW Hash:
164C7A067FB9E1A59B5B4085A6505B39
*/
public
final
class
GenericToBusConnectionCompositor
implements
IConnectionCompositor
<
IPlatformArchitectureElement
,
GenericTransceiver
,
GenericTransceiver
>
{
...
...
org.fortiss.af3.platform.ui/trunk/src/org/fortiss/af3/platform/ui/compose/GenericToExecutionUnitConnectionCompositor.java
View file @
ce888ebd
...
...
@@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.extension.data.IConnectionCompositionContext;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
FF1AD1B1C24D0446B5A7A8E5BCB408A7
* @ConQAT.Rating YELLOW Hash:
B3E935FE9BD40F5D6E483B984E6FC6AF
*/
public
final
class
GenericToExecutionUnitConnectionCompositor
implements
IConnectionCompositor
<
IPlatformArchitectureElement
,
GenericTransceiver
,
GenericTransceiver
>
{
...
...
org.fortiss.af3.project/trunk/src/org/fortiss/af3/project/typesystem/DefaultEvaluationContext.java
View file @
ce888ebd
...
...
@@ -32,7 +32,7 @@ import org.fortiss.af3.project.typesystem.evaluation.Term;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
098E7353B792F4B6A45DBB32F7AB853A
* @ConQAT.Rating YELLOW Hash:
9560D0AB09016A069194877291D6E597
*/
public
class
DefaultEvaluationContext
implements
IEvaluationContext
{
...
...
org.fortiss.af3.project/trunk/src/org/fortiss/af3/project/typesystem/IEvaluationContext.java
View file @
ce888ebd
...
...
@@ -29,7 +29,7 @@ import org.fortiss.af3.project.typesystem.evaluation.Term;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: F
0482C392D0ABF3742487C50E74C2F6D
* @ConQAT.Rating YELLOW Hash: F
D283A3085856B8F528FA1BFB4B1AF27
*/
public
interface
IEvaluationContext
{
...
...
org.fortiss.af3.project/trunk/src/org/fortiss/af3/project/typesystem/ITypeChecker.java
View file @
ce888ebd
...
...
@@ -28,7 +28,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash:
FE3D8A05DF5215AABD9B4BE6512D1B8A
* @ConQAT.Rating YELLOW Hash:
60BB85BDEDE306FA55F831DA29D1F2A8
*/
public
interface
ITypeChecker
{
...
...
org.fortiss.af3.project/trunk/src/org/fortiss/af3/project/typesystem/TypeCheckException.java
deleted
100644 → 0
View file @
bf36418b
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2005-2010 Technische Universitaet Muenchen |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package
org.fortiss.af3.project.typesystem
;
import
org.fortiss.af3.project.model.typesystem.IType
;
/**
* Generic type checker exception class.
* TODO this class is never used - do we still need it?
*
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: F5590CA7DA3D7B31A60975DEDC3329DA
*/
public
class
TypeCheckException
extends
RuntimeException
{
/** Stores the first type involved in the type checking. */
private
IType
primaryType
;
/** Stores the second type involved in the type checking. */
private
IType
secondaryType
;
/** Constructor. */
public
TypeCheckException
(
String
message
,
IType
primary
,
IType
secondary
)
{
super
(
message
);
this
.
primaryType
=
primary
;
this
.
secondaryType
=
secondary
;
}
/** {@inheritDoc} */
@Override
public
String
toString
()
{
StringBuffer
buf
=
new
StringBuffer
();
buf
.
append
(
getMessage
());
if
(
primaryType
!=
null
)
{
buf
.
append
(
": "
);
buf
.
append
(
primaryType
.
toString
());
}
if
(
secondaryType
!=
null
)
{
buf
.
append
(
" <-> "
);
buf
.
append
(
secondaryType
.
toString
());
}
return
buf
.
toString
();
}
}
Prev
1
2
Next
Write
Preview
Supports
Markdown
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