comparison gwt-client/src/main/java/org/dive4elements/river/client/client/FLYS.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents e3a63d9c5bb1
children
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
67 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); 67 protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
68 68
69 /** The UserService used to retrieve information about the current user. */ 69 /** The UserService used to retrieve information about the current user. */
70 protected UserServiceAsync userService = GWT.create(UserService.class); 70 protected UserServiceAsync userService = GWT.create(UserService.class);
71 71
72 protected ServerInfoServiceAsync serverInfoService = GWT.create(ServerInfoService.class); 72 protected ServerInfoServiceAsync serverInfoService =
73 GWT.create(ServerInfoService.class);
73 74
74 /** The RiverService used to retrieve the supported rivers of the server.*/ 75 /** The RiverService used to retrieve the supported rivers of the server.*/
75 protected RiverServiceAsync riverService = GWT.create(RiverService.class); 76 protected RiverServiceAsync riverService = GWT.create(RiverService.class);
76 77
77 /** The ArtifactService used to communicate with the Artifact server. */ 78 /** The ArtifactService used to communicate with the Artifact server. */
109 protected List<String> openProjects; 110 protected List<String> openProjects;
110 111
111 private FLYSHeader header; 112 private FLYSHeader header;
112 113
113 114
114 public static String getExceptionString(FLYSConstants msg, Throwable caught) { 115 public static String getExceptionString(
116 FLYSConstants msg,
117 Throwable caught
118 ) {
115 try { 119 try {
116 return msg.getString(caught.getMessage()); 120 return msg.getString(caught.getMessage());
117 } 121 }
118 catch(MissingResourceException ex) { 122 catch(MissingResourceException ex) {
119 // There are some server error exceptions with 123 // There are some server error exceptions with
154 vertical.draw(); 158 vertical.draw();
155 159
156 Config config = Config.getInstance(); 160 Config config = Config.getInstance();
157 final String locale = config.getLocale(); 161 final String locale = config.getLocale();
158 162
159 serverInfoService.getConfig(locale, new AsyncCallback<Map<String,String>>() { 163 serverInfoService.getConfig(
164 locale, new AsyncCallback<Map<String,String>>() {
160 165
161 @Override 166 @Override
162 public void onSuccess(Map<String, String> result) { 167 public void onSuccess(Map<String, String> result) {
163 GWT.log("serverInfoService.callBack.onSuccess"); 168 GWT.log("serverInfoService.callBack.onSuccess");
164 GWT.log("help-url=" + result.get("help-url")); 169 GWT.log("help-url=" + result.get("help-url"));
489 mainValueView.setCanDragReposition(true); 494 mainValueView.setCanDragReposition(true);
490 mainValueView.setCanDragResize(true); 495 mainValueView.setCanDragResize(true);
491 mainValueView.setShowMaximizeButton(true); 496 mainValueView.setShowMaximizeButton(true);
492 mainValueView.setKeepInParentRect(true); 497 mainValueView.setKeepInParentRect(true);
493 498
494 mainValueView.setTitle(MSG.mainvalues() + " " + gauge.getName() + " (" + gauge.getRiverName() + ")" ); 499 mainValueView.setTitle(MSG.mainvalues() + " "
500 + gauge.getName() + " (" + gauge.getRiverName() + ")" );
495 workspace.addChild(mainValueView); 501 workspace.addChild(mainValueView);
496 } 502 }
497 503
498 504
499 @Override 505 @Override
507 } 513 }
508 514
509 515
510 516
511 /** 517 /**
512 * This CloseClickHandler is used to remove lock on a specific Collection so 518 * This CloseClickHandler is used to remove lock on a specific Collection
513 * that is might be opened again. 519 * so that is might be opened again.
514 */ 520 */
515 public class CloseCollectionViewHandler implements CloseClickHandler { 521 public class CloseCollectionViewHandler implements CloseClickHandler {
516 protected FLYS flys; 522 protected FLYS flys;
517 protected String uuid; 523 protected String uuid;
518 524

http://dive4elements.wald.intevation.org