Revision b75210b5 src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
266 | 266 |
|
267 | 267 |
private HTML numOfFiles; |
268 | 268 |
|
269 |
private Toolbar toolbar; |
|
270 |
|
|
269 | 271 |
@Override |
270 | 272 |
public void onModuleLoad() { |
271 | 273 |
if (parseUserCredentials()) |
... | ... | |
310 | 312 |
header.setCellHorizontalAlignment(messagePanel, HasHorizontalAlignment.ALIGN_CENTER); |
311 | 313 |
header.setCellVerticalAlignment(messagePanel, HasVerticalAlignment.ALIGN_MIDDLE); |
312 | 314 |
|
313 |
final Toolbar toolbar = new Toolbar(this);
|
|
315 |
toolbar = new Toolbar(this); |
|
314 | 316 |
header.add(toolbar); |
315 | 317 |
header.setCellHorizontalAlignment(toolbar, HasHorizontalAlignment.ALIGN_CENTER); |
316 | 318 |
header.setCellVerticalAlignment(toolbar, HasVerticalAlignment.ALIGN_MIDDLE); |
... | ... | |
349 | 351 |
} |
350 | 352 |
}); |
351 | 353 |
} |
352 |
toolbar.showRelevantButtons();
|
|
354 |
showRelevantToolbarButtons();
|
|
353 | 355 |
} |
354 | 356 |
}); |
355 | 357 |
selectionModels.add(folderTreeSelectionModel); |
... | ... | |
1138 | 1140 |
upload.setEnabled(false); |
1139 | 1141 |
updateSharedFolder(mysharedTreeSelectionModel.getSelectedObject(), true); |
1140 | 1142 |
} |
1143 |
showRelevantToolbarButtons(); |
|
1141 | 1144 |
} |
1142 | 1145 |
}); |
1143 | 1146 |
selectionModels.add(mysharedTreeSelectionModel); |
... | ... | |
1165 | 1168 |
applyPermissions(otherSharedTreeSelectionModel.getSelectedObject()); |
1166 | 1169 |
updateOtherSharedFolder(otherSharedTreeSelectionModel.getSelectedObject(), true); |
1167 | 1170 |
} |
1171 |
showRelevantToolbarButtons(); |
|
1168 | 1172 |
} |
1169 | 1173 |
}); |
1170 | 1174 |
selectionModels.add(otherSharedTreeSelectionModel); |
... | ... | |
1199 | 1203 |
public void setError(Throwable t) { |
1200 | 1204 |
error = t; |
1201 | 1205 |
} |
1206 |
|
|
1207 |
public void showRelevantToolbarButtons() { |
|
1208 |
toolbar.showRelevantButtons(); |
|
1209 |
} |
|
1202 | 1210 |
} |
Also available in: Unified diff