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
@@ -278,6 +278,12 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
return mainMenu; 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) { private List<RibbonBandResizePolicy> getResizePolicies(JRibbonBand ribbonBand) {
List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>(); List<RibbonBandResizePolicy> resizePolicies = new ArrayList<>();
resizePolicies.add(new CoreRibbonResizePolicies.Mirror(ribbonBand.getControlPanel())); resizePolicies.add(new CoreRibbonResizePolicies.Mirror(ribbonBand.getControlPanel()));
@@ -501,8 +507,8 @@ public class MainFrameRibbonMenu implements MainFrameMenu, ActionListener {
assignListener(clearRecentFilesCommandButton, ACTION_CLEAR_RECENT_FILES); assignListener(clearRecentFilesCommandButton, ACTION_CLEAR_RECENT_FILES);
advancedSettingsBand.addCommandButton(clearRecentFilesCommandButton, RibbonElementPriority.MEDIUM); advancedSettingsBand.addCommandButton(clearRecentFilesCommandButton, RibbonElementPriority.MEDIUM);
JRibbonBand deobfuscationBand = new JRibbonBand(translate("menu.deobfuscation"), null); JRibbonBand deobfuscationBand = new JRibbonBand(translate("menu.deobfuscation"), null);
deobfuscationBand.setResizePolicies(getResizePolicies(deobfuscationBand)); deobfuscationBand.setResizePolicies(getEmptyResizePolicies(deobfuscationBand)); //TODO: add icons and change this to getResizePolicies
CommandToggleButtonGroup grpDeobfuscation = new CommandToggleButtonGroup(); CommandToggleButtonGroup grpDeobfuscation = new CommandToggleButtonGroup();
@@ -514,7 +514,7 @@ contextmenu.parseActions = Parse actions
contextmenu.parseABC = Parse ABC contextmenu.parseABC = Parse ABC
contextmenu.parseInstructions = Parse AVM2 Instrctions contextmenu.parseInstructions = Parse AVM2 Instrctions
menu.deobfuscation = Debofuscation menu.deobfuscation = Deobfuscation
menu.file.deobfuscation.disabled = Disabled menu.file.deobfuscation.disabled = Disabled
menu.file.deobfuscation.old = Olddddddddddd menu.file.deobfuscation.old = Old
menu.file.deobfuscation.new = New menu.file.deobfuscation.new = New