From e1efc66c86cd3e95fb3222b1453842a894a6ff73 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 19 May 2014 21:46:03 +0400 Subject: [PATCH] content supplying method exposed --- .../fernflower/main/decompiler/EclipseDecompiler.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/de/fernflower/main/decompiler/EclipseDecompiler.java b/src/de/fernflower/main/decompiler/EclipseDecompiler.java index c18c19f..48f1e62 100644 --- a/src/de/fernflower/main/decompiler/EclipseDecompiler.java +++ b/src/de/fernflower/main/decompiler/EclipseDecompiler.java @@ -14,6 +14,8 @@ package de.fernflower.main.decompiler; +import java.io.File; +import java.io.IOException; import java.util.HashMap; import de.fernflower.main.DecompilerContext; @@ -36,8 +38,12 @@ public class EclipseDecompiler { DecompilerContext.setLogger(logger); } - - public void decompileContext() { + + public void addSpace(File file, boolean isOwn) throws IOException { + fernflower.getStructcontext().addSpace(file, isOwn); + } + + public void decompileContext() { fernflower.decompileContext(); }