Revision 3f8622d4

b/src/gr/grnet/pithos/web/client/DeleteFileDialog.java
145 145
                @Override
146 146
                public void onError(Throwable t) {
147 147
                    GWT.log("", t);
148
					app.setError(t);
148 149
                    if (t instanceof RestException) {
149 150
                        app.displayError("Unable to delete file: " + ((RestException) t).getHttpStatusText());
150 151
                    }
b/src/gr/grnet/pithos/web/client/FeedbackDialog.java
63 63
	/**
64 64
	 * The widget constructor.
65 65
	 */
66
	public FeedbackDialog(final Pithos app) {
66
	public FeedbackDialog(final Pithos app, final String appData) {
67 67
		// Set the dialog's caption.
68 68
		Anchor close = new Anchor();
69 69
		close.addStyleName("close");
......
105 105
		Button confirm = new Button("Submit feedback", new ClickHandler() {
106 106
			@Override
107 107
			public void onClick(ClickEvent event) {
108
				PostRequest sendFeedback = new PostRequest("/tools/", "", "feedback", "feedback-msg=" + msg.getText()) {
108
				PostRequest sendFeedback = new PostRequest("/tools/", "", "feedback", "feedback-msg=" + msg.getText() + "&feedback-data=" + appData) {
109 109
					
110 110
					@Override
111 111
					protected void onUnauthorized(Response response) {
b/src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
183 183
			@Override
184 184
			public void onError(Throwable t) {
185 185
				GWT.log("", t);
186
				app.setError(t);
186 187
                if (t instanceof RestException) {
187 188
                    app.displayError("Unable to fetch versions: " + ((RestException) t).getHttpStatusText());
188 189
                }
......
435 436
                @Override
436 437
                public void onError(Throwable t) {
437 438
                    GWT.log("", t);
439
					app.setError(t);
438 440
                    app.displayError("System error modifying file:" + t.getMessage());
439 441
                }
440 442

  
......
463 465
                @Override
464 466
                public void onError(Throwable t) {
465 467
                    GWT.log("", t);
468
					app.setError(t);
466 469
                    app.displayError("System error modifying file:" + t.getMessage());
467 470
                }
468 471

  
b/src/gr/grnet/pithos/web/client/FolderPropertiesDialog.java
301 301
            @Override
302 302
            public void onError(Throwable t) {
303 303
				GWT.log("", t);
304
				app.setError(t);
304 305
				if (t instanceof RestException) {
305 306
					app.displayError("Unable to create folder:" + ((RestException) t).getHttpStatusText());
306 307
				}
......
360 361
                @Override
361 362
                public void onError(Throwable t) {
362 363
                    GWT.log("", t);
364
					app.setError(t);
363 365
                    if(t instanceof RestException){
364 366
                        app.displayError("Unable to update folder: " + ((RestException) t).getHttpStatusText());
365 367
                    }
......
393 395
                @Override
394 396
                public void onError(Throwable t) {
395 397
                    GWT.log("", t);
398
					app.setError(t);
396 399
                    if (t instanceof RestException) {
397 400
                    	if (((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND) { //Probably a virtual folder
398 401
                            final String path1 = folder.getUri();
......
405 408
                                @Override
406 409
                                public void onError(Throwable _t) {
407 410
                                    GWT.log("", _t);
411
            						app.setError(_t);
408 412
                                    if(_t instanceof RestException){
409 413
                                        app.displayError("Unable to update folder: " + ((RestException) _t).getHttpStatusText());
410 414
                                    }
b/src/gr/grnet/pithos/web/client/MessagePanel.java
42 42
import com.google.gwt.event.dom.client.ClickHandler;
43 43
import com.google.gwt.resources.client.ClientBundle;
44 44
import com.google.gwt.resources.client.ImageResource;
45
import com.google.gwt.user.client.DOM;
46 45
import com.google.gwt.user.client.ui.AbstractImagePrototype;
47 46
import com.google.gwt.user.client.ui.Composite;
48 47
import com.google.gwt.user.client.ui.HTML;
......
50 49
import com.google.gwt.user.client.ui.HasVerticalAlignment;
51 50
import com.google.gwt.user.client.ui.HorizontalPanel;
52 51
import com.google.gwt.user.client.ui.SimplePanel;
52
import com.google.gwt.user.client.ui.VerticalPanel;
53 53

  
54 54
/**
55 55
 * A panel that displays various system messages.
......
77 77
	/**
78 78
	 * The system message to be displayed.
79 79
	 */
80
	private HTML message = new HTML(" ");
81

  
82
	/**
83
	 * A link to clear the displayed message.
84
	 */
85
	private HTML clearMessageLink = new HTML("<a class='pithos-clearMessage' href='javascript:;'>Clear</a>");
80
	private HTML message;
86 81

  
87 82
	/**
88 83
	 * The panel that contains the messages.
89 84
	 */
90
	private HorizontalPanel inner = new HorizontalPanel();
85
	private HorizontalPanel inner;
91 86

  
92 87
	/**
93 88
	 * The panel that enables special effects for this widget.
94 89
	 */
95
	protected SimplePanel simplePanel = new SimplePanel();
90
	protected SimplePanel simplePanel;
96 91

  
97 92
	/**
93
	 * A link to send feedBack about the error.
94
	 */
95
	private HTML feedbackLink;
96
	/**
98 97
	 * The widget's constructor.
99 98
	 *
100 99
	 * @param newImages a bundle that provides the images for this widget
101 100
	 */
102
	public MessagePanel(final Images newImages) {
101
	public MessagePanel(final Pithos app, final Images newImages) {
103 102
		images = newImages;
104
		buildPanel();
103
		simplePanel = new SimplePanel();
105 104
		simplePanel.setStyleName("effectPanel");
105
		
106
		inner = new HorizontalPanel();
106 107
		inner.setStyleName("effectPanel-inner");
107
		DOM.setStyleAttribute(simplePanel.getElement(), "zoom", "1");
108
		simplePanel.add(inner);
109
		initWidget(simplePanel);
110
	}
111

  
112
	/**
113
	 * Build the panel that contains the icon, the message and the 'clear' link.
114
	 */
115
	private void buildPanel() {
116
		inner.clear();
117 108
		inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
118 109
		inner.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
119
//		inner.setSpacing(4);
120
		inner.add(message);
121
		inner.add(clearMessageLink);
122
		inner.setCellVerticalAlignment(message, HasVerticalAlignment.ALIGN_MIDDLE);
123
		clearMessageLink.addClickHandler(new ClickHandler() {
110
		
111
		message = new HTML("&nbsp;");
112
		message.addClickHandler(new ClickHandler() {
124 113

  
125 114
			@Override
126 115
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
127 116
				FadeOut anim = new FadeOut(simplePanel){
117

  
128 118
					@Override
129 119
					protected void onComplete() {
130 120
						super.onComplete();
......
134 124
				anim.run(500);
135 125
			}
136 126
		});
137
	}
127
		inner.add(message);
128
		inner.setCellVerticalAlignment(message, HasVerticalAlignment.ALIGN_MIDDLE);
138 129

  
139
	/**
140
	 * Display an error message.
141
	 *
142
	 * @param msg the message to display
143
	 */
144
	public void displayError(final String msg) {
145
		GWT.log(msg, null);
146
		message = new HTML("<table class='pithos-errorMessage'><tr><td>" + AbstractImagePrototype.create(images.error()).getHTML() + "</td><td>" + msg + "</td></tr></table>");
147
		message.addClickHandler(new ClickHandler() {
130
		VerticalPanel linkPanel = new VerticalPanel();
131
		linkPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
132
		/**
133
		 * A link to clear the displayed message.
134
		 */
135
		HTML clearMessageLink = new HTML("<a class='pithos-clearMessage' href='javascript:;'>Clear</a>");
136
		clearMessageLink.addClickHandler(new ClickHandler() {
148 137

  
149 138
			@Override
150 139
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
151 140
				FadeOut anim = new FadeOut(simplePanel){
152

  
153 141
					@Override
154 142
					protected void onComplete() {
155 143
						super.onComplete();
......
159 147
				anim.run(500);
160 148
			}
161 149
		});
162
		buildPanel();
150
		linkPanel.add(clearMessageLink);
151

  
152
		feedbackLink = new HTML("<a class='pithos-clearMessage' href='javascript:;'>Send feedback</a>");
153
		feedbackLink.addClickHandler(new ClickHandler() {
154
			
155
			@Override
156
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
157
				new FeedbackDialog(app, app.getErrorData()).center();
158
			}
159
		});
160
		feedbackLink.setVisible(false);
161
		linkPanel.add(feedbackLink);
162

  
163
		inner.add(linkPanel);
164
		simplePanel.add(inner);
165
		
166
		initWidget(simplePanel);
167
	}
168

  
169
	/**
170
	 * Display an error message.
171
	 *
172
	 * @param msg the message to display
173
	 */
174
	public void displayError(final String msg) {
175
		GWT.log(msg, null);
176
		message.setHTML("<table class='pithos-errorMessage'><tr><td>" + AbstractImagePrototype.create(images.error()).getHTML() + "</td><td>" + msg + "</td></tr></table>");
177
		feedbackLink.setVisible(true);
163 178
		setVisible(true);
164 179
		FadeIn anim = new FadeIn(simplePanel);
165 180
		anim.run(500);
......
171 186
	 * @param msg the message to display
172 187
	 */
173 188
	public void displayWarning(final String msg) {
174
		message = new HTML("<table class='pithos-warnMessage'><tr><td>" + AbstractImagePrototype.create(images.warn()).getHTML() + "</td><td>" + msg + "</td></tr></table>");
175
		message.addClickHandler(new ClickHandler() {
176

  
177
			@Override
178
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
179
				FadeOut anim = new FadeOut(simplePanel){
180

  
181
					@Override
182
					protected void onComplete() {
183
						super.onComplete();
184
						hideMessage();
185
					}
186
				};
187
				anim.run(500);
188
			}
189
		});
190

  
191
		buildPanel();
189
		message.setHTML("<table class='pithos-warnMessage'><tr><td>" + AbstractImagePrototype.create(images.warn()).getHTML() + "</td><td>" + msg + "</td></tr></table>");
190
		feedbackLink.setVisible(false);
192 191
		setVisible(true);
193 192
		FadeIn anim = new FadeIn(simplePanel);
194 193
		anim.run(500);
......
200 199
	 * @param msg the message to display
201 200
	 */
202 201
	public void displayInformation(final String msg) {
203
		message = new HTML("<table class='pithos-infoMessage'><tr><td>" + AbstractImagePrototype.create(images.info()).getHTML() + "</td><td>" + msg + "</td></tr></table>");
204
		message.addClickHandler(new ClickHandler() {
205

  
206
			@Override
207
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
208
				FadeOut anim = new FadeOut(simplePanel){
209

  
210
					@Override
211
					protected void onComplete() {
212
						super.onComplete();
213
						hideMessage();
214
					}
215
				};
216
				anim.run(500);
217
			}
218
		});
219

  
220
		buildPanel();
202
		message.setHTML("<table class='pithos-infoMessage'><tr><td>" + AbstractImagePrototype.create(images.info()).getHTML() + "</td><td>" + msg + "</td></tr></table>");
203
		feedbackLink.setVisible(false);
221 204
		setVisible(true);
222 205
		FadeIn anim = new FadeIn(simplePanel);
223 206
		anim.run(500);
......
227 210
	 * Clear the displayed message and hide the panel.
228 211
	 */
229 212
	public void hideMessage() {
230
		inner.clear();
231 213
		message = new HTML("&nbsp;");
232 214
		this.setVisible(false);
233 215
	}
b/src/gr/grnet/pithos/web/client/Pithos.java
177 177
		ImageResource tools();
178 178
	}
179 179

  
180
	private Throwable error;
181
	
180 182
	/**
181 183
	 * The Application Clipboard implementation;
182 184
	 */
......
190 192
	/**
191 193
	 * The panel that contains the various system messages.
192 194
	 */
193
	private MessagePanel messagePanel = new MessagePanel(Pithos.images);
195
	private MessagePanel messagePanel = new MessagePanel(this, Pithos.images);
194 196

  
195 197
	/**
196 198
	 * The bottom panel that contains the status bar.
......
563 565
                @Override
564 566
                public void onError(Throwable t) {
565 567
                    GWT.log("Error getting file", t);
568
					setError(t);
566 569
                    if (t instanceof RestException)
567 570
                        displayError("Error getting file: " + ((RestException) t).getHttpStatusText());
568 571
                    else
......
635 638
            @Override
636 639
            public void onError(Throwable t) {
637 640
                GWT.log("Error getting account", t);
641
				setError(t);
638 642
                if (t instanceof RestException)
639 643
                    displayError("Error getting account: " + ((RestException) t).getHttpStatusText());
640 644
                else
......
661 665
			@Override
662 666
			public void onError(Throwable t) {
663 667
                GWT.log("Error getting account", t);
668
				setError(t);
664 669
                if (t instanceof RestException)
665 670
                    displayError("Error getting account: " + ((RestException) t).getHttpStatusText());
666 671
                else
......
697 702
            @Override
698 703
            public void onError(Throwable t) {
699 704
                GWT.log("Error creating pithos", t);
705
				setError(t);
700 706
                if (t instanceof RestException)
701 707
                    displayError("Error creating pithos: " + ((RestException) t).getHttpStatusText());
702 708
                else
......
723 729
            @Override
724 730
            public void onError(Throwable t) {
725 731
                GWT.log("Error creating pithos", t);
732
				setError(t);
726 733
                if (t instanceof RestException)
727 734
                    displayError("Error creating pithos: " + ((RestException) t).getHttpStatusText());
728 735
                else
......
882 889

  
883 890
                @Override
884 891
                public void onError(@SuppressWarnings("unused") Request request, Throwable exception) {
892
                	setError(exception);
885 893
                    displayError("System error unable to delete folder: " + exception.getMessage());
886 894
                }
887 895
            });
......
905 913
                    @Override
906 914
                    public void onError(Throwable t) {
907 915
                        GWT.log("", t);
916
						setError(t);
908 917
                        displayError("System error unable to delete folder: " + t.getMessage());
909 918
                    }
910 919

  
......
941 950

  
942 951
                        @Override
943 952
                        public void onError(@SuppressWarnings("unused") Request request, Throwable exception) {
953
                        	setError(exception);
944 954
                            displayError("System error unable to delete folder: " + exception.getMessage());
945 955
                        }
946 956
                    });
......
966 976
                @Override
967 977
                public void onError(Throwable t) {
968 978
                    GWT.log("", t);
979
					setError(t);
969 980
                    if (t instanceof RestException) {
970 981
                    	if (((RestException) t).getHttpStatusCode() != Response.SC_NOT_FOUND)
971 982
                    		displayError("Unable to delete folder: "+((RestException) t).getHttpStatusText());
......
1003 1014
                @Override
1004 1015
                public void onError(Throwable t) {
1005 1016
                    GWT.log("", t);
1017
					setError(t);
1006 1018
                    if (t instanceof RestException) {
1007 1019
                        displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText());
1008 1020
                    }
......
1065 1077
					@Override
1066 1078
					public void onError(Throwable t) {
1067 1079
		                GWT.log("", t);
1080
						setError(t);
1068 1081
		                if (t instanceof RestException) {
1069 1082
		                    displayError("Unable to get folder: " + ((RestException) t).getHttpStatusText());
1070 1083
		                }
......
1084 1097
            @Override
1085 1098
            public void onError(Throwable t) {
1086 1099
                GWT.log("", t);
1087
                if (t instanceof RestException) {
1100
				setError(t);
1101
               if (t instanceof RestException) {
1088 1102
                    displayError("Unable to create folder: " + ((RestException) t).getHttpStatusText());
1089 1103
                }
1090 1104
                else
......
1215 1229
				Cookies.removeCookie(s, "/");
1216 1230
		Window.Location.assign(Window.Location.getPath());
1217 1231
	}
1232

  
1233
	public String getErrorData() {
1234
		if (error != null)
1235
			return error.toString();
1236
		return "";
1237
	}
1238
	
1239
	public void setError(Throwable t) {
1240
		error = t;
1241
	}
1218 1242
}
b/src/gr/grnet/pithos/web/client/TopPanel.java
121 121
					@Override
122 122
					public void onError(Throwable t) {
123 123
						GWT.log("", t);
124
						app.setError(t);
124 125
	                    if (t instanceof RestException)
125 126
	                        app.displayError("Error getting invitations: " + ((RestException) t).getHttpStatusText());
126 127
	                    else
......
140 141
			
141 142
			@Override
142 143
			public void execute() {
143
				new FeedbackDialog(app).center();
144
				new FeedbackDialog(app, "").center();
144 145
			}
145 146
		}));
146 147
        userItemMenu.addItem(new MenuItem("API access", new Command() {
b/src/gr/grnet/pithos/web/client/VersionsList.java
141 141
			
142 142
			@Override
143 143
			public void onError(Throwable t) {
144
				app.setError(t);
144 145
                if (t instanceof RestException) {
145 146
                	if (((RestException) t).getHttpStatusCode() == Response.SC_NO_CONTENT)
146 147
                		onSuccess(null);
b/src/gr/grnet/pithos/web/client/commands/AddUserCommand.java
86 86
				@Override
87 87
				public void onError(Throwable t) {
88 88
					GWT.log("", t);
89
					app.setError(t);
89 90
					if (t instanceof RestException) {
90 91
						app.displayError("Unable to update group:" + ((RestException) t).getHttpStatusText());
91 92
					}
92
					else
93
					else 
93 94
						app.displayError("System error updating group:" + t.getMessage());
94 95
				}
95 96

  
b/src/gr/grnet/pithos/web/client/commands/DeleteGroupCommand.java
85 85
				@Override
86 86
				public void onError(Throwable t) {
87 87
					GWT.log("", t);
88
					app.setError(t);
88 89
					if (t instanceof RestException) {
89 90
						app.displayError("Unable to delete group:" + ((RestException) t).getHttpStatusText());
90 91
					}
b/src/gr/grnet/pithos/web/client/commands/EmptyTrashCommand.java
124 124
										@Override
125 125
										public void onError(Throwable t) {
126 126
											GWT.log("", t);
127
											app.setError(t);
127 128
											if (t instanceof RestException) {
128 129
												app.displayError("Unable to delete file:" + ((RestException) t).getHttpStatusText());
129 130
											}
......
147 148
				@Override
148 149
				public void onError(Throwable t) {
149 150
	                GWT.log("", t);
151
					app.setError(t);
150 152
	                if (t instanceof RestException) {
151 153
	                    app.displayError("Unable to get folder: " + ((RestException) t).getHttpStatusText());
152 154
	                }
......
182 184
				@Override
183 185
				public void onError(Throwable t) {
184 186
					GWT.log("", t);
187
					app.setError(t);
185 188
					if (t instanceof RestException) {
186 189
						app.displayError("Unable to delete file:" + ((RestException) t).getHttpStatusText());
187 190
					}
b/src/gr/grnet/pithos/web/client/commands/PasteCommand.java
145 145
                @Override
146 146
                public void onError(Throwable t) {
147 147
                    GWT.log("", t);
148
					app.setError(t);
148 149
                    if (t instanceof RestException) {
149 150
                        app.displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText());
150 151
                    }
b/src/gr/grnet/pithos/web/client/commands/RemoveUserCommand.java
85 85
			@Override
86 86
			public void onError(Throwable t) {
87 87
				GWT.log("", t);
88
				app.setError(t);
88 89
				if (t instanceof RestException) {
89 90
					app.displayError("Unable to update group:" + ((RestException) t).getHttpStatusText());
90 91
				}
b/src/gr/grnet/pithos/web/client/commands/RestoreTrashCommand.java
125 125
											@Override
126 126
											public void onError(Throwable t) {
127 127
							                    GWT.log("", t);
128
												app.setError(t);
128 129
							                    if (t instanceof RestException) {
129 130
							                    	if (((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND)
130 131
							                    		onSuccess(null);
......
151 152
					@Override
152 153
					public void onError(Throwable t) {
153 154
		                GWT.log("", t);
155
						app.setError(t);
154 156
		                if (t instanceof RestException) {
155 157
		                    app.displayError("Unable to get folder: " + ((RestException) t).getHttpStatusText());
156 158
		                }
......
170 172
            @Override
171 173
            public void onError(Throwable t) {
172 174
                GWT.log("", t);
175
				app.setError(t);
173 176
                if (t instanceof RestException) {
174 177
                    app.displayError("Unable to create folder:" + ((RestException) t).getHttpStatusText());
175 178
                }
......
202 205
                @Override
203 206
                public void onError(Throwable t) {
204 207
                    GWT.log("", t);
208
					app.setError(t);
205 209
                    if (t instanceof RestException) {
206 210
                        app.displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText());
207 211
                    }
b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
126 126
											@Override
127 127
											public void onError(Throwable t) {
128 128
							                    GWT.log("", t);
129
												app.setError(t);
129 130
							                    if (t instanceof RestException) {
130 131
							                    	if (((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND)
131 132
							                    		onSuccess(null);
......
152 153
					@Override
153 154
					public void onError(Throwable t) {
154 155
		                GWT.log("", t);
156
						app.setError(t);
155 157
		                if (t instanceof RestException) {
156 158
		                    app.displayError("Unable to get folder: " + ((RestException) t).getHttpStatusText());
157 159
		                }
......
171 173
            @Override
172 174
            public void onError(Throwable t) {
173 175
                GWT.log("", t);
176
				app.setError(t);
174 177
                if (t instanceof RestException) {
175 178
                    app.displayError("Unable to create folder:" + ((RestException) t).getHttpStatusText());
176 179
                }
......
205 208
                @Override
206 209
                public void onError(Throwable t) {
207 210
                    GWT.log("", t);
211
					app.setError(t);
208 212
                    if (t instanceof RestException) {
209 213
                        app.displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText());
210 214
                    }
b/src/gr/grnet/pithos/web/client/foldertree/FolderTreeViewModel.java
156 156
                @Override
157 157
                public void onError(Throwable t) {
158 158
                    GWT.log("Error getting folder", t);
159
					app.setError(t);
159 160
                    if (t instanceof RestException)
160 161
                        app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
161 162
                    else
......
241 242
            @Override
242 243
            public void onError(Throwable t) {
243 244
                GWT.log("Error getting folder", t);
245
				app.setError(t);
244 246
                if (t instanceof RestException)
245 247
                    app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
246 248
                else
b/src/gr/grnet/pithos/web/client/mysharedtree/MysharedTreeViewModel.java
231 231
                @Override
232 232
                public void onError(Throwable t) {
233 233
                    GWT.log("Error getting folder", t);
234
					app.setError(t);
234 235
                    if (t instanceof RestException)
235 236
                        app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
236 237
                    else
......
282 283
            @Override
283 284
            public void onError(Throwable t) {
284 285
                GWT.log("Error getting folder", t);
286
				app.setError(t);
285 287
                if (t instanceof RestException)
286 288
                    app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
287 289
                else
b/src/gr/grnet/pithos/web/client/othersharedtree/OtherSharedTreeViewModel.java
216 216
            @Override
217 217
            public void onError(Throwable t) {
218 218
                GWT.log("Error getting folder", t);
219
				app.setError(t);
219 220
                if (t instanceof RestException)
220 221
                    app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
221 222
                else
......
292 293
			@Override
293 294
			public void onError(Throwable t) {
294 295
                GWT.log("Error getting account", t);
296
				app.setError(t);
295 297
                if (t instanceof RestException)
296 298
                    app.displayError("Error getting account: " + ((RestException) t).getHttpStatusText());
297 299
                else
......
328 330
			@Override
329 331
			public void onError(Throwable t) {
330 332
                GWT.log("Error getting account", t);
333
				app.setError(t);
331 334
                if (t instanceof RestException)
332 335
                    app.displayError("Error getting account: " + ((RestException) t).getHttpStatusText());
333 336
                else
......
374 377
                @Override
375 378
                public void onError(Throwable t) {
376 379
                    GWT.log("Error getting folder", t);
380
					app.setError(t);
377 381
                    if (t instanceof RestException)
378 382
                        app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
379 383
                    else
......
425 429
            @Override
426 430
            public void onError(Throwable t) {
427 431
                GWT.log("Error getting folder", t);
432
				app.setError(t);
428 433
                if (t instanceof RestException)
429 434
                    app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
430 435
                else
b/src/gr/grnet/pithos/web/client/tagtree/TagTreeViewModel.java
158 158
                @Override
159 159
                public void onError(Throwable th) {
160 160
                    GWT.log("Error getting folder", th);
161
					app.setError(th);
161 162
                    if (th instanceof RestException)
162 163
                        app.displayError("Error getting folder: " + ((RestException) th).getHttpStatusText());
163 164
                    else
b/src/gr/grnet/pithos/web/public/pithos.css
318 318
	font-weight: bold;
319 319
	text-decoration: none;
320 320
	color: black;
321
	padding-left: 5px;
321 322
}
322 323

  
323 324
.pithos-clearMessage:visited {

Also available in: Unified diff