List of usage examples for com.google.gwt.dom.client TableRowElement getAttribute
@Override
public String getAttribute(String name)
From source file:org.rstudio.studio.client.common.compile.errorlist.CompileErrorItemCodec.java
License:Open Source License
@Override protected boolean needsBreak(TableRowElement prevRow, TableRowElement row) { if (!showFileHeaders_) return false; if (prevRow == null) return true; String a = StringUtil.notNull(row.getAttribute(DATA_PATH)); String b = StringUtil.notNull(prevRow.getAttribute(DATA_PATH)); return !a.equals(b); }
From source file:org.rstudio.studio.client.common.compile.errorlist.CompileErrorItemCodec.java
License:Open Source License
@Override protected int addBreak(TableRowElement row) { TableRowElement headerRow = Document.get().createTRElement(); headerRow.setClassName(resources_.styles().headerRow()); TableCellElement cell = Document.get().createTDElement(); cell.setColSpan(3);//from ww w. j av a2 s . c o m String path = row.getAttribute(DATA_PATH); if (fileHeaderBasePath_ != null) { if (path.startsWith(fileHeaderBasePath_)) path = path.substring(fileHeaderBasePath_.length()); } cell.setInnerText(path); headerRow.appendChild(cell); row.getParentElement().insertBefore(headerRow, row); return 1; }
From source file:org.rstudio.studio.client.common.compile.errorlist.CompileErrorItemCodec.java
License:Open Source License
@Override public CodeNavigationTarget getOutputForRow(TableRowElement row) { String path = row.getAttribute(DATA_PATH); int line = Integer.parseInt(row.getAttribute(DATA_LINE)); if (line < 0) // If we couldn't figure out the line line = 1;//from w w w . j a v a 2 s. c om int column = Integer.parseInt(row.getAttribute(DATA_COLUMN)); if (column < 0) // If we couldn't figure out the column column = 1; return new CodeNavigationTarget(path, FilePosition.create(line, column)); }
From source file:org.rstudio.studio.client.common.compile.errorlist.CompileErrorItemCodec.java
License:Open Source License
@Override public CodeNavigationTarget getOutputForRow2(TableRowElement row) { String path = row.getAttribute(LOG_PATH); int line = Integer.parseInt(row.getAttribute(LOG_LINE)); if (line < 0) // If we couldn't figure out the line line = 1;/*from w ww. j a va 2s. c om*/ return new CodeNavigationTarget(path, FilePosition.create(line, 1)); }
From source file:org.rstudio.studio.client.common.compilepdf.CompilePdfErrorItemCodec.java
License:Open Source License
@Override protected int addBreak(TableRowElement row) { TableRowElement headerRow = Document.get().createTRElement(); headerRow.setClassName(resources_.styles().headerRow()); TableCellElement cell = Document.get().createTDElement(); cell.setColSpan(3);// w w w . jav a 2s . c om cell.setInnerText(row.getAttribute(DATA_PATH)); headerRow.appendChild(cell); row.getParentElement().insertBefore(headerRow, row); return 1; }
From source file:org.rstudio.studio.client.common.compilepdf.CompilePdfErrorItemCodec.java
License:Open Source License
@Override public CodeNavigationTarget getOutputForRow(TableRowElement row) { String path = row.getAttribute(DATA_PATH); int line = Integer.parseInt(row.getAttribute(DATA_LINE)); if (line < 0) // If we couldn't figure out the line line = 1;/* w w w . ja va2 s .c o m*/ return new CodeNavigationTarget(path, FilePosition.create(line, 0)); }
From source file:org.rstudio.studio.client.common.compilepdf.CompilePdfErrorItemCodec.java
License:Open Source License
@Override public CodeNavigationTarget getOutputForRow2(TableRowElement row) { String path = row.getAttribute(LOG_PATH); int line = Integer.parseInt(row.getAttribute(LOG_LINE)); if (line < 0) // If we couldn't figure out the line line = 1;/*from w ww. ja v a 2 s .com*/ return new CodeNavigationTarget(path, FilePosition.create(line, 0)); }
From source file:org.rstudio.studio.client.common.sourcemarkers.SourceMarkerItemCodec.java
License:Open Source License
@Override protected int addBreak(TableRowElement row) { TableRowElement headerRow = Document.get().createTRElement(); headerRow.setClassName(resources_.styles().headerRow()); TableCellElement cell = Document.get().createTDElement(); cell.setColSpan(3);//ww w.j ava2 s.c om String path = row.getAttribute(DATA_PATH); if (!StringUtil.isNullOrEmpty(fileHeaderBasePath_)) { if (path.startsWith(fileHeaderBasePath_)) path = path.substring(fileHeaderBasePath_.length()); } cell.setInnerText(path); headerRow.appendChild(cell); row.getParentElement().insertBefore(headerRow, row); return 1; }
From source file:org.rstudio.studio.client.workbench.views.history.view.HistoryEntryItemCodec.java
License:Open Source License
public Long getOutputForRow2(TableRowElement row) { return Long.parseLong(row.getAttribute("data-entry-id")); }
From source file:org.rstudio.studio.client.workbench.views.history.view.HistoryEntryItemCodec.java
License:Open Source License
private long getTimestampForRow(TableRowElement row) { return Long.parseLong(row.getAttribute("data-timestamp")); }