Issue #710 Information about deobfuscation settings in the error comment

This commit is contained in:
Jindra Petřík
2014-11-05 19:04:49 +01:00
parent 881e32e349
commit 7027ed6da7
6 changed files with 19 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ import java.util.logging.Logger;
* Represents one ACTIONRECORD, also has some static method to work with Actions
*/
public class Action implements GraphSourceItem {
private boolean ignored = false;
/**
* Action type identifier
@@ -880,6 +880,7 @@ public class Action implements GraphSourceItem {
"",
" * " + AppResources.translate("decompilationError"),
" * " + AppResources.translate("decompilationError.obfuscated"),
Helper.decompilationErrorAdd==null?null:" * "+Helper.decompilationErrorAdd,
" * " + AppResources.translate("decompilationError.errorType") + ": "
+ ex2.getClass().getSimpleName(),
""}));

View File

@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.graph.model;
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
@@ -41,6 +42,9 @@ public class CommentItem extends GraphTargetItem {
public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) {
writer.append("/* ");
for (int i = 0; i < commentLines.length; i++) {
if(commentLines[i]==null){
continue;
}
writer.append(commentLines[i]);
if (i != commentLines.length - 1) {
writer.newLine();

View File

@@ -59,6 +59,8 @@ import java.util.regex.Pattern;
public class Helper {
public static String newLine = System.getProperty("line.separator");
public static String decompilationErrorAdd = null;
/**
* Converts array of int values to string
@@ -807,6 +809,9 @@ public class Helper {
writer.appendNoHilight("/*").newLine();
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError")).newLine();
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError.obfuscated")).newLine();
if(decompilationErrorAdd!=null){
writer.appendNoHilight(" * ").appendNoHilight(decompilationErrorAdd).newLine();
}
writer.appendNoHilight(" * ").appendNoHilight(AppResources.translate("decompilationError.errorType")).
appendNoHilight(": " + ex.getClass().getSimpleName()).newLine();
writer.appendNoHilight(" */").newLine();