Project now correctly identified from file
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / mi / InstructionView.java
index af7e211..0df15cd 100644 (file)
@@ -171,7 +171,8 @@ public class InstructionView extends EditorPart implements MemoryCellModifiedLis
                if (input instanceof IFileEditorInput)
                {
                        IFileEditorInput fileInput = (IFileEditorInput) input;
-                       context = ProjectMachineContext.getMachineContextOf(fileInput.getFile());
+                       context = ProjectMachineContext.getMachineContextOf(fileInput.getFile().getProject());
+
                        setPartName(fileInput.getName());
                        open(fileInput.getFile());
                }