no message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package _VisualDVM.Visual.Menus;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.Menus.VisualiserMenuItem;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -15,15 +15,15 @@ class StableItemUI extends BasicMenuItemUI {
|
||||
@Override
|
||||
protected void doClick(MenuSelectionManager msm) {
|
||||
menuItem.doClick(0);
|
||||
if (CommonUI.last_menu_path != null)
|
||||
MenuSelectionManager.defaultManager().setSelectedPath(CommonUI.last_menu_path);
|
||||
if (UI_.last_menu_path != null)
|
||||
MenuSelectionManager.defaultManager().setSelectedPath(UI_.last_menu_path);
|
||||
}
|
||||
}
|
||||
public class StableMenuItem extends VisualiserMenuItem {
|
||||
{
|
||||
getModel().addChangeListener(e -> {
|
||||
if (getModel().isArmed() && isShowing())
|
||||
CommonUI.last_menu_path = MenuSelectionManager.defaultManager().getSelectedPath();
|
||||
UI_.last_menu_path = MenuSelectionManager.defaultManager().getSelectedPath();
|
||||
});
|
||||
}
|
||||
public StableMenuItem(String text) {
|
||||
@@ -32,7 +32,7 @@ public class StableMenuItem extends VisualiserMenuItem {
|
||||
}
|
||||
public StableMenuItem(String text, String icon_path) {
|
||||
super(text);
|
||||
setIcon(CommonUtils.getIcon(icon_path));
|
||||
setIcon(Utils_.getIcon(icon_path));
|
||||
setUI(new StableItemUI());
|
||||
}
|
||||
public StableMenuItem() {
|
||||
|
||||
Reference in New Issue
Block a user