return profileButton;
}
MenuBar profileMenu = new MenuBar(true);
MenuItem editAccountMenuItem = new MenuItem(getMessages().getString("account", "Account"), new MenuButtonCommand() {
public void execute() {
popup.hide();
// it is possible the user is 'stale', but HIGHLY unlikely
AuthenticationHandler.getInstance().showEditAccountDialog(getAuthenticatedUser());
}
});
editAccountMenuItem.setTitle(getMessages().getString("editYourAccount", "Edit Your Account"));
profileMenu.addItem(editAccountMenuItem);
MenuItem myFilesMenuItem = new MenuItem(getMessages().getString("fileManager", "File Manager"), new MenuButtonCommand() {
public void execute() {
GWT.runAsync(new RunAsyncCallback() {
public void onFailure(Throwable reason) {
}