private int cpuNumber = -1;
- private final boolean showDebug = false;
+// private final boolean showDebug = false;
public LTTngTextTrace(final IResource resource, final String path) throws Exception {
this(resource, path, true); // false);
if ( skipPosition < 0 )
skipPosition = 0L;
- if ( showDebug == true ) {
- System.out.println("skipToPosition(Long skipPosition)"); //$NON-NLS-1$
- System.out.println("\tSkipping to : " + skipPosition); //$NON-NLS-1$
- System.out.println();
- }
+// if ( showDebug == true ) {
+// System.out.println("skipToPosition(Long skipPosition)"); //$NON-NLS-1$
+// System.out.println("\tSkipping to : " + skipPosition); //$NON-NLS-1$
+// System.out.println();
+// }
positionToFirstEvent();
final long nbSkipped = br.skip(skipPosition);
if ( nbSkipped != skipPosition)
// We should check in a better way (string comparison and such) but it make the whole process to weight a lot more
// Conclusion : this is ugly but fast.
if ( tmpCurIndex < 0 ) {
- if ( showDebug == true ) {
- System.out.println("END OF FILE."); //$NON-NLS-1$
- System.out.println();
- }
+// if ( showDebug == true ) {
+// System.out.println("END OF FILE."); //$NON-NLS-1$
+// System.out.println();
+// }
return null;
}
returnedEvent = currentLttngEvent;
}
- else if ( showDebug == true ) {
- System.out.println("NULL READING"); //$NON-NLS-1$
- System.out.println();
- returnedEvent = null;
- }
+// else if ( showDebug == true ) {
+// System.out.println("NULL READING"); //$NON-NLS-1$
+// System.out.println();
+// returnedEvent = null;
+// }
}
catch (final Exception e) {
System.out.println("Pos is :" + nbCharRead); //$NON-NLS-1$
* <p>
* Test the TMF core plug-in activator
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfCorePluginTest extends TestCase {
// ------------------------------------------------------------------------
* <p>
* The activator class controls the plug-in life cycle
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfCoreTestPlugin extends Plugin {
// ------------------------------------------------------------------------
* <p>
* Test suite for the TmfEventProvider class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfEventProviderTest extends TestCase {
TmfEventProviderStub fEventProvider;
* <p>
* Test suite for the TmfProviderManager class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfProviderManagerTest extends TestCase {
public TmfProviderManagerTest(String name) {
* @author ematkho
* @version $Revision: 1.0 $
*/
-@SuppressWarnings("restriction")
public class CtfTmfTraceTest {
private static final String PATH = TestParams.getPath();
public static void main(String[] args) {
new org.junit.runner.JUnitCore().run(CtfTmfTraceTest.class);
}
-}
\ No newline at end of file
+}
/**
* Test suite for org.eclipse.linuxtools.tmf.core.event
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class AllTests {
public static Test suite() {
import org.eclipse.linuxtools.internal.tmf.core.Activator;
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class AllTests {
public static Test suite() {
* <p>
* Test suite for the TmfCoalescedDataRequest class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfCoalescedDataRequestTest extends TestCase {
// ------------------------------------------------------------------------
* <p>
* Test suite for the TmfCoalescedEventRequest class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfCoalescedEventRequestTest extends TestCase {
// ------------------------------------------------------------------------
*
* Test suite for the TmfRequestExecutor class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfRequestExecutorTest extends TestCase {
// ------------------------------------------------------------------------
/**
* Test suite for org.eclipse.linuxtools.tmf.core.trace
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class AllTests {
public static Test suite() {
/**
* Test suite for the TmfCheckpointIndexTest class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfExperimentCheckpointIndexTest extends TestCase {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfExperiment class (single trace).
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfExperimentTest extends TestCase {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfTrace class.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfTraceTest extends TestCase {
// ------------------------------------------------------------------------
import org.eclipse.linuxtools.internal.tmf.core.Activator;
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class AllTests {
public static Test suite() {
import org.eclipse.linuxtools.internal.tmf.core.Activator;
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class AllTests {
public static Test suite() {
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfClientStub extends TmfComponent {
private TmfDataProvider<TmfSyntheticEventStub>[] fProviders;
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({ "nls", "restriction" })
+@SuppressWarnings({ "nls" })
public class TmfSyntheticEventProviderStub extends TmfEventProvider<TmfSyntheticEventStub> {
public static final int BLOCK_SIZE = 100;