+
+ // Add the default Mograsim memory block to make it less confusing and more comfortable.
+ DebugPlugin.getDefault().getMemoryBlockManager()
+ .addMemoryBlocks(new IMemoryBlock[] { new MainMemoryBlockExtension(debugTarget, "0", null) });
+ }
+
+ private static Optional<IFile> fileOptional(IProject project, String filename)
+ {
+ if ("".equals(filename))
+ return Optional.empty();
+ return Optional.of(project.getFile(filename));