mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-12 13:58:28 +00:00
disabling app menu items
This commit is contained in:
@@ -235,6 +235,7 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
|
||||
if (sub.startsWith("_/$")) //FooterMenu
|
||||
{
|
||||
RibbonApplicationMenuEntryFooter footerMenu = new RibbonApplicationMenuEntryFooter(View.getResizableIcon(subIcon, 16), subTitle, subAction);
|
||||
menuItems.put(sub, footerMenu);
|
||||
mainMenu.addFooterEntry(footerMenu);
|
||||
} else {
|
||||
RibbonApplicationMenuEntryPrimary menu = new RibbonApplicationMenuEntryPrimary(View.getResizableIcon(subIcon, 32), subTitle, subAction,
|
||||
@@ -248,6 +249,7 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
|
||||
}
|
||||
});
|
||||
}
|
||||
menuItems.put(sub, menu);
|
||||
mainMenu.addMenuEntry(menu);
|
||||
}
|
||||
|
||||
@@ -516,6 +518,10 @@ public class MainFrameRibbonMenu extends MainFrameMenu {
|
||||
((JRibbonBand) o).setEnabled(enabled);
|
||||
} else if (o instanceof AbstractCommandButton) {
|
||||
((AbstractCommandButton) o).setEnabled(enabled);
|
||||
} else if (o instanceof RibbonApplicationMenuEntryPrimary) {
|
||||
((RibbonApplicationMenuEntryPrimary) o).setEnabled(enabled);
|
||||
} else if (o instanceof RibbonApplicationMenuEntryFooter) {
|
||||
((RibbonApplicationMenuEntryFooter) o).setEnabled(enabled);
|
||||
} else if (o instanceof JComponent) {
|
||||
((JComponent) o).setEnabled(enabled);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user