}
public Widget buildProfileButton(boolean enabled) {
if ("true".equals(getSettings().getString("showProfileAsButton", "false"))) {
ToolbarButton profileButton = new ToolbarButton(getMessages().getString("profile", "Profile"), new Command() {
public void execute() {
// it is possible the user is 'stale', but HIGHLY unlikely
AuthenticationHandler.getInstance().showEditAccountDialog(getAuthenticatedUser());
}
});
profileButton.setEnabled(enabled);
return profileButton;
}
MenuBar profileMenu = new MenuBar(true);