mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 03:10:43 +00:00
deobfuscation type switch ribbon fixed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user