projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduced getters for executionSpeed
[Mograsim.git]
/
plugins
/
net.mograsim.plugin.core
/
src
/
net
/
mograsim
/
plugin
/
launch
/
MachineDebugTarget.java
diff --git
a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineDebugTarget.java
b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineDebugTarget.java
index
328c589
..
a060bd5
100644
(file)
--- a/
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineDebugTarget.java
+++ b/
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/launch/MachineDebugTarget.java
@@
-74,9
+74,15
@@
public class MachineDebugTarget extends PlatformObject implements IDebugTarget,
return launch;
}
+ public double getExecutionSpeed()
+ {
+ return exec.getSpeedFactor();
+ }
+
public void setExecutionSpeed(double speed)
{
- exec.setSpeedFactor(speed);
+ if (getExecutionSpeed() != speed)
+ exec.setSpeedFactor(speed);
}
@Override