use of org.eclipse.core.runtime.IBundleGroup in project knime-core by knime.
the class GlobalTimerinfoNodeModel method execute.
/**
* {@inheritDoc}
*/
@Override
protected PortObject[] execute(final PortObject[] inData, final ExecutionContext exec) throws Exception {
BufferedDataTable result0 = NodeTimer.GLOBAL_TIMER.getGlobalStatsTable(exec);
BufferedDataContainer result1 = exec.createDataContainer(createSpecOut1());
int rowcount = 0;
for (IBundleGroupProvider provider : Platform.getBundleGroupProviders()) {
for (IBundleGroup feature : provider.getBundleGroups()) {
DataRow row = new DefaultRow(new RowKey("Row " + rowcount++), new StringCell(feature.getIdentifier()), new StringCell(feature.getVersion()));
result1.addRowToTable(row);
}
}
result1.close();
return new PortObject[] { result0, result1.getTable() };
}
Aggregations