jump to resources view from hex view

This commit is contained in:
2016-08-01 16:53:54 +02:00
parent 234ed1c915
commit 5107a644cc
63 changed files with 23142 additions and 22930 deletions
@@ -94,7 +94,6 @@ public class DumpInfo implements TreeItem {
}
Collections.sort(childInfos, new Comparator<DumpInfo>() {
@Override
public int compare(DumpInfo o1, DumpInfo o2) {
int res = Long.compare(o1.startByte, o2.startByte);
@@ -149,7 +148,7 @@ public class DumpInfo implements TreeItem {
@Override
public SWF getSwf() {
Tag tag = getTag();
Tag tag = tagToResolve != null ? tagToResolve : resolvedTag;
if (tag != null) {
return tag.getSwf();
}
@@ -0,0 +1,39 @@
/*
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
package com.jpexs.decompiler.flash.dumpview;
/**
*
* @author JPEXS
*/
public class DumpInfoSpecial extends DumpInfo {
public DumpInfoSpecialType specialType;
public Object specialValue;
public DumpInfoSpecial(String name, String type, Object value, long startByte, int startBit, long lengthBytes, int lengthBits, DumpInfoSpecialType specialType) {
super(name, type, value, startByte, startBit, lengthBytes, lengthBits);
this.specialType = specialType;
}
public DumpInfoSpecial(String name, String type, Object value, long startByte, int startBit, long lengthBytes, int lengthBits, DumpInfoSpecialType specialType, Object specialValue) {
super(name, type, value, startByte, startBit, lengthBytes, lengthBits);
this.specialType = specialType;
this.specialValue = specialValue;
}
}
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
package com.jpexs.decompiler.flash.dumpview;
/**
*
* @author JPEXS
*/
public enum DumpInfoSpecialType {
NONE, ZLIB_DATA,
TAG,
ACTION_BYTES,
ABC_BYTES, ABC_METHOD_BODY, ABC_CODE
}