fLastEventIndex = index;
}
-
@Override
public void handleData(ITmfEvent data) {
++fLastEventIndex;
public abstract class AbsTmfStatisticsTree {
/**
- * String builder used to merge string more efficienctly.
+ * String builder used to merge string more efficiently.
*/
protected static final StringBuilder fBuilder = new StringBuilder();
public static final TmfFixedArray<String> ROOT = new TmfFixedArray<String>("root"); //$NON-NLS-1$
/**
- * Function to merge many string more efficienctly.
+ * Function to merge many string more efficiently.
*
* @param strings
* Strings to merge.
protected abstract void registerName(final TmfFixedArray<String> path);
/**
- * Reset a node.
+ * Resets a node.
*
* Works recursively.
*
*/
public void resetTimeRangeValue(final TmfFixedArray<String> path) {
for (TmfStatisticsTreeNode node : getChildren(path)) {
- resetTimeRangeValue(node.getPath());
node.resetTimeRangeValue();
}
}
@SuppressWarnings({ "rawtypes", "unchecked" })
protected TmfFixedArray<String>[] getTypePaths(ITmfEvent event, ITmfExtraEventInfo extraInfo) {
String trace = extraInfo.getTraceName();
- // String type = event.getType().getTypeId(); // Add too much
- // informations
String type = event.getType().toString();
TmfFixedArray[] paths = { new TmfFixedArray<String>(trace, HEADER_EVENT_TYPES, type) };
* Resets the number of events in the time range. It doesn't remove any node
* and doesn't modify the global event count.
*
+ * Works recursively.
+ *
* @since 2.0
*/
public void resetTimeRangeValue() {
*
* @param traceUniqueId
* Unique ID for the trace
- * @return the corresponding trace statistics tree
+ * @return The root node of the corresponding trace statistics tree
*/
public static TmfStatisticsTreeNode getStatTreeRoot(String traceUniqueId) {
private static final String BUNDLE_NAME = "org.eclipse.linuxtools.tmf.ui.views.statistics.messages"; //$NON-NLS-1$
- /**
- * String for unknown trace name.
- */
- public static String TmfStatisticsView_UnknownTraceName;
-
/**
* String for the global tab name
* @since 2.0
/**
* Creates the statistics viewers for all traces in the experiment and
- * popupale a viewer folder. Each viewer is placed in a different tab and
+ * populates a viewer folder. Each viewer is placed in a different tab and
* the first one is selected automatically.
*
* It uses the extension point that defines the statistics viewer to build
TmfStatisticsViewer globalViewer = new TmfStatisticsViewer();
if (fExperiment != null) {
// Shows the name of the experiment in the global tab
- globalViewer.init( folder, Messages.TmfStatisticsView_GlobalTabName + " - " + fExperiment.getName(), fExperiment); //$NON-NLS-1$
+ globalViewer.init(folder, Messages.TmfStatisticsView_GlobalTabName + " - " + fExperiment.getName(), fExperiment); //$NON-NLS-1$
fStatsViewers.addTab(globalViewer, Messages.TmfStatisticsView_GlobalTabName, defaultStyle);
String traceName;