public class PluginMenuUtils
extends java.lang.Object
Constructor and Description |
---|
PluginMenuUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<javax.swing.JMenuItem> |
addPluginMenus(ConsoleLayout console,
java.lang.Object plugin)
This method will look for NeptusMenuItem annotatated methods and add them as menus to the console
|
static void |
removePluginMenus(ConsoleLayout console,
java.lang.Object plugin)
This method will remove the automatically added menus from given plugin
|
static java.lang.String |
translatePath(java.lang.String path) |
public static java.lang.String translatePath(java.lang.String path)
public static java.util.List<javax.swing.JMenuItem> addPluginMenus(ConsoleLayout console, java.lang.Object plugin)
console
- The console where to add the menusplugin
- A class with zero or more NeptusMenuItem annotated methods.public static void removePluginMenus(ConsoleLayout console, java.lang.Object plugin)
console
- The console from which to remove the menusplugin
- The plugin from where the menus were addedaddPluginMenus(ConsoleLayout, Object)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.