import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
import org.eclipse.linuxtools.tmf.core.statesystem.IStateChangeInput;
+import org.eclipse.linuxtools.tmf.core.statesystem.ITmfStateSystem;
import org.eclipse.linuxtools.tmf.core.statesystem.StateSystemManager;
/**
@Override
protected void buildStateSystem() throws TmfTraceException {
+ super.buildStateSystem();
+
/* Set up the path to the history tree file we'll use */
IResource resource = this.getResource();
String supplDirectory = null;
final File htFile = new File(supplDirectory + File.separator + HISTORY_TREE_FILE_NAME);
final IStateChangeInput htInput = new CtfKernelStateInput(this);
- this.ss = StateSystemManager.loadStateHistory(htFile, htInput, STATE_ID, false);
- }
-
- @Override
- public synchronized void dispose() {
- /* Clean up the state system */
- if (ss != null) {
- ss.dispose();
- }
- super.dispose();
+ ITmfStateSystem ss = StateSystemManager.loadStateHistory(htFile, htInput, STATE_ID, false);
+ fStateSystems.put(STATE_ID, ss);
}
-
}