Skip to content
Snippets Groups Projects
Commit 1a0485e0 authored by felmer's avatar felmer
Browse files

LMS-1464 logging improved, add bottom tool bars after asynch server call

SVN: 15372
parent 1660af3e
No related branches found
No related tags found
No related merge requests found
...@@ -612,11 +612,11 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod ...@@ -612,11 +612,11 @@ public abstract class AbstractBrowserGrid<T/* Entity */, M extends BaseEntityMod
listEntities(resultSetConfig, listCallback); listEntities(resultSetConfig, listCallback);
if (bottomToolbars.getItemCount() == 0) if (bottomToolbars.getItemCount() == 0)
{ {
int logID = log("add bottom tool bars"); int addLogID = log("add bottom tool bars");
bottomToolbars.add(filterToolbar, new RowData(1, -1)); bottomToolbars.add(filterToolbar, new RowData(1, -1));
bottomToolbars.add(pagingToolbar, new RowData(1, -1)); bottomToolbars.add(pagingToolbar, new RowData(1, -1));
bottomToolbars.layout(true); bottomToolbars.layout(true);
viewContext.logStop(logID); viewContext.logStop(addLogID);
} }
} }
......
...@@ -47,7 +47,7 @@ public final class BrowserGridPagingToolBar extends PagingToolBar ...@@ -47,7 +47,7 @@ public final class BrowserGridPagingToolBar extends PagingToolBar
public static final String CONFIG_BUTTON_ID = public static final String CONFIG_BUTTON_ID =
GenericConstants.ID_PREFIX + "paged-grid-config-button"; GenericConstants.ID_PREFIX + "paged-grid-config-button";
private final IMessageProvider messageProvider; private final IViewContext<?> messageProvider;
private final Button exportButton; private final Button exportButton;
...@@ -169,6 +169,7 @@ public final class BrowserGridPagingToolBar extends PagingToolBar ...@@ -169,6 +169,7 @@ public final class BrowserGridPagingToolBar extends PagingToolBar
exportButton.setEnabled(true); exportButton.setEnabled(true);
String title = messageProvider.getMessage(Dict.TOOLTIP_EXPORT_ENABLED); String title = messageProvider.getMessage(Dict.TOOLTIP_EXPORT_ENABLED);
GWTUtils.setToolTip(exportButton, title); GWTUtils.setToolTip(exportButton, title);
messageProvider.log("export button enabled");
} }
public final void disableExportButton() public final void disableExportButton()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment