Search in sources :

Example 1 with GoogleReverseGeocodingAction

use of org.geosdi.geoplatform.gui.client.action.toolbar.GoogleReverseGeocodingAction in project geo-platform by geosdi.

the class Geocoding method addReverseGeocodingAction.

private void addReverseGeocodingAction() {
    MenuActionRegistar menuRegistar = BasicGinInjector.MainInjector.getInstance().getMenuActionRegistar();
    menuRegistar.put("geocoding", new MenuActionCreator() {

        @Override
        public MenuAction createAction() {
            return new GeocodingMenuAction();
        }
    });
    ToolbarActionRegistar toolbarRegistar = BasicGinInjector.MainInjector.getInstance().getToolbarActionRegistar();
    toolbarRegistar.put("googleReverseGeocoding", new ToolbarActionCreator() {

        @Override
        public ToolbarAction createActionTool(GeoPlatformMap mapWidget) {
            return new GoogleReverseGeocodingAction(mapWidget);
        }
    });
    toolbarRegistar.put("yahooReverseGeocoding", new ToolbarActionCreator() {

        @Override
        public ToolbarAction createActionTool(GeoPlatformMap mapWidget) {
            return new YahooReverseGeocodingAction(mapWidget);
        }
    });
}
Also used : MenuAction(org.geosdi.geoplatform.gui.action.menu.MenuAction) GeocodingMenuAction(org.geosdi.geoplatform.gui.client.action.menu.GeocodingMenuAction) GeocodingMenuAction(org.geosdi.geoplatform.gui.client.action.menu.GeocodingMenuAction) MenuActionCreator(org.geosdi.geoplatform.gui.action.menu.MenuActionCreator) MenuActionRegistar(org.geosdi.geoplatform.gui.action.menu.MenuActionRegistar) ToolbarActionCreator(org.geosdi.geoplatform.gui.action.ToolbarActionCreator) ToolbarAction(org.geosdi.geoplatform.gui.action.ToolbarAction) YahooReverseGeocodingAction(org.geosdi.geoplatform.gui.client.action.toolbar.YahooReverseGeocodingAction) GeoPlatformMap(org.geosdi.geoplatform.gui.impl.map.GeoPlatformMap) GoogleReverseGeocodingAction(org.geosdi.geoplatform.gui.client.action.toolbar.GoogleReverseGeocodingAction) ToolbarActionRegistar(org.geosdi.geoplatform.gui.action.ToolbarActionRegistar)

Aggregations

ToolbarAction (org.geosdi.geoplatform.gui.action.ToolbarAction)1 ToolbarActionCreator (org.geosdi.geoplatform.gui.action.ToolbarActionCreator)1 ToolbarActionRegistar (org.geosdi.geoplatform.gui.action.ToolbarActionRegistar)1 MenuAction (org.geosdi.geoplatform.gui.action.menu.MenuAction)1 MenuActionCreator (org.geosdi.geoplatform.gui.action.menu.MenuActionCreator)1 MenuActionRegistar (org.geosdi.geoplatform.gui.action.menu.MenuActionRegistar)1 GeocodingMenuAction (org.geosdi.geoplatform.gui.client.action.menu.GeocodingMenuAction)1 GoogleReverseGeocodingAction (org.geosdi.geoplatform.gui.client.action.toolbar.GoogleReverseGeocodingAction)1 YahooReverseGeocodingAction (org.geosdi.geoplatform.gui.client.action.toolbar.YahooReverseGeocodingAction)1 GeoPlatformMap (org.geosdi.geoplatform.gui.impl.map.GeoPlatformMap)1