projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a reset button to SimulationViewEditor
[Mograsim.git]
/
plugins
/
net.mograsim.plugin.core
/
src
/
net
/
mograsim
/
plugin
/
MachineContext.java
diff --git
a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MachineContext.java
b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MachineContext.java
index
2e7a9c1
..
c22c1c7
100644
(file)
--- a/
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MachineContext.java
+++ b/
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/MachineContext.java
@@
-6,7
+6,12
@@
import java.util.Set;
import net.mograsim.machine.Machine;
import net.mograsim.machine.MachineRegistry;
import net.mograsim.machine.Machine;
import net.mograsim.machine.MachineRegistry;
+import net.mograsim.plugin.nature.ProjectMachineContext;
+/**
+ * @deprecated use the {@link ProjectMachineContext} instead to make the context project dependent.
+ */
+@Deprecated(forRemoval = true)
public class MachineContext
{
private Machine machine;
public class MachineContext
{
private Machine machine;
@@
-24,7
+29,7
@@
public class MachineContext
{
instance = new MachineContext();
// TODO don't hardcode the Am2900
{
instance = new MachineContext();
// TODO don't hardcode the Am2900
- instance.setMachine(MachineRegistry.get
installedMachines().get
("Am2900").createNew());
+ instance.setMachine(MachineRegistry.get
Machine
("Am2900").createNew());
}
return instance;
}
}
return instance;
}