Add MenuAPI
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user