mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 15:14:49 +00:00
Multiname table fix
AS3 direct editing - Reloading constants table
This commit is contained in:
@@ -691,8 +691,9 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener, Se
|
||||
((Tag) abc.parentTag).setModified(true);
|
||||
lastDecompiled = decompiledTextArea.getText();
|
||||
decompiledTextArea.setClassIndex(-1);
|
||||
View.showMessageDialog(this, AppStrings.translate("message.action.saved"));
|
||||
navigator.setClassIndex(-1, oldIndex);
|
||||
setDecompiledEditMode(false);
|
||||
View.showMessageDialog(this, AppStrings.translate("message.action.saved"));
|
||||
reload();
|
||||
} catch (ParseException ex) {
|
||||
ex.printStackTrace();
|
||||
|
||||
@@ -131,16 +131,16 @@ public class MultinameTableModel implements TableModel {
|
||||
if (rowIndex == 0) {
|
||||
return "";
|
||||
}
|
||||
if (abc.constants.getMultiname(rowIndex).namespace_index == -1) {
|
||||
return "";
|
||||
if (abc.constants.getMultiname(rowIndex).namespace_index <= 0 ) {
|
||||
return "-";
|
||||
}
|
||||
return abc.constants.getMultiname(rowIndex).getNamespace(abc.constants).getNameWithKind(abc.constants);
|
||||
case 4:
|
||||
if (rowIndex == 0) {
|
||||
return "";
|
||||
}
|
||||
if (abc.constants.getMultiname(rowIndex).namespace_set_index == -1) {
|
||||
return "";
|
||||
if (abc.constants.getMultiname(rowIndex).namespace_set_index <= 0) {
|
||||
return "-";
|
||||
}
|
||||
return abc.constants.getMultiname(rowIndex).getNamespaceSet(abc.constants).toString(abc.constants);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user