Add MenuAPI

This commit is contained in:
fgnm
2020-11-22 14:22:05 +01:00
parent df8a5b1849
commit 4c16187f29
17 changed files with 57 additions and 30 deletions
@@ -1,5 +1,6 @@
package games.rednblack.editor.plugin.performance;
import games.rednblack.h2d.common.MenuAPI;
import games.rednblack.h2d.common.plugins.H2DPluginAdapter;
import net.mountainblade.modular.annotations.Implementation;
@@ -8,7 +9,6 @@ public class PerformancePlugin extends H2DPluginAdapter {
public static final String CLASS_NAME = "games.rednblack.editor.plugin.performance";
public static final String PANEL_OPEN = CLASS_NAME + ".PANEL_OPEN";
public static final String WINDOWS_MENU = "games.rednblack.editor.view.HyperLap2DMenuBar.WINDOW_MENU";
private final PerformancePanelMediator performancePanelMediator;
@@ -20,6 +20,6 @@ public class PerformancePlugin extends H2DPluginAdapter {
@Override
public void initPlugin() {
facade.registerMediator(performancePanelMediator);
pluginAPI.addMenuItem(WINDOWS_MENU, "Performance", PANEL_OPEN);
pluginAPI.addMenuItem(MenuAPI.WINDOW_MENU, "Performance", PANEL_OPEN);
}
}