Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
32601b55
Commit
32601b55
authored
12 years ago
by
Sebastian Krings
Browse files
Options
Downloads
Patches
Plain Diff
renaming some variables
parent
4a86793c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
de.prob.units/src/de/prob/units/sc/ContextAttributeProcessor.java
+6
-5
6 additions, 5 deletions
...units/src/de/prob/units/sc/ContextAttributeProcessor.java
with
6 additions
and
5 deletions
de.prob.units/src/de/prob/units/sc/ContextAttributeProcessor.java
+
6
−
5
View file @
32601b55
...
@@ -29,19 +29,20 @@ public class ContextAttributeProcessor extends SCProcessorModule {
...
@@ -29,19 +29,20 @@ public class ContextAttributeProcessor extends SCProcessorModule {
assert
(
target
instanceof
ISCContextRoot
);
assert
(
target
instanceof
ISCContextRoot
);
// get all variables and copy over the attributes
// get all variables and copy over the attributes
IRodinFile
machine
File
=
(
IRodinFile
)
element
;
IRodinFile
context
File
=
(
IRodinFile
)
element
;
IContextRoot
con
stan
tRoot
=
(
IContextRoot
)
machine
File
.
getRoot
();
IContextRoot
con
tex
tRoot
=
(
IContextRoot
)
context
File
.
getRoot
();
ISCContextRoot
scContextRoot
=
(
ISCContextRoot
)
target
;
ISCContextRoot
scContextRoot
=
(
ISCContextRoot
)
target
;
IConstant
[]
constants
=
constantRoot
.
getConstants
();
IConstant
[]
constants
=
contextRoot
.
getConstants
();
ISCConstant
[]
scconstants
=
scContextRoot
.
getSCConstants
();
if
(
constants
.
length
==
0
)
if
(
constants
.
length
==
0
)
return
;
return
;
for
(
IConstant
constant
:
constants
)
{
for
(
IConstant
constant
:
constants
)
{
ISCConstant
scConstant
=
scContextRoot
.
getSCConstant
(
constant
String
identifier
=
constant
.
getElementName
();
.
getI
dentifier
String
()
);
ISCConstant
scConstant
=
scContextRoot
.
getSCConstant
(
i
dentifier
);
// might have been filtered out by previous modules
// might have been filtered out by previous modules
if
(
scConstant
.
exists
())
{
if
(
scConstant
.
exists
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment