use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.IDataEntry in project linuxtools by eclipse.
the class FilteredRowDataSet method rebuildDataSet.
// End IFilteredDataSet Methods
private void rebuildDataSet() {
IDataEntry top = original.getEntry(original.getEntryCount() - 1);
if (filtersChanged || dataCount != original.getRowCount() || topData != top) {
dataCount = original.getRowCount();
topData = top;
List<Object>[] filterData = getFilterData();
for (int i = 0; i < filters.size(); i++) {
filterData = filters.get(i).filter(filterData);
}
setFilteredData(filterData);
}
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.IDataEntry in project linuxtools by eclipse.
the class FilteredTableDataSet method rebuildDataSet.
// End IFilteredDataSet Methods
private void rebuildDataSet() {
IDataEntry top = original.getEntry(original.getEntryCount() - 1);
if (filtersChanged || dataCount != original.getRowCount() || topData != top || historical) {
dataCount = original.getRowCount();
topData = top;
historical = false;
List<Object>[] filterData = getFilterData();
for (int i = 0; i < filters.size(); i++) {
filterData = filters.get(i).filter(filterData);
}
setFilteredData(filterData);
}
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.IDataEntry in project linuxtools by eclipse.
the class RowDataSetTest method testRemove.
@Test
public void testRemove() {
assertFalse(data.remove(null));
assertFalse(data.remove(new RowEntry()));
assertFalse(data.remove(-1));
assertFalse(data.remove(10));
assertEquals(2, data.getEntryCount());
IDataEntry entry = data.getEntry(0);
assertTrue(data.remove(entry));
assertEquals(1, data.getEntryCount());
assertFalse(data.remove(entry));
assertTrue(data.remove(0));
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.IDataEntry in project linuxtools by eclipse.
the class RowEntryTest method testCopy.
@Test
public void testCopy() {
IDataEntry entry2 = entry.copy();
assertEquals(entry2.getRowCount(), entry.getRowCount());
assertEquals(entry2.getColCount(), entry.getColCount());
assertSame(entry2.getRow(0)[1], entry.getRow(0)[1]);
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.IDataEntry in project linuxtools by eclipse.
the class TableDataSetTest method testRemove.
@Test
public void testRemove() {
assertFalse(data.remove(null));
assertFalse(data.remove(new TableEntry()));
assertFalse(data.remove(-1));
assertFalse(data.remove(10));
assertEquals(2, data.getEntryCount());
IDataEntry entry = data.getEntry(0);
assertTrue(data.remove(entry));
assertEquals(1, data.getEntryCount());
assertFalse(data.remove(entry));
assertTrue(data.remove(0));
}
Aggregations