Revision ebead1b5

b/src/gr/grnet/pithos/web/client/AbstractPropertiesDialog.java
38 38
import com.google.gwt.event.dom.client.KeyCodes;
39 39
import com.google.gwt.user.client.Event.NativePreviewEvent;
40 40
import com.google.gwt.user.client.ui.DialogBox;
41
import com.google.gwt.user.client.ui.FlowPanel;
42
import com.google.gwt.user.client.ui.TabPanel;
43
import com.google.gwt.user.client.ui.TextBox;
44 41
import com.google.gwt.user.client.ui.VerticalPanel;
45 42

  
46 43
/**
b/src/gr/grnet/pithos/web/client/ConfirmationDialog.java
45 45
import com.google.gwt.user.client.ui.DialogBox;
46 46
import com.google.gwt.user.client.ui.HTML;
47 47
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
48
import com.google.gwt.user.client.ui.HorizontalPanel;
49 48
import com.google.gwt.user.client.ui.VerticalPanel;
50 49

  
51 50

  
......
94 93
		Button ok = new Button(buttonLabel, new ClickHandler() {
95 94

  
96 95
			@Override
97
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
96
			public void onClick(ClickEvent event) {
98 97
				confirm();
99 98
				hide();
100 99
			}
b/src/gr/grnet/pithos/web/client/CredentialsDialog.java
61 61
	/**
62 62
	 * The widget constructor.
63 63
	 */
64
	public CredentialsDialog(final Pithos app, final MessagePanel.Images images) {
64
	public CredentialsDialog(final Pithos app) {
65 65
		Anchor close = new Anchor();
66 66
		close.addStyleName("close");
67 67
		close.addClickHandler(new ClickHandler() {
b/src/gr/grnet/pithos/web/client/DeleteFileDialog.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import com.google.gwt.core.client.Scheduler;
38 37
import gr.grnet.pithos.web.client.MessagePanel.Images;
39 38
import gr.grnet.pithos.web.client.foldertree.File;
40 39
import gr.grnet.pithos.web.client.foldertree.Resource;
......
45 44
import java.util.List;
46 45

  
47 46
import com.google.gwt.core.client.GWT;
47
import com.google.gwt.core.client.Scheduler;
48 48
import com.google.gwt.dom.client.NativeEvent;
49 49
import com.google.gwt.event.dom.client.ClickEvent;
50 50
import com.google.gwt.event.dom.client.ClickHandler;
......
58 58
import com.google.gwt.user.client.ui.DialogBox;
59 59
import com.google.gwt.user.client.ui.HTML;
60 60
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
61
import com.google.gwt.user.client.ui.HorizontalPanel;
62 61
import com.google.gwt.user.client.ui.VerticalPanel;
63 62

  
64 63
/**
......
111 110
		// when the button is clicked and deletes the file.
112 111
		Button ok = new Button("Delete", new ClickHandler() {
113 112
			@Override
114
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
113
			public void onClick(ClickEvent event) {
115 114
				deleteFiles();
116 115
				hide();
117 116
			}
......
138 137
            String path = f.getUri();
139 138
            DeleteRequest deleteFile = new DeleteRequest(app.getApiPath(), f.getOwner(), path) {
140 139
                @Override
141
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
140
                public void onSuccess(Resource result) {
142 141
                    deleteFile(iter);
143 142
                }
144 143

  
b/src/gr/grnet/pithos/web/client/DeleteFolderDialog.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import com.google.gwt.event.dom.client.KeyDownEvent;
38 37
import gr.grnet.pithos.web.client.MessagePanel.Images;
39 38
import gr.grnet.pithos.web.client.foldertree.Folder;
40 39

  
......
42 41
import com.google.gwt.event.dom.client.ClickEvent;
43 42
import com.google.gwt.event.dom.client.ClickHandler;
44 43
import com.google.gwt.event.dom.client.KeyCodes;
44
import com.google.gwt.event.dom.client.KeyDownEvent;
45 45
import com.google.gwt.user.client.Event.NativePreviewEvent;
46 46
import com.google.gwt.user.client.ui.AbstractImagePrototype;
47 47
import com.google.gwt.user.client.ui.Anchor;
......
49 49
import com.google.gwt.user.client.ui.DialogBox;
50 50
import com.google.gwt.user.client.ui.HTML;
51 51
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
52
import com.google.gwt.user.client.ui.HorizontalPanel;
53 52
import com.google.gwt.user.client.ui.VerticalPanel;
54 53

  
55 54
/**
......
101 100
		// when the button is clicked and deletes the folder.
102 101
		Button ok = new Button("Delete", new ClickHandler() {
103 102
			@Override
104
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
103
			public void onClick(ClickEvent event) {
105 104
				app.deleteFolder(folder);
106 105
				hide();
107 106
			}
b/src/gr/grnet/pithos/web/client/FileContextMenu.java
203 203
        if (selectedFolder != null) {
204 204
		    if (!selectedFolder.isInTrash()) {
205 205
		        if (canWrite && app.getClipboard().hasFiles()) {
206
		        	List<File> files = (List<File>) app.getClipboard().getItem();
207 206
	        		pasteItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.paste()).getHTML() + "&nbsp;Paste</span>", true, new PasteCommand(app, this, selectedFolder));
208 207
	        		contextMenu.addItem(pasteItem);
209 208
		        }
b/src/gr/grnet/pithos/web/client/FileList.java
55 55
import com.google.gwt.i18n.client.DateTimeFormat;
56 56
import com.google.gwt.resources.client.ImageResource;
57 57
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
58
import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
59 58
import com.google.gwt.safehtml.shared.SafeHtml;
60 59
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
61 60
import com.google.gwt.user.cellview.client.CellTable;
......
386 385
	/**
387 386
	 * Update the display of the file list.
388 387
	 */
389
	void update(@SuppressWarnings("unused") boolean sort) {
388
	void update() {
390 389
		showCellTable();
391 390
	}
392 391

  
......
553 552
			this.header=header;
554 553
		}
555 554
		@Override
556
		public void update(@SuppressWarnings("unused") String value) {
555
		public void update(String value) {
557 556
			header.setSorted(true);
558 557
			header.toggleReverseSort();
559 558

  
......
565 564
	        }
566 565
	        celltable.redrawHeaders();
567 566
	        sortFiles(property, header.getReverseSort());
568
	        FileList.this.update(true);			
567
	        FileList.this.update();			
569 568
		}
570 569
		
571 570
	}
b/src/gr/grnet/pithos/web/client/FilePermissionsDialog.java
52 52
import com.google.gwt.user.client.ui.Anchor;
53 53
import com.google.gwt.user.client.ui.Button;
54 54
import com.google.gwt.user.client.ui.CheckBox;
55
import com.google.gwt.user.client.ui.DecoratedTabPanel;
56 55
import com.google.gwt.user.client.ui.FocusPanel;
57 56
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
58 57
import com.google.gwt.user.client.ui.HorizontalPanel;
......
101 100
		close.addClickHandler(new ClickHandler() {
102 101
			
103 102
			@Override
104
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
103
			public void onClick(ClickEvent event) {
105 104
				hide();
106 105
			}
107 106
		});
......
127 126
		// when the button is clicked.
128 127
		final Button ok = new Button("OK", new ClickHandler() {
129 128
			@Override
130
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
129
			public void onClick(ClickEvent event) {
131 130
				accept();
132 131
				closeDialog();
133 132
			}
......
151 150
            HorizontalPanel permButtons = new HorizontalPanel();
152 151
            Button add = new Button("Add Group", new ClickHandler() {
153 152
                @Override
154
                public void onClick(@SuppressWarnings("unused") ClickEvent event) {
153
                public void onClick(ClickEvent event) {
155 154
                    PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false);
156 155
                    dlg.center();
157 156
                    permList.updatePermissionTable();
......
163 162

  
164 163
            final Button addUser = new Button("Add User", new ClickHandler() {
165 164
                @Override
166
                public void onClick(@SuppressWarnings("unused") ClickEvent event) {
165
                public void onClick(ClickEvent event) {
167 166
                    PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
168 167
                    dlg.center();
169 168
                    permList.updatePermissionTable();
......
188 187
        readForAll.setValue(file.isPublished());
189 188
        readForAll.addClickHandler(new ClickHandler() {
190 189
            @Override
191
            public void onClick(@SuppressWarnings("unused") ClickEvent event) {
190
            public void onClick(ClickEvent event) {
192 191
                readForAllNote.setVisible(readForAll.getValue());
193 192
            }
194 193
        });
......
255 254
        if (published != null || newPermissions != null) {
256 255
            PostRequest updateFile = new PostRequest(api, owner, path) {
257 256
                @Override
258
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
257
                public void onSuccess(Resource result) {
259 258
                    app.updateFolder(file.getParent(), true, new Command() {
260 259
						
261 260
						@Override
......
273 272
                }
274 273

  
275 274
				@Override
276
				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
275
				protected void onUnauthorized(Response response) {
277 276
					app.sessionExpired();
278 277
				}
279 278
            };
b/src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
52 52
import com.google.gwt.user.client.Command;
53 53
import com.google.gwt.user.client.ui.Anchor;
54 54
import com.google.gwt.user.client.ui.Button;
55
import com.google.gwt.user.client.ui.DecoratedTabPanel;
56 55
import com.google.gwt.user.client.ui.FlexTable;
57
import com.google.gwt.user.client.ui.FocusPanel;
58 56
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
59 57
import com.google.gwt.user.client.ui.HorizontalPanel;
60 58
import com.google.gwt.user.client.ui.Image;
......
88 86
		close.addClickHandler(new ClickHandler() {
89 87
			
90 88
			@Override
91
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
89
			public void onClick(ClickEvent event) {
92 90
				hide();
93 91
			}
94 92
		});
......
113 111
		// when the button is clicked.
114 112
		final Button ok = new Button("OK", new ClickHandler() {
115 113
			@Override
116
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
114
			public void onClick(ClickEvent event) {
117 115
				accept();
118 116
				closeDialog();
119 117
			}
......
187 185
		plus.addClickHandler(new ClickHandler() {
188 186
			
189 187
			@Override
190
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
188
			public void onClick(ClickEvent event) {
191 189
				addFormLine(metaTable, metaTable.getRowCount(), "", "");
192 190
			}
193 191
		});
......
247 245
            final String path = file.getParent().getUri() + "/" + newFilename;
248 246
            PutRequest updateFile = new PutRequest(app.getApiPath(), app.getUsername(), path) {
249 247
                @Override
250
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
248
                public void onSuccess(Resource result) {
251 249
                    updateMetaData(app.getApiPath(), file.getOwner(), path + "?update=", newMeta);
252 250
                }
253 251

  
......
259 257
                }
260 258

  
261 259
				@Override
262
				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
260
				protected void onUnauthorized(Response response) {
263 261
					app.sessionExpired();
264 262
				}
265 263
            };
......
304 302
        if (newMeta != null) {
305 303
            PostRequest updateFile = new PostRequest(api, owner, path) {
306 304
                @Override
307
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
305
                public void onSuccess(Resource result) {
308 306
                    app.updateFolder(file.getParent(), true, new Command() {
309 307
						
310 308
						@Override
......
322 320
                }
323 321

  
324 322
				@Override
325
				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
323
				protected void onUnauthorized(Response response) {
326 324
					app.sessionExpired();
327 325
				}
328 326
            };
b/src/gr/grnet/pithos/web/client/FileUploadDialog.java
45 45
import com.google.gwt.user.client.Command;
46 46
import com.google.gwt.user.client.Cookies;
47 47
import com.google.gwt.user.client.Event.NativePreviewEvent;
48
import com.google.gwt.user.client.Window;
48
import com.google.gwt.user.client.ui.Anchor;
49 49
import com.google.gwt.user.client.ui.Button;
50 50
import com.google.gwt.user.client.ui.DialogBox;
51 51
import com.google.gwt.user.client.ui.FileUpload;
......
54 54
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteHandler;
55 55
import com.google.gwt.user.client.ui.FormPanel.SubmitEvent;
56 56
import com.google.gwt.user.client.ui.FormPanel.SubmitHandler;
57
import com.google.gwt.user.client.ui.Anchor;
58 57
import com.google.gwt.user.client.ui.Grid;
59 58
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
60 59
import com.google.gwt.user.client.ui.Hidden;
......
143 142
		// form.
144 143
		submit = new Button("Upload", new ClickHandler() {
145 144
			@Override
146
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
145
			public void onClick(ClickEvent event) {
147 146
				prepareAndSubmit();
148 147
			}
149 148
		});
......
154 153
		form.addSubmitHandler(new SubmitHandler() {
155 154

  
156 155
			@Override
157
			public void onSubmit(@SuppressWarnings("unused") SubmitEvent event) {
156
			public void onSubmit(SubmitEvent event) {
158 157
                auth.setValue(app.getToken()); //This is done here because the app object is not available in the constructor
159 158
                Cookies.setCookie("X-Auth-Token", app.getToken(), null, "", "/", false);
160 159
			}
b/src/gr/grnet/pithos/web/client/FileVersionsDialog.java
36 36

  
37 37
import gr.grnet.pithos.web.client.foldertree.File;
38 38
import gr.grnet.pithos.web.client.foldertree.FileVersions;
39
import gr.grnet.pithos.web.client.foldertree.Resource;
40 39
import gr.grnet.pithos.web.client.foldertree.Version;
41 40
import gr.grnet.pithos.web.client.rest.GetRequest;
42
import gr.grnet.pithos.web.client.rest.PostRequest;
43
import gr.grnet.pithos.web.client.rest.PutRequest;
44 41
import gr.grnet.pithos.web.client.rest.RestException;
45 42

  
46
import java.util.HashMap;
47 43
import java.util.List;
48
import java.util.Map;
49 44

  
50 45
import com.google.gwt.core.client.GWT;
51 46
import com.google.gwt.core.client.Scheduler;
52 47
import com.google.gwt.event.dom.client.ClickEvent;
53 48
import com.google.gwt.event.dom.client.ClickHandler;
54 49
import com.google.gwt.http.client.Response;
55
import com.google.gwt.http.client.URL;
56 50
import com.google.gwt.resources.client.ImageResource;
57 51
import com.google.gwt.user.client.Command;
58 52
import com.google.gwt.user.client.ui.Anchor;
59 53
import com.google.gwt.user.client.ui.Button;
60 54
import com.google.gwt.user.client.ui.CheckBox;
61
import com.google.gwt.user.client.ui.DecoratedTabPanel;
62 55
import com.google.gwt.user.client.ui.FocusPanel;
63 56
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
64
import com.google.gwt.user.client.ui.TextBox;
65 57
import com.google.gwt.user.client.ui.VerticalPanel;
66 58

  
67 59
/**
......
111 103
		close.addClickHandler(new ClickHandler() {
112 104
			
113 105
			@Override
114
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
106
			public void onClick(ClickEvent event) {
115 107
				hide();
116 108
			}
117 109
		});
......
137 129
		// when the button is clicked.
138 130
		final Button ok = new Button("OK", new ClickHandler() {
139 131
			@Override
140
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
132
			public void onClick(ClickEvent event) {
141 133
				accept();
142 134
				closeDialog();
143 135
			}
......
172 164
			}
173 165

  
174 166
			@Override
175
			protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
167
			protected void onUnauthorized(Response response) {
176 168
				app.sessionExpired();
177 169
			}
178 170
		};
......
193 185
	 */
194 186
	@Override
195 187
	protected void accept() {
196
		updateMetaData(app.getApiPath(), app.getUsername(), file.getUri() + "?update=");
197
	}
198

  
199
	protected void updateMetaData(String api, String owner, String path) {
200 188
        app.updateFolder(file.getParent(), true, new Command() {
201 189
			
202 190
			@Override
......
205 193
					app.updateMySharedRoot();
206 194
			}
207 195
		});
208
    }
196
	}
209 197
}
b/src/gr/grnet/pithos/web/client/FilesPropertiesDialog.java
42 42
import com.google.gwt.event.dom.client.ClickEvent;
43 43
import com.google.gwt.event.dom.client.ClickHandler;
44 44
import com.google.gwt.user.client.ui.Button;
45
import com.google.gwt.user.client.ui.DecoratedTabPanel;
46
import com.google.gwt.user.client.ui.DisclosurePanel;
47 45
import com.google.gwt.user.client.ui.FlexTable;
48
import com.google.gwt.user.client.ui.FlowPanel;
49 46
import com.google.gwt.user.client.ui.FocusPanel;
50 47
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
51 48
import com.google.gwt.user.client.ui.HorizontalPanel;
......
87 84
		// when the button is clicked.
88 85
		final Button ok = new Button("OK", new ClickHandler() {
89 86
			@Override
90
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
87
			public void onClick(ClickEvent event) {
91 88
				accept();
92 89
				closeDialog();
93 90
			}
......
98 95
		// dialog when the button is clicked.
99 96
		final Button cancel = new Button("Cancel", new ClickHandler() {
100 97
			@Override
101
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
98
			public void onClick(ClickEvent event) {
102 99
				closeDialog();
103 100
			}
104 101
		});
b/src/gr/grnet/pithos/web/client/FolderContextMenu.java
44 44
import gr.grnet.pithos.web.client.commands.RefreshCommand;
45 45
import gr.grnet.pithos.web.client.commands.RestoreTrashCommand;
46 46
import gr.grnet.pithos.web.client.commands.ToTrashCommand;
47
import gr.grnet.pithos.web.client.foldertree.File;
48 47
import gr.grnet.pithos.web.client.foldertree.Folder;
49 48

  
50
import java.util.List;
51

  
52 49
import com.google.gwt.user.client.ui.AbstractImagePrototype;
53 50
import com.google.gwt.user.client.ui.MenuBar;
54 51
import com.google.gwt.user.client.ui.MenuItem;
b/src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java
91 91
		close.addClickHandler(new ClickHandler() {
92 92
			
93 93
			@Override
94
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
94
			public void onClick(ClickEvent event) {
95 95
				hide();
96 96
			}
97 97
		});
......
127 127
            HorizontalPanel permButtons = new HorizontalPanel();
128 128
            Button add = new Button("Add Group", new ClickHandler() {
129 129
                @Override
130
                public void onClick(@SuppressWarnings("unused") ClickEvent event) {
130
                public void onClick(ClickEvent event) {
131 131
                    PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false);
132 132
                    dlg.center();
133 133
                }
......
138 138

  
139 139
            Button addUser = new Button("Add User", new ClickHandler() {
140 140
                @Override
141
                public void onClick(@SuppressWarnings("unused") ClickEvent event) {
141
                public void onClick(ClickEvent event) {
142 142
                    PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
143 143
                    dlg.center();
144 144
                }
......
159 159
		String okLabel = "Update";
160 160
		final Button ok = new Button(okLabel, new ClickHandler() {
161 161
			@Override
162
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
162
			public void onClick(ClickEvent event) {
163 163
				updateFolder();
164 164
				closeDialog();
165 165
			}
......
207 207
            final String path = folder.getParent().getUri() + "/" + newName;
208 208
            PutRequest newFolder = new PutRequest(app.getApiPath(), folder.getParent().getOwner(), path) {
209 209
                @Override
210
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
210
                public void onSuccess(Resource result) {
211 211
                    Iterator<File> iter = folder.getFiles().iterator();
212 212
                    app.copyFiles(iter, folder.getParent().getOwner(), folder.getParent().getUri() + "/" + newName, new Command() {
213 213
                        @Override
......
236 236
                }
237 237

  
238 238
				@Override
239
				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
239
				protected void onUnauthorized(Response response) {
240 240
					app.sessionExpired();
241 241
				}
242 242
            };
......
254 254
        if (newPermissions != null) {
255 255
            PostRequest updateFolder = new PostRequest(app.getApiPath(), folder.getOwner(), path) {
256 256
                @Override
257
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
257
                public void onSuccess(Resource result) {
258 258
                    app.updateFolder(folder.getParent(), false, new Command() {
259 259
						
260 260
						@Override
......
273 273
                            final String path1 = folder.getUri();
274 274
                            PutRequest newFolder = new PutRequest(app.getApiPath(), folder.getOwner(), path1) {
275 275
                                @Override
276
                                public void onSuccess(@SuppressWarnings("unused") Resource result) {
276
                                public void onSuccess(Resource result) {
277 277
                                	updateMetadata(path, newPermissions);
278 278
                                }
279 279

  
......
289 289
                                }
290 290

  
291 291
                				@Override
292
                				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
292
                				protected void onUnauthorized(Response response) {
293 293
                					app.sessionExpired();
294 294
                				}
295 295
                            };
......
310 310
                }
311 311

  
312 312
				@Override
313
				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
313
				protected void onUnauthorized(Response response) {
314 314
					app.sessionExpired();
315 315
				}
316 316
            };
b/src/gr/grnet/pithos/web/client/FolderPropertiesDialog.java
96 96
		close.addClickHandler(new ClickHandler() {
97 97
			
98 98
			@Override
99
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
99
			public void onClick(ClickEvent event) {
100 100
				hide();
101 101
			}
102 102
		});
......
172 172
			okLabel = "Update";
173 173
		final Button ok = new Button(okLabel, new ClickHandler() {
174 174
			@Override
175
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
175
			public void onClick(ClickEvent event) {
176 176
				createOrUpdateFolder();
177 177
				closeDialog();
178 178
			}
......
184 184
        folderName.addChangeHandler(new ChangeHandler() {
185 185
			
186 186
			@Override
187
			public void onChange(@SuppressWarnings("unused") ChangeEvent event) {
187
			public void onChange(ChangeEvent event) {
188 188
				if(folderName.getText().contains("/")) {
189 189
					folderNameNote.setVisible(true);
190 190
					ok.setEnabled(false);
......
242 242
        String path = folder.getUri() + "/" + name;
243 243
        PutRequest createFolder = new PutRequest(app.getApiPath(), folder.getOwner(), path) {
244 244
            @Override
245
            public void onSuccess(@SuppressWarnings("unused") Resource result) {
245
            public void onSuccess(Resource result) {
246 246
                app.updateFolder(folder, true, new Command() {
247 247
					
248 248
					@Override
......
264 264
            }
265 265

  
266 266
			@Override
267
			protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
267
			protected void onUnauthorized(Response response) {
268 268
				app.sessionExpired();
269 269
			}
270 270
       };
......
294 294
            final String path = folder.getParent().getUri() + "/" + newName;
295 295
            PutRequest newFolder = new PutRequest(app.getApiPath(), folder.getParent().getOwner(), path) {
296 296
                @Override
297
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
297
                public void onSuccess(Resource result) {
298 298
                    Iterator<File> iter = folder.getFiles().iterator();
299 299
                    app.copyFiles(iter, folder.getParent().getOwner(), folder.getParent().getUri() + "/" + newName, new Command() {
300 300
                        @Override
......
329 329
                }
330 330

  
331 331
				@Override
332
				protected void onUnauthorized(@SuppressWarnings("unused") Response response) {
332
				protected void onUnauthorized(Response response) {
333 333
					app.sessionExpired();
334 334
				}
335 335
            };
b/src/gr/grnet/pithos/web/client/InvitationsDialog.java
39 39

  
40 40
import com.google.gwt.core.client.GWT;
41 41
import com.google.gwt.core.client.Scheduler;
42
import com.google.gwt.dom.client.NativeEvent;
43 42
import com.google.gwt.event.dom.client.ClickEvent;
44 43
import com.google.gwt.event.dom.client.ClickHandler;
45
import com.google.gwt.event.dom.client.KeyCodes;
46 44
import com.google.gwt.http.client.Response;
47
import com.google.gwt.user.client.Event.NativePreviewEvent;
48 45
import com.google.gwt.user.client.ui.Anchor;
49 46
import com.google.gwt.user.client.ui.Button;
50 47
import com.google.gwt.user.client.ui.DialogBox;
......
55 52
import com.google.gwt.user.client.ui.Image;
56 53
import com.google.gwt.user.client.ui.TextBox;
57 54
import com.google.gwt.user.client.ui.VerticalPanel;
58
import com.google.gwt.user.client.ui.Widget;
59 55

  
60 56

  
61 57
/**
......
228 224
		setWidget(outer);
229 225
	}
230 226

  
231
	private void addFormLine(final FlexTable table) {
227
	void addFormLine(final FlexTable table) {
232 228
		table.setWidget(rows, 0, new TextBox());
233 229
		table.getFlexCellFormatter().setStyleName(1, 0, "props-values");
234 230

  
b/src/gr/grnet/pithos/web/client/MessagePanel.java
112 112
		message.addClickHandler(new ClickHandler() {
113 113

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

  
118 118
					@Override
......
136 136
		clearMessageLink.addClickHandler(new ClickHandler() {
137 137

  
138 138
			@Override
139
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
139
			public void onClick(ClickEvent event) {
140 140
				FadeOut anim = new FadeOut(simplePanel){
141 141
					@Override
142 142
					protected void onComplete() {
......
153 153
		feedbackLink.addClickHandler(new ClickHandler() {
154 154
			
155 155
			@Override
156
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
156
			public void onClick(ClickEvent event) {
157 157
				new FeedbackDialog(app, app.getErrorData()).center();
158 158
			}
159 159
		});
b/src/gr/grnet/pithos/web/client/PermissionsAddDialog.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import com.google.gwt.user.client.ui.TextBox;
38

  
39 37
import gr.grnet.pithos.web.client.grouptree.Group;
40 38

  
41 39
import java.util.List;
......
51 49
import com.google.gwt.user.client.ui.DialogBox;
52 50
import com.google.gwt.user.client.ui.FlexTable;
53 51
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
54
import com.google.gwt.user.client.ui.HorizontalPanel;
55 52
import com.google.gwt.user.client.ui.ListBox;
53
import com.google.gwt.user.client.ui.TextBox;
56 54
import com.google.gwt.user.client.ui.VerticalPanel;
57 55

  
58 56
public class PermissionsAddDialog extends DialogBox {
......
121 119

  
122 120
        final Button ok = new Button("OK", new ClickHandler() {
123 121
            @Override
124
            public void onClick(@SuppressWarnings("unused") ClickEvent event) {
122
            public void onClick(ClickEvent event) {
125 123
                addPermission();
126 124
                hide();
127 125
            }
b/src/gr/grnet/pithos/web/client/PermissionsList.java
154 154
                });
155 155
                PushButton removeButton = new PushButton(AbstractImagePrototype.create(images.delete()).createImage(), new ClickHandler() {
156 156
                    @Override
157
                    public void onClick(@SuppressWarnings("unused") ClickEvent event) {
157
                    public void onClick(ClickEvent event) {
158 158
                        permissions.remove(user);
159 159
                        updatePermissionTable();
160 160
                        hasChanges = true;
b/src/gr/grnet/pithos/web/client/Pithos.java
56 56
import gr.grnet.pithos.web.client.rest.PutRequest;
57 57
import gr.grnet.pithos.web.client.rest.RestException;
58 58
import gr.grnet.pithos.web.client.tagtree.Tag;
59
import gr.grnet.pithos.web.client.tagtree.TagTreeView;
60
import gr.grnet.pithos.web.client.tagtree.TagTreeViewModel;
61 59

  
62 60
import java.util.ArrayList;
63
import java.util.Date;
64 61
import java.util.HashMap;
65 62
import java.util.Iterator;
66 63
import java.util.List;
......
100 97
import com.google.gwt.user.client.ui.Composite;
101 98
import com.google.gwt.user.client.ui.FlowPanel;
102 99
import com.google.gwt.user.client.ui.HTML;
103
import com.google.gwt.user.client.ui.HTMLPanel;
104 100
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
105 101
import com.google.gwt.user.client.ui.HasVerticalAlignment;
106 102
import com.google.gwt.user.client.ui.HorizontalPanel;
107 103
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
108
import com.google.gwt.user.client.ui.Image;
109 104
import com.google.gwt.user.client.ui.RootPanel;
110 105
import com.google.gwt.user.client.ui.VerticalPanel;
111 106
import com.google.gwt.view.client.SelectionChangeEvent;
......
310 305
        	header.addStyleName("pithos-header-noframe");
311 306
        upload = new Button("Upload File", new ClickHandler() {
312 307
            @Override
313
            public void onClick(@SuppressWarnings("unused") ClickEvent event) {
308
            public void onClick(ClickEvent event) {
314 309
                new UploadFileCommand(Pithos.this, null, getSelection()).execute();
315 310
            }
316 311
        });
......
335 330
        newFolderButton.addClickHandler(new ClickHandler() {
336 331
			
337 332
			@Override
338
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
333
			public void onClick(ClickEvent event) {
339 334
				Folder folder = getSelectedTree().getSelection();
340 335
				if (folder != null) {
341 336
			        Boolean[] permissions = folder.getPermissions().get(getUsername());
......
354 349
        shareFolderButton.addClickHandler(new ClickHandler() {
355 350
			
356 351
			@Override
357
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
352
			public void onClick(ClickEvent event) {
358 353
				Folder folder = getSelectedTree().getSelection();
359 354
				if (folder != null) {
360 355
			        Boolean[] permissions = folder.getPermissions().get(getUsername());
......
374 369
        refreshButton.addClickHandler(new ClickHandler() {
375 370
			
376 371
			@Override
377
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
372
			public void onClick(ClickEvent event) {
378 373
		    	boolean isFolderTreeSelected = selectedTree.equals(getFolderTreeView());
379 374
		    	boolean otherSharedTreeSelected = selectedTree.equals(getOtherSharedTreeView());
380 375
		    	Folder folder = getSelectedTree().getSelection();
......
410 405
        header.add(toolbar);
411 406
        header.setCellHorizontalAlignment(toolbar, HasHorizontalAlignment.ALIGN_CENTER);
412 407
        header.setCellVerticalAlignment(toolbar, HasVerticalAlignment.ALIGN_MIDDLE);
413
//        header.setCellWidth(toolbar, "40px");
414 408
        
415 409
        HorizontalPanel folderStatistics = new HorizontalPanel();
416 410
        folderStatistics.addStyleName("pithos-folderStatistics");
......
433 427
        folderTreeSelectionModel = new SingleSelectionModel<Folder>();
434 428
        folderTreeSelectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
435 429
            @Override
436
            public void onSelectionChange(@SuppressWarnings("unused") SelectionChangeEvent event) {
430
            public void onSelectionChange(SelectionChangeEvent event) {
437 431
                if (folderTreeSelectionModel.getSelectedObject() != null) {
438 432
                    deselectOthers(folderTreeView, folderTreeSelectionModel);
439 433
                    applyPermissions(folderTreeSelectionModel.getSelectedObject());
......
614 608
            String path = file.getUri() + "?format=json";
615 609
            GetRequest<File> getFile = new GetRequest<File>(File.class, getApiPath(), username, path, file) {
616 610
                @Override
617
                public void onSuccess(@SuppressWarnings("unused") File _result) {
611
                public void onSuccess(File _result) {
618 612
                    fetchFile(iter, files);
619 613
                }
620 614

  
......
714 708
    	HeadRequest<AccountResource> headAccount = new HeadRequest<AccountResource>(AccountResource.class, getApiPath(), username, "", account) {
715 709

  
716 710
			@Override
717
			public void onSuccess(@SuppressWarnings("unused") AccountResource _result) {
711
			public void onSuccess(AccountResource _result) {
718 712
				showStatistics();
719 713
			}
720 714

  
......
748 742
        String path = "/" + Pithos.HOME_CONTAINER;
749 743
        PutRequest createPithos = new PutRequest(getApiPath(), getUsername(), path) {
750 744
            @Override
751
            public void onSuccess(@SuppressWarnings("unused") Resource result) {
745
            public void onSuccess(Resource result) {
752 746
            	if (!_account.hasTrashContainer())
753 747
            		createTrashContainer(callback);
754 748
            	else
......
778 772
        String path = "/" + Pithos.TRASH_CONTAINER;
779 773
        PutRequest createPithos = new PutRequest(getApiPath(), getUsername(), path) {
780 774
            @Override
781
            public void onSuccess(@SuppressWarnings("unused") Resource result) {
775
            public void onSuccess(Resource result) {
782 776
           		fetchAccount(callback);
783 777
            }
784 778

  
......
932 926
        try {
933 927
            builder.sendRequest("", new RequestCallback() {
934 928
                @Override
935
                public void onResponseReceived(@SuppressWarnings("unused") Request request, Response response) {
929
                public void onResponseReceived(Request request, Response response) {
936 930
                    if (response.getStatusCode() == Response.SC_OK) {
937 931
                        JSONValue json = JSONParser.parseStrict(response.getText());
938 932
                        JSONArray array = json.isArray();
......
944 938
                }
945 939

  
946 940
                @Override
947
                public void onError(@SuppressWarnings("unused") Request request, Throwable exception) {
941
                public void onError(Request request, Throwable exception) {
948 942
                	setError(exception);
949 943
                    displayError("System error unable to delete folder: " + exception.getMessage());
950 944
                }
......
962 956
                String path = "/" + folder.getContainer() + "/" + name.stringValue();
963 957
                DeleteRequest delete = new DeleteRequest(getApiPath(), folder.getOwner(), path) {
964 958
                    @Override
965
                    public void onSuccess(@SuppressWarnings("unused") Resource result) {
959
                    public void onSuccess(Resource result) {
966 960
                        deleteObject(folder, i + 1, array);
967 961
                    }
968 962

  
......
990 984
                try {
991 985
                    builder.sendRequest("", new RequestCallback() {
992 986
                        @Override
993
                        public void onResponseReceived(@SuppressWarnings("unused") Request request, Response response) {
987
                        public void onResponseReceived(Request request, Response response) {
994 988
                            if (response.getStatusCode() == Response.SC_OK) {
995 989
                                JSONValue json = JSONParser.parseStrict(response.getText());
996 990
                                JSONArray array2 = json.isArray();
......
1005 999
                        }
1006 1000

  
1007 1001
                        @Override
1008
                        public void onError(@SuppressWarnings("unused") Request request, Throwable exception) {
1002
                        public void onError(Request request, Throwable exception) {
1009 1003
                        	setError(exception);
1010 1004
                            displayError("System error unable to delete folder: " + exception.getMessage());
1011 1005
                        }
......
1019 1013
            String path = folder.getUri();
1020 1014
            DeleteRequest deleteFolder = new DeleteRequest(getApiPath(), getUsername(), path) {
1021 1015
                @Override
1022
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
1016
                public void onSuccess(Resource result) {
1023 1017
                    updateFolder(folder.getParent(), true, new Command() {
1024 1018
						
1025 1019
						@Override
......
1063 1057
            String path = targetUri + "/" + file.getName();
1064 1058
            PutRequest copyFile = new PutRequest(getApiPath(), targetUsername, path) {
1065 1059
                @Override
1066
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
1060
                public void onSuccess(Resource result) {
1067 1061
                    copyFiles(iter, targetUsername, targetUri, callback);
1068 1062
                }
1069 1063

  
......
1115 1109
        String path = targetUri + "/" + f.getName();
1116 1110
        PutRequest createFolder = new PutRequest(getApiPath(), targetUsername, path) {
1117 1111
            @Override
1118
            public void onSuccess(@SuppressWarnings("unused") Resource result) {
1112
            public void onSuccess(Resource result) {
1119 1113
            	GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, getApiPath(), f.getOwner(), "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix()), f) {
1120 1114

  
1121 1115
					@Override
......
1228 1222
		mysharedTreeSelectionModel = new SingleSelectionModel<Folder>();
1229 1223
		mysharedTreeSelectionModel.addSelectionChangeHandler(new Handler() {
1230 1224
		    @Override
1231
		    public void onSelectionChange(@SuppressWarnings("unused") SelectionChangeEvent event) {
1225
		    public void onSelectionChange(SelectionChangeEvent event) {
1232 1226
		        if (mysharedTreeSelectionModel.getSelectedObject() != null) {
1233 1227
		            deselectOthers(mysharedTreeView, mysharedTreeSelectionModel);
1234 1228
		            upload.setEnabled(false);
......
1254 1248
		otherSharedTreeSelectionModel = new SingleSelectionModel<Folder>();
1255 1249
		otherSharedTreeSelectionModel.addSelectionChangeHandler(new Handler() {
1256 1250
		    @Override
1257
		    public void onSelectionChange(@SuppressWarnings("unused") SelectionChangeEvent event) {
1251
		    public void onSelectionChange(SelectionChangeEvent event) {
1258 1252
		        if (otherSharedTreeSelectionModel.getSelectedObject() != null) {
1259 1253
		            deselectOthers(otherSharedTreeView, otherSharedTreeSelectionModel);
1260 1254
		            otherSharedTreeView.addStyleName("cellTreeWidget-selectedTree");
b/src/gr/grnet/pithos/web/client/PithosSelectionEventManager.java
96 96
    }
97 97

  
98 98
    @Override
99
	public boolean clearCurrentSelection(@SuppressWarnings("unused") CellPreviewEvent<T> event) {
99
	public boolean clearCurrentSelection(CellPreviewEvent<T> event) {
100 100
      return false;
101 101
    }
102 102

  
b/src/gr/grnet/pithos/web/client/SessionExpiredDialog.java
73 73
		// when the button is clicked.
74 74
		Button confirm = new Button("Proceed", new ClickHandler() {
75 75
			@Override
76
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
76
			public void onClick(ClickEvent event) {
77 77
				app.authenticateUser();
78 78
				hide();
79 79
			}
b/src/gr/grnet/pithos/web/client/SortableHeader.java
109 109
  }
110 110

  
111 111
  @Override
112
  public void render(@SuppressWarnings("unused") Context context, SafeHtmlBuilder sb) {
112
  public void render(Context context, SafeHtmlBuilder sb) {
113 113
    if (sorted) {
114 114
      sb.append(template.sorted(IMAGE_WIDTH, reverseSort ? DOWN_ARROW : UP_ARROW, text));
115 115
    } else {
b/src/gr/grnet/pithos/web/client/ToolsMenu.java
41 41
import gr.grnet.pithos.web.client.commands.DeleteCommand;
42 42
import gr.grnet.pithos.web.client.commands.DeleteGroupCommand;
43 43
import gr.grnet.pithos.web.client.commands.EmptyTrashCommand;
44
import gr.grnet.pithos.web.client.commands.NewFolderCommand;
45 44
import gr.grnet.pithos.web.client.commands.PasteCommand;
46 45
import gr.grnet.pithos.web.client.commands.PropertiesCommand;
47
import gr.grnet.pithos.web.client.commands.RefreshCommand;
48 46
import gr.grnet.pithos.web.client.commands.RemoveUserCommand;
49 47
import gr.grnet.pithos.web.client.commands.RestoreTrashCommand;
50 48
import gr.grnet.pithos.web.client.commands.ToTrashCommand;
......
56 54

  
57 55
import java.util.List;
58 56

  
59
import com.google.gwt.resources.client.ImageResource;
60
import com.google.gwt.resources.client.ClientBundle.Source;
61 57
import com.google.gwt.user.client.Command;
62 58
import com.google.gwt.user.client.Window;
63 59
import com.google.gwt.user.client.ui.AbstractImagePrototype;
......
133 129
			        	Object item = app.getClipboard().getItem();
134 130
			        	boolean showPaste = false;
135 131
			        	if (item instanceof List) {
136
			        		List<File> _files = (List<File>) item;
132
			        		@SuppressWarnings("unchecked")
133
							List<File> _files = (List<File>) item;
137 134
			        		if (_files.get(0).getOwner().equals(folder.getOwner()))
138 135
			        			showPaste = true;
139 136
			        	}
......
184 181
							@Override
185 182
							public void execute() {
186 183
					        	for (File f: files)
187
					        		Window.open(app.getApiPath() + files.get(0).getOwner() + files.get(0).getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
184
					        		Window.open(app.getApiPath() + f.getOwner() + f.getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
188 185
							}
189 186
						}));
190 187
			        }
b/src/gr/grnet/pithos/web/client/TopPanel.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import gr.grnet.pithos.web.client.foldertree.Resource;
38 37
import gr.grnet.pithos.web.client.rest.GetRequest;
39 38
import gr.grnet.pithos.web.client.rest.RestException;
40 39

  
......
42 41
import com.google.gwt.core.client.Scheduler;
43 42
import com.google.gwt.http.client.Response;
44 43
import com.google.gwt.resources.client.ImageResource;
45
import com.google.gwt.safehtml.shared.SafeHtml;
46
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
47
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
48 44
import com.google.gwt.user.client.Command;
49
import com.google.gwt.user.client.Cookies;
50 45
import com.google.gwt.user.client.ui.AbstractImagePrototype;
51 46
import com.google.gwt.user.client.ui.Composite;
52 47
import com.google.gwt.user.client.ui.HTML;
53 48
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
54 49
import com.google.gwt.user.client.ui.HasVerticalAlignment;
55 50
import com.google.gwt.user.client.ui.HorizontalPanel;
56
import com.google.gwt.user.client.ui.Image;
57 51
import com.google.gwt.user.client.ui.MenuBar;
58 52
import com.google.gwt.user.client.ui.MenuItem;
59 53

  
......
148 142
			
149 143
			@Override
150 144
			public void execute() {
151
				new CredentialsDialog(app, images).center();
145
				new CredentialsDialog(app).center();
152 146
			}
153 147
		}));
154 148
        userItemMenu.addItem(new MenuItem("logout", new Command() {
b/src/gr/grnet/pithos/web/client/VersionsList.java
102 102
			HTML restoreVersion = new HTML("<a href='#' class='hidden-link info'><span>" + AbstractImagePrototype.create(images.restore()).getHTML() + "</span><div>Restore this Version</div></a>");
103 103
			restoreVersion.addClickHandler(new ClickHandler() {
104 104
				@Override
105
				public void onClick(@SuppressWarnings("unused") ClickEvent event) {
105
				public void onClick(ClickEvent event) {
106 106
					restoreVersion(v.getVersion());
107 107
				}
108 108
			});
......
115 115
			HTML downloadHtml = new HTML("<a class='hidden-link info' href='#'><span>" + AbstractImagePrototype.create(images.download()).getHTML()+"</span><div>View this Version</div></a>");
116 116
			downloadHtml.addClickHandler(new ClickHandler() {
117 117
				@Override
118
				public void onClick(@SuppressWarnings("unused") ClickEvent event) {
118
				public void onClick(ClickEvent event) {
119 119
					String fileUrl = app.getApiPath() + file.getOwner() + file.getUri() + "?X-Auth-Token=" + app.getToken() + "&version=" + v.getVersion();
120 120
					Window.open(fileUrl, "_BLANK", "");
121 121
				}
......
135 135
		PostRequest restoreVersion = new PostRequest(app.getApiPath(), file.getOwner(), path) {
136 136
			
137 137
			@Override
138
			public void onSuccess(@SuppressWarnings("unused") Resource result) {
138
			public void onSuccess(Resource result) {
139 139
				container.hide();
140 140
			}
141 141
			
b/src/gr/grnet/pithos/web/client/commands/AddUserCommand.java
79 79
        	PostRequest updateGroup = new PostRequest(app.getApiPath(), app.getUsername(), path) {
80 80
				
81 81
				@Override
82
				public void onSuccess(@SuppressWarnings("unused") Resource result) {
82
				public void onSuccess(Resource result) {
83 83
					app.updateGroupNode(group);
84 84
				}
85 85
				
b/src/gr/grnet/pithos/web/client/commands/DeleteGroupCommand.java
78 78
        	PostRequest updateGroup = new PostRequest(app.getApiPath(), app.getUsername(), path) {
79 79
				
80 80
				@Override
81
				public void onSuccess(@SuppressWarnings("unused") Resource result) {
81
				public void onSuccess(Resource result) {
82 82
					app.removeGroup(group);
83 83
				}
84 84
				
b/src/gr/grnet/pithos/web/client/commands/EmptyTrashCommand.java
34 34
 */
35 35
package gr.grnet.pithos.web.client.commands;
36 36

  
37
import java.util.Iterator;
38

  
39 37
import gr.grnet.pithos.web.client.Pithos;
40 38
import gr.grnet.pithos.web.client.foldertree.File;
41 39
import gr.grnet.pithos.web.client.foldertree.Folder;
......
44 42
import gr.grnet.pithos.web.client.rest.GetRequest;
45 43
import gr.grnet.pithos.web.client.rest.RestException;
46 44

  
45
import java.util.Iterator;
46

  
47 47
import com.google.gwt.core.client.GWT;
48 48
import com.google.gwt.core.client.Scheduler;
49 49
import com.google.gwt.http.client.Response;
......
117 117
									DeleteRequest deleteF = new DeleteRequest(app.getApiPath(), _f.getOwner(), path) {
118 118
										
119 119
										@Override
120
										public void onSuccess(@SuppressWarnings("unused") Resource result) {
120
										public void onSuccess(Resource _result) {
121 121
											deleteSubfolder(iter2, callback);
122 122
										}
123 123
										
......
177 177
			DeleteRequest deleteF = new DeleteRequest(app.getApiPath(), f.getOwner(), path) {
178 178
				
179 179
				@Override
180
				public void onSuccess(@SuppressWarnings("unused") Resource result) {
180
				public void onSuccess(Resource result) {
181 181
					deleteFile(iter, callback);
182 182
				}
183 183
				
b/src/gr/grnet/pithos/web/client/commands/NewFolderCommand.java
34 34
 */
35 35
package gr.grnet.pithos.web.client.commands;
36 36

  
37
import gr.grnet.pithos.web.client.FileContextMenu.Images;
38 37
import gr.grnet.pithos.web.client.FolderPropertiesDialog;
39 38
import gr.grnet.pithos.web.client.Pithos;
40 39
import gr.grnet.pithos.web.client.foldertree.Folder;
......
55 54

  
56 55
	/**
57 56
	 * @param aContainerPanel
58
	 * @param newImages the images of the new folder dialog
59 57
	 */
60 58
	public NewFolderCommand(Pithos _app, PopupPanel aContainerPanel, Folder folder){
61 59
        app = _app;
b/src/gr/grnet/pithos/web/client/commands/PasteCommand.java
138 138
            String path = folder.getUri() + "/" + file.getName();
139 139
            PutRequest copyFile = new PutRequest(app.getApiPath(), folder.getOwner(), path) {
140 140
                @Override
141
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
141
                public void onSuccess(Resource result) {
142 142
                    moveFiles(iter, callback);
143 143
                }
144 144

  
b/src/gr/grnet/pithos/web/client/commands/RemoveUserCommand.java
78 78
    	PostRequest updateGroup = new PostRequest(app.getApiPath(), app.getUsername(), path) {
79 79
			
80 80
			@Override
81
			public void onSuccess(@SuppressWarnings("unused") Resource result) {
81
			public void onSuccess(Resource result) {
82 82
				app.updateGroupNode(group);
83 83
			}
84 84
			
b/src/gr/grnet/pithos/web/client/commands/RestoreTrashCommand.java
113 113
        String path = "/" + Pithos.HOME_CONTAINER + "/" + f.getPrefix();
114 114
        PutRequest createFolder = new PutRequest(app.getApiPath(), app.getUsername(), path) {
115 115
            @Override
116
            public void onSuccess(@SuppressWarnings("unused") Resource result) {
116
            public void onSuccess(Resource result) {
117 117
            	GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), f.getOwner(), "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix()), f) {
118 118

  
119 119
					@Override
......
130 130
										DeleteRequest deleteFolder = new DeleteRequest(app.getApiPath(), _f.getOwner(), _f.getUri()) {
131 131
											
132 132
											@Override
133
											public void onSuccess(@SuppressWarnings("unused") Resource _result) {
133
											public void onSuccess(Resource _result) {
134 134
												app.updateRootFolder(callback);
135 135
											}
136 136
											
......
210 210
            String path = "/" + Pithos.HOME_CONTAINER + "/" + file.getPath();
211 211
            PutRequest untrashFile = new PutRequest(app.getApiPath(), app.getUsername(), path) {
212 212
                @Override
213
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
213
                public void onSuccess(Resource result) {
214 214
                    untrashFiles(iter, callback);
215 215
                }
216 216

  
b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
113 113
        String path = "/" + Pithos.TRASH_CONTAINER + "/" + f.getPrefix();
114 114
        PutRequest createFolder = new PutRequest(app.getApiPath(), app.getUsername(), path) {
115 115
            @Override
116
            public void onSuccess(@SuppressWarnings("unused") Resource result) {
116
            public void onSuccess(Resource result) {
117 117
            	GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), f.getOwner(), "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix()), f) {
118 118

  
119 119
					@Override
......
130 130
										DeleteRequest deleteFolder = new DeleteRequest(app.getApiPath(), _f.getOwner(), _f.getUri()) {
131 131
											
132 132
											@Override
133
											public void onSuccess(@SuppressWarnings("unused") Resource _result) {
133
											public void onSuccess(Resource _result) {
134 134
												if (callback != null)
135 135
													callback.execute();
136 136
											}
......
213 213
            String path = "/" + Pithos.TRASH_CONTAINER + "/" + file.getPath();
214 214
            PutRequest trashFile = new PutRequest(app.getApiPath(), app.getUsername(), path) {
215 215
                @Override
216
                public void onSuccess(@SuppressWarnings("unused") Resource result) {
216
                public void onSuccess(Resource result) {
217 217
                    trashFiles(iter, callback);
218 218
                }
219 219

  
b/src/gr/grnet/pithos/web/client/components/TristateCheckBox.java
73 73
        addClickHandler(new ClickHandler() {
74 74

  
75 75
			@Override
76
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
76
			public void onClick(ClickEvent event) {
77 77
                final String img = DOM.getElementAttribute(buttonElement, "src");
78 78
                String newImg;
79 79
                if (img.endsWith(UNCHECKED_IMG))
......
138 138
    protected void ensureDomEventHandlers() {
139 139
        addClickHandler(new ClickHandler() {
140 140
        	@Override
141
			public void onClick(@SuppressWarnings("unused") ClickEvent event) {
141
			public void onClick(ClickEvent event) {
142 142
        		ValueChangeEvent.fire(TristateCheckBox.this, getValue());
143 143
        	}
144 144
        });
b/src/gr/grnet/pithos/web/client/foldertree/File.java
37 37

  
38 38
import java.util.Date;
39 39
import java.util.HashMap;
40
import java.util.HashSet;
41 40
import java.util.Map;
42
import java.util.Set;
43 41

  
44 42
import com.google.gwt.http.client.Header;
45 43
import com.google.gwt.http.client.Response;
b/src/gr/grnet/pithos/web/client/foldertree/FolderTreeView.java
62 62
            if (folder.equals(node.getChildValue(i))) {
63 63
                return node.isChildOpen(i);
64 64
            }
65
            else {
66
                if (node.isChildOpen(i)) {
67
                    TreeNode n = node.setChildOpen(i, true);
68
                    return isFolderOpen(n, folder);
69
                }
70
            }
65
			if (node.isChildOpen(i)) {
66
			    TreeNode n = node.setChildOpen(i, true);
67
			    return isFolderOpen(n, folder);
68
			}
71 69
    	}
72 70
        return false;
73 71
	}
......
84 82
            	node.setChildOpen(i, true, true);
85 83
            	break;
86 84
            }
87
            else {
88
                if (node.isChildOpen(i)) {
89
                    TreeNode n = node.setChildOpen(i, true);
90
                    openFolder(n, folder);
91
                    break;
92
                }
93
            }
85
			if (node.isChildOpen(i)) {
86
			    TreeNode n = node.setChildOpen(i, true);
87
			    openFolder(n, folder);
88
			    break;
89
			}
94 90
    	}
95 91
    }
96 92

  
b/src/gr/grnet/pithos/web/client/foldertree/FolderTreeViewModel.java
41 41
import gr.grnet.pithos.web.client.rest.GetRequest;
42 42
import gr.grnet.pithos.web.client.rest.RestException;
43 43

  
44
import java.util.ArrayList;
45 44
import java.util.HashMap;
46
import java.util.HashSet;
47 45
import java.util.Iterator;
48 46
import java.util.Map;
49 47

  
......
58 56
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
59 57
import com.google.gwt.user.client.Command;
60 58
import com.google.gwt.user.client.ui.AbstractImagePrototype;
61
import com.google.gwt.user.client.ui.HTML;
62
import com.google.gwt.user.client.ui.UIObject;
63
import com.google.gwt.view.client.AsyncDataProvider;
64
import com.google.gwt.view.client.HasData;
65 59
import com.google.gwt.view.client.ListDataProvider;
66 60
import com.google.gwt.view.client.SingleSelectionModel;
67 61
import com.google.gwt.view.client.TreeViewModel;
......
73 67
    private Cell<Folder> folderCell = new AbstractCell<Folder>(ContextMenuEvent.getType().getName()) {
74 68

  
75 69
       @Override
76
        public void render(@SuppressWarnings("unused") Context context, Folder folder, SafeHtmlBuilder safeHtmlBuilder) {
70
        public void render(Context context, Folder folder, SafeHtmlBuilder safeHtmlBuilder) {
77 71
            String html;
78 72
            SafeHtml name;
79 73
        	if (folder.isHome()) {
......
93 87
        }
94 88

  
95 89
        @Override
96
        public void onBrowserEvent(@SuppressWarnings("unused") Cell.Context context, @SuppressWarnings("unused") com.google.gwt.dom.client.Element parent, Folder folder, com.google.gwt.dom.client.NativeEvent event, @SuppressWarnings("unused") com.google.gwt.cell.client.ValueUpdater<Folder> valueUpdater) {
90
        public void onBrowserEvent(Cell.Context context, com.google.gwt.dom.client.Element parent, Folder folder, com.google.gwt.dom.client.NativeEvent event, com.google.gwt.cell.client.ValueUpdater<Folder> valueUpdater) {
97 91
            if (event.getType().equals(ContextMenuEvent.getType().getName())) {
98 92
                FolderTreeViewModel.this.selectionModel.setSelected(folder, true);
99 93
                FolderContextMenu menu = new FolderContextMenu(app, FolderTreeView.images, app.getSelectedTree(), folder);
......
149 143
            String path = "/" + f.getContainer() + "?format=json&delimiter=/&prefix=" + URL.encodeQueryString(f.getPrefix());
150 144
            GetRequest<Folder> getFolder = new GetRequest<Folder>(Folder.class, app.getApiPath(), f.getOwner(), path, f) {
151 145
                @Override
152
                public void onSuccess(@SuppressWarnings("unused") Folder _result) {
146
                public void onSuccess(Folder _result) {
153 147
                    fetchFolder(iter, callback);
154 148
                }
155 149

  
b/src/gr/grnet/pithos/web/client/grouptree/GroupTreeViewModel.java
63 63
    private Cell<String> rootCell = new AbstractCell<String>(ContextMenuEvent.getType().getName()) {
64 64

  
65 65
		@Override
66
		public void render(@SuppressWarnings("unused") Context context,	String value, SafeHtmlBuilder sb) {
66
		public void render(Context context,	String value, SafeHtmlBuilder sb) {
67 67
            String html = AbstractImagePrototype.create(GroupTreeView.images.groups()).getHTML();
68 68
            sb.appendHtmlConstant(html).appendHtmlConstant("&nbsp;");
69 69
            sb.append(Templates.INSTANCE.nameSpan(value));
70 70
		}
71 71
		
72 72
        @Override
73
        public void onBrowserEvent(@SuppressWarnings("unused") Cell.Context context, @SuppressWarnings("unused") com.google.gwt.dom.client.Element parent, String s, com.google.gwt.dom.client.NativeEvent event, @SuppressWarnings("unused") com.google.gwt.cell.client.ValueUpdater<String> valueUpdater) {
73
        public void onBrowserEvent(Cell.Context context, com.google.gwt.dom.client.Element parent, String s, com.google.gwt.dom.client.NativeEvent event, com.google.gwt.cell.client.ValueUpdater<String> valueUpdater) {
74 74
            GroupTreeViewModel.this.rootSelectionModel.setSelected(s, true);
75 75
            if (event.getType().equals(ContextMenuEvent.getType().getName())) {
76 76
                GroupContextMenu menu = new GroupContextMenu(app, GroupTreeView.images, null);
......
83 83
	private Cell<Group> groupCell = new AbstractCell<Group>(ContextMenuEvent.getType().getName()) {
84 84

  
85 85
		@Override
86
		public void render(@SuppressWarnings("unused") Context context,	Group value, SafeHtmlBuilder sb) {
86
		public void render(Context context,	Group value, SafeHtmlBuilder sb) {
87 87
            String html = AbstractImagePrototype.create(GroupTreeView.images.group()).getHTML();
88 88
            sb.appendHtmlConstant(html).appendHtmlConstant("&nbsp;");
89 89
            sb.append(Templates.INSTANCE.nameSpan(value.getName()));
90 90
		}
91 91
		
92 92
        @Override
93
        public void onBrowserEvent(@SuppressWarnings("unused") Cell.Context context, @SuppressWarnings("unused") com.google.gwt.dom.client.Element parent, Group group, com.google.gwt.dom.client.NativeEvent event, @SuppressWarnings("unused") com.google.gwt.cell.client.ValueUpdater<Group> valueUpdater) {
93
        public void onBrowserEvent(Cell.Context context, com.google.gwt.dom.client.Element parent, Group group, com.google.gwt.dom.client.NativeEvent event, com.google.gwt.cell.client.ValueUpdater<Group> valueUpdater) {
94 94
            GroupTreeViewModel.this.groupSelectionModel.setSelected(group, true);
95 95
            if (event.getType().equals(ContextMenuEvent.getType().getName())) {
96 96
                GroupContextMenu menu = new GroupContextMenu(app, GroupTreeView.images, group);
......
103 103
    private Cell<User> userCell = new AbstractCell<User>(ContextMenuEvent.getType().getName()) {
104 104

  
105 105
		@Override
106
		public void render(@SuppressWarnings("unused") Context context,	User value, SafeHtmlBuilder sb) {
106
		public void render(Context context,	User value, SafeHtmlBuilder sb) {
107 107
            String html = AbstractImagePrototype.create(GroupTreeView.images.user()).getHTML();
108 108
            sb.appendHtmlConstant(html).appendHtmlConstant("&nbsp;");
109 109
            sb.append(Templates.INSTANCE.nameSpan(value.getName()));
110 110
		}
111 111

  
112 112
        @Override
113
        public void onBrowserEvent(@SuppressWarnings("unused") Cell.Context context, @SuppressWarnings("unused") com.google.gwt.dom.client.Element parent, User user, com.google.gwt.dom.client.NativeEvent event, @SuppressWarnings("unused") com.google.gwt.cell.client.ValueUpdater<User> valueUpdater) {
113
        public void onBrowserEvent(Cell.Context context, com.google.gwt.dom.client.Element parent, User user, com.google.gwt.dom.client.NativeEvent event, com.google.gwt.cell.client.ValueUpdater<User> valueUpdater) {
114 114
            GroupTreeViewModel.this.userSelectionModel.setSelected(user, true);
115 115
            if (event.getType().equals(ContextMenuEvent.getType().getName())) {
116 116
                UserContextMenu menu = new UserContextMenu(app, GroupTreeView.images, user);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff