Marked old MachineContext deprecated
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / MachineContext.java
index 2e7a9c1..c22c1c7 100644 (file)
@@ -6,7 +6,12 @@ import java.util.Set;
 
 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;
@@ -24,7 +29,7 @@ public class MachineContext
                {
                        instance = new MachineContext();
                        // TODO don't hardcode the Am2900
-                       instance.setMachine(MachineRegistry.getinstalledMachines().get("Am2900").createNew());
+                       instance.setMachine(MachineRegistry.getMachine("Am2900").createNew());
                }
                return instance;
        }