deobfuscation type switch ribbon fixed

This commit is contained in:
Jindra Petřík
2014-08-23 20:30:26 +02:00
parent 46f477e660
commit cdfb0cf538
2 changed files with 10 additions and 4 deletions

View File

@@ -278,6 +278,12 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
return mainMenu;
}
private List<RibbonBandResizePolicy> getEmptyResizePolicies(JRibbonBand ribbonBand) {
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
resizePolicies.add(new CoreRibbonResizePolicies.Mirror(ribbonBand.getControlPanel()));
return resizePolicies;
}
private List<RibbonBandResizePolicy> getResizePolicies(JRibbonBand ribbonBand) {
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
resizePolicies.add(new CoreRibbonResizePolicies.Mirror(ribbonBand.getControlPanel()));
@@ -501,8 +507,8 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
assignListener(clearRecentFilesCommandButton, ACTION_CLEAR_RECENT_FILES);
advancedSettingsBand.addCommandButton(clearRecentFilesCommandButton, RibbonElementPriority.MEDIUM);
JRibbonBand deobfuscationBand = new JRibbonBand(translate("menu.deobfuscation"), null);
deobfuscationBand.setResizePolicies(getResizePolicies(deobfuscationBand));
JRibbonBand deobfuscationBand = new JRibbonBand(translate("menu.deobfuscation"), null);
deobfuscationBand.setResizePolicies(getEmptyResizePolicies(deobfuscationBand)); //TODO: add icons and change this to getResizePolicies
CommandToggleButtonGroup grpDeobfuscation = new CommandToggleButtonGroup();

View File

@@ -514,7 +514,7 @@ contextmenu.parseActions = Parse actions
contextmenu.parseABC = Parse ABC
contextmenu.parseInstructions = Parse AVM2 Instrctions
menu.deobfuscation = Debofuscation
menu.deobfuscation = Deobfuscation
menu.file.deobfuscation.disabled = Disabled
menu.file.deobfuscation.old = Olddddddddddd
menu.file.deobfuscation.old = Old
menu.file.deobfuscation.new = New