/** @return List for all Actions */ public static List<GeoPlatformActionCreator> getActionsCreator() { return new ArrayList<GeoPlatformActionCreator>(INSTANCE.getRegistry().values()); }
/** * Return the Toolbar Action * * @param key key with the action is registered * @param tree treePanel which will contains the toolAction * @return null or the toolAction registered */ public static GeoPlatformToolbarAction get(String key, TreePanel tree) { ToolbarTreeActionCreator toolActionCreator = (ToolbarTreeActionCreator) INSTANCE.getRegistry().get(key); return toolActionCreator == null ? null : toolActionCreator.createActionTool(tree); }
/** * @param key * @return null or the GeoPlatformToolbarAction */ public static GeoPlatformToolbarAction get(String key) { ToolbarTreeActionCreator toolActionCreator = (ToolbarTreeActionCreator) INSTANCE.getRegistry().get(key); return toolActionCreator == null ? null : toolActionCreator.getAction(); }
/** * @param key * @param toolActionCreator */ public static void put(String key, ToolbarTreeActionCreator toolActionCreator) { if (key != null && toolActionCreator != null) { INSTANCE.getRegistry().put(key, toolActionCreator); } }