as3 instruction parsing test added

This commit is contained in:
honfika@gmail.com
2015-03-21 23:41:01 +01:00
parent f390c1463d
commit e20d4048bb
4 changed files with 54 additions and 3 deletions

View File

@@ -737,12 +737,21 @@ public class MainFrameRibbonMenu extends MainFrameMenu implements ActionListener
}
});
JCommandButton fixAs3CodeCommandButton = new JCommandButton(fixCommandTitle("Fix AS3 code"), icon);
fixAs3CodeCommandButton.addActionListener(e -> {
SWF swf = mainFrame.getPanel().getCurrentSwf();
if (swf != null) {
swf.fixAS3Code();
}
});
debugBand.addCommandButton(removeNonScriptsCommandButton, RibbonElementPriority.MEDIUM);
debugBand.addCommandButton(refreshDecompiledCommandButton, RibbonElementPriority.MEDIUM);
debugBand.addCommandButton(checkResourcesCommandButton, RibbonElementPriority.MEDIUM);
debugBand.addCommandButton(callGcCommandButton, RibbonElementPriority.MEDIUM);
debugBand.addCommandButton(emptyCacheCommandButton, RibbonElementPriority.MEDIUM);
debugBand.addCommandButton(memoryInformationCommandButton, RibbonElementPriority.MEDIUM);
debugBand.addCommandButton(fixAs3CodeCommandButton, RibbonElementPriority.MEDIUM);
return new RibbonTask("Debug", debugBand);
}