Project now correctly identified from file
authorFabian Stemmler <stemmler@in.tum.de>
Sun, 22 Sep 2019 18:13:22 +0000 (20:13 +0200)
committerFabian Stemmler <stemmler@in.tum.de>
Sun, 22 Sep 2019 18:13:22 +0000 (20:13 +0200)
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());
                }