From 232048c3959adad5f2c4caf9be97add732daecfc Mon Sep 17 00:00:00 2001 From: Fabian Stemmler Date: Sun, 22 Sep 2019 20:13:22 +0200 Subject: [PATCH] Project now correctly identified from file --- .../src/net/mograsim/plugin/tables/mi/InstructionView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/InstructionView.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/InstructionView.java index af7e2113..0df15cda 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/InstructionView.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/InstructionView.java @@ -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()); } -- 2.17.1