public class Printing implements EntryPoint {
public static final String SHOW_DEFAULT_PRINT_KEY = "ShowDefaultPrint";
public void onModuleLoad() {
ToolbarRegistry.put(SHOW_DEFAULT_PRINT_KEY, new ToolCreator() {
public ToolbarBaseAction createTool(MapWidget mapWidget) {
return new PrintingAction(mapWidget);
}
});