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
675dc4d6
Commit
675dc4d6
authored
Jan 16, 2013
by
Sebastian Krings
Browse files
Options
Downloads
Patches
Plain Diff
moved config setter
parent
58c2d39b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
de.prob.units/src/de/prob/units/Activator.java
+0
-1
0 additions, 1 deletion
de.prob.units/src/de/prob/units/Activator.java
de.prob.units/src/de/prob/units/ConfSettor.java
+10
-3
10 additions, 3 deletions
de.prob.units/src/de/prob/units/ConfSettor.java
with
10 additions
and
4 deletions
de.prob.units/src/de/prob/units/Activator.java
+
0
−
1
View file @
675dc4d6
...
@@ -4,7 +4,6 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
...
@@ -4,7 +4,6 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
import
org.osgi.framework.BundleContext
;
import
org.osgi.framework.BundleContext
;
import
org.rodinp.core.RodinCore
;
import
org.rodinp.core.RodinCore
;
import
de.prob.units.sc.ConfSettor
;
/**
/**
* The activator class controls the plug-in life cycle
* The activator class controls the plug-in life cycle
...
...
This diff is collapsed.
Click to expand it.
de.prob.units/src/de/prob/units/
sc/
ConfSettor.java
→
de.prob.units/src/de/prob/units/ConfSettor.java
+
10
−
3
View file @
675dc4d6
package
de.prob.units
.sc
;
package
de.prob.units
;
import
org.eventb.core.IContextRoot
;
import
org.eventb.core.IMachineRoot
;
import
org.eventb.core.IMachineRoot
;
import
org.rodinp.core.ElementChangedEvent
;
import
org.rodinp.core.ElementChangedEvent
;
import
org.rodinp.core.IElementChangedListener
;
import
org.rodinp.core.IElementChangedListener
;
...
@@ -12,8 +13,6 @@ import org.rodinp.core.IRodinFile;
...
@@ -12,8 +13,6 @@ import org.rodinp.core.IRodinFile;
import
org.rodinp.core.IRodinProject
;
import
org.rodinp.core.IRodinProject
;
import
org.rodinp.core.RodinDBException
;
import
org.rodinp.core.RodinDBException
;
import
de.prob.units.Activator
;
/**
/**
* Class that updates the configuration of files, to add the static checker
* Class that updates the configuration of files, to add the static checker
* modules for our qualitative probabilistic reasoning plug-in.
* modules for our qualitative probabilistic reasoning plug-in.
...
@@ -53,6 +52,14 @@ public class ConfSettor implements IElementChangedListener {
...
@@ -53,6 +52,14 @@ public class ConfSettor implements IElementChangedListener {
mch
.
setConfiguration
(
conf
+
";"
+
CONFIG
,
null
);
mch
.
setConfiguration
(
conf
+
";"
+
CONFIG
,
null
);
}
}
}
}
if
(
root
.
getElementType
().
equals
(
IContextRoot
.
ELEMENT_TYPE
))
{
final
IContextRoot
ctx
=
(
IContextRoot
)
root
;
final
String
conf
=
ctx
.
getConfiguration
();
if
(!
conf
.
contains
(
CONFIG
))
{
ctx
.
setConfiguration
(
conf
+
";"
+
CONFIG
,
null
);
}
}
}
}
}
}
}
}
\ No newline at end of file
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