code: public void onModuleLoad() {
  		ToolbarRegistry.put(RasterizingToolId.GET_LEGEND_IMAGE, new ToolCreator() {
  
  			public ToolbarBaseAction createTool(MapWidget mapWidget) {
  				return new GetLegendImageAction(mapWidget);
  			}
  		});
  		ToolbarRegistry.put(RasterizingToolId.GET_MAP_IMAGE, new ToolCreator() {
  
  			public ToolbarBaseAction createTool(MapWidget mapWidget) {
  				return new GetMapImageAction(mapWidget);
  			}
  		});
  	}
docs: Registers toolbar actions.