private void addFileNameColumn() {
   Column<MessageConsoleServiceRow, HyperLinkCell.HyperLink> column =
       new Column<MessageConsoleServiceRow, HyperLinkCell.HyperLink>(new HyperLinkCell()) {
         @Override
         public HyperLinkCell.HyperLink getValue(MessageConsoleServiceRow row) {
           if (row.getMessagePath() != null) {
             return HyperLinkCell.HyperLink.newLink(row.getMessagePath().getFileName());
           } else {
             return HyperLinkCell.HyperLink.newText("-");
           }
         }
       };
   column.setFieldUpdater(
       new FieldUpdater<MessageConsoleServiceRow, HyperLinkCell.HyperLink>() {
         @Override
         public void update(
             final int index,
             final MessageConsoleServiceRow row,
             final HyperLinkCell.HyperLink value) {
           if (row.getMessagePath() != null) {
             placeManager.goTo(row.getMessagePath());
           }
         }
       });
   dataGrid.addColumn(column, MessageConsoleResources.CONSTANTS.FileName());
   dataGrid.setColumnWidth(column, 60, Style.Unit.PCT);
 }
 private void addLineColumn() {
   Column<MessageConsoleServiceRow, ?> lineColumn =
       new Column<MessageConsoleServiceRow, String>(new TextCell()) {
         @Override
         public String getValue(MessageConsoleServiceRow row) {
           return row != null ? Integer.toString(row.getMessageLine()) : null;
         }
       };
   dataGrid.addColumn(lineColumn, MessageConsoleResources.CONSTANTS.Line());
   dataGrid.setColumnWidth(lineColumn, 60, Style.Unit.PCT);
 }
 private void addTextColumn() {
   Column<MessageConsoleServiceRow, ?> column =
       new Column<MessageConsoleServiceRow, String>(new TextCell()) {
         @Override
         public String getValue(MessageConsoleServiceRow row) {
           return row.getMessageText();
         }
       };
   dataGrid.addColumn(column, MessageConsoleResources.CONSTANTS.Text());
   dataGrid.setColumnWidth(column, 60, Style.Unit.PCT);
 }
 private void addLevelColumn() {
   Column<MessageConsoleServiceRow, ?> column =
       new Column<MessageConsoleServiceRow, ImageResource>(new ImageResourceCell()) {
         @Override
         public ImageResource getValue(MessageConsoleServiceRow row) {
           switch (row.getMessageLevel()) {
             case ERROR:
               return MessageConsoleResources.INSTANCE.Error();
             case WARNING:
               return MessageConsoleResources.INSTANCE.Warning();
             case INFO:
             default:
               return MessageConsoleResources.INSTANCE.Information();
           }
         }
       };
   dataGrid.addColumn(column, MessageConsoleResources.CONSTANTS.Level());
   dataGrid.setColumnWidth(column, 60, Style.Unit.PCT);
 }