org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=warning
org.eclipse.jdt.core.compiler.problem.nullReference=error
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
private CtfTmfTestTraces() {}
- private static final File emptyFile = new File(""); //$NON-NLS-1$
+ private static final File emptyFile = new File("");
private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
private static CtfTmfTrace[] testTraces = new CtfTmfTrace[2];
/**
* Test the TMF core plug-in activator
*/
-@SuppressWarnings("nls")
public class TmfCorePluginTest {
// ------------------------------------------------------------------------
* <p>
* The activator class controls the plug-in life cycle
*/
-@SuppressWarnings({ "nls" })
public class TmfCoreTestPlugin extends Plugin {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfEventProvider class.
*/
-@SuppressWarnings("nls")
public class TmfEventProviderTest {
private TmfEventProviderStub fEventProvider;
/**
* Test suite for the TmfProviderManager class.
*/
-@SuppressWarnings("nls")
public class TmfProviderManagerTest {
// ------------------------------------------------------------------------
@Test
public void testCtfIterator_init() {
CtfTmfTrace trace = getTrace();
- trace.init("test"); //$NON-NLS-1$
+ trace.init("test");
CtfIterator result = new CtfIterator(trace);
assertNotNull(result);
*/
@Test
public void testToString() {
- String expected = "Element [1/0]"; //$NON-NLS-1$
+ String expected = "Element [1/0]";
assertEquals(expected, fixture.toString());
}
}
CtfLocationInfo location = fixture.getLocationInfo();
Long result = location.getTimestamp();
assertNotNull(result);
- assertEquals("1", result.toString()); //$NON-NLS-1$
+ assertEquals("1", result.toString());
assertEquals((byte) 1, result.byteValue());
assertEquals((short) 1, result.shortValue());
assertEquals(1, result.intValue());
@Test
public void testToString_valid(){
CtfLocation fixture2 = new CtfLocation(new CtfLocationInfo(1337, 7331));
- assertEquals("CtfLocation [fLocationInfo=Element [1337/7331]]", fixture2.toString()); //$NON-NLS-1$
+ assertEquals("CtfLocation [fLocationInfo=Element [1337/7331]]", fixture2.toString());
}
/**
@Test
public void testToString_invalid(){
CtfLocation fixture2 = new CtfLocation(new CtfLocationInfo(-1, -1));
- assertEquals("CtfLocation [INVALID]", fixture2.toString()); //$NON-NLS-1$
+ assertEquals("CtfLocation [INVALID]", fixture2.toString());
}
}
* @author ematkho
* @version 1.0
*/
-@SuppressWarnings("nls")
public class CtfTmfEventFieldTest {
private static final String ROOT = "root";
@Test
public void testGetEventName() {
String result = nullEvent.getEventName();
- assertEquals("Empty CTF event", result); //$NON-NLS-1$
+ assertEquals("Empty CTF event", result);
}
/**
*/
@Test
public void testGetFieldValue() {
- String fieldName = "pid"; //$NON-NLS-1$
+ String fieldName = "pid";
ITmfEventField result = fixture.getContent().getField(fieldName);
assertNotNull(result);
String source = fixture.getSource();
ITmfEventType type = fixture.getType();
assertEquals(ITmfContext.UNKNOWN_RANK, rank);
- assertEquals("test", trace.getName()); //$NON-NLS-1$
- assertEquals("channel0_1", reference); //$NON-NLS-1$
- assertEquals("1", source); //$NON-NLS-1$
- assertEquals("lttng_statedump_vm_map", type.toString()); //$NON-NLS-1$
+ assertEquals("test", trace.getName());
+ assertEquals("channel0_1", reference);
+ assertEquals("1", source);
+ assertEquals("lttng_statedump_vm_map", type.toString());
}
/**
Set<String> attributes = fixture.listCustomAttributes();
assertEquals(0, attributes.size());
- String attrib = fixture.getCustomAttribute("bozo"); //$NON-NLS-1$
+ String attrib = fixture.getCustomAttribute("bozo");
assertNull(attrib);
}
@Test
public void testToString() {
String s = fixture.getContent().toString();
- assertEquals("pid=1922, start=0xb73ea000, end=0xb73ec000, flags=0x8000075, inode=917738, pgoff=0", s); //$NON-NLS-1$
+ assertEquals("pid=1922, start=0xb73ea000, end=0xb73ec000, flags=0x8000075, inode=917738, pgoff=0", s);
}
/**
assertSame(nullEvent2, nullEvent);
assertNotNull(nullEvent);
assertEquals(-1, nullEvent.getCPU());
- assertEquals("Empty CTF event", nullEvent.getEventName()); //$NON-NLS-1$
- assertEquals("No stream", nullEvent.getReference()); //$NON-NLS-1$
+ assertEquals("Empty CTF event", nullEvent.getEventName());
+ assertEquals("No stream", nullEvent.getReference());
assertArrayEquals(new ITmfEventField[0], nullEvent.getContent().getFields());
assertEquals(-1L, nullEvent.getID());
assertEquals(-1L, nullEvent.getTimestamp().getValue());
* @author ematkho
* @version 1.0
*/
-@SuppressWarnings("nls")
public class CtfTmfEventTypeTest {
/**
* @author ematkho
* @version 1.0
*/
-@SuppressWarnings({"nls"})
public class CtfTmfTimestampTest {
/**
CtfTmfTimestamp result = new CtfTmfTimestamp(timestamp);
assertNotNull(result);
- assertEquals(df.format(d) + " 000 001", result.toString()); //$NON-NLS-1$
+ assertEquals(df.format(d) + " 000 001", result.toString());
assertEquals(0, result.getPrecision());
assertEquals(-9, result.getScale());
assertEquals(1L, result.getValue());
*/
@Test
public void testGetEnvValue() {
- String key = "tracer_name"; //$NON-NLS-1$
+ String key = "tracer_name";
String result = fixture.getEnvValue(key);
- assertEquals("\"lttng-modules\"",result); //$NON-NLS-1$
+ assertEquals("\"lttng-modules\"",result);
}
/**
* @param args The command-line arguments
*/
public static void main(final String[] args) {
- final String TRACE_PATH = "testfiles/kernel"; //$NON-NLS-1$
+ final String TRACE_PATH = "testfiles/kernel";
final int NUM_LOOPS = 100;
// Change this to enable text output
nbEvent++;
if (USE_TEXT) {
- System.out.println("Event " + nbEvent + " Time " //$NON-NLS-1$ //$NON-NLS-2$
- + current.getTimestamp().toString() + " type " + current.getEventName() //$NON-NLS-1$
- + " on CPU " + current.getSource() + " " + current.getContent().toString()) ; //$NON-NLS-1$ //$NON-NLS-2$
+ System.out.println("Event " + nbEvent + " Time "
+ + current.getTimestamp().toString() + " type " + current.getEventName()
+ + " on CPU " + current.getSource() + " " + current.getContent().toString());
}
// advance the trace to the next event.
boolean hasMore = traceReader.advance();
final double time = (stop - start) / (double) nbEvent;
benchs.add(time);
}
- System.out.println(""); //$NON-NLS-1$
+ System.out.println("");
double avg = 0;
for (final Double val : benchs) {
avg += val;
}
avg /= benchs.size();
- System.out.println("Time to read = " + avg + " events/ns"); //$NON-NLS-1$ //$NON-NLS-2$
+ System.out.println("Time to read = " + avg + " events/ns");
for (final Double val : benchs) {
System.out.print(val);
- System.out.print(", "); //$NON-NLS-1$
+ System.out.print(", ");
}
}
}
// Path of the trace
- private static final String TRACE_PATH = "../org.eclipse.linuxtools.ctf.core.tests/traces/kernel"; //$NON-NLS-1$
+ private static final String TRACE_PATH = "../org.eclipse.linuxtools.ctf.core.tests/traces/kernel";
// Change this to run several time over the same trace
private static final int NB_OF_PASS = 100;
traces[0] = new CtfTmfTrace();
traces[0].initTrace(null, TRACE_PATH, CtfTmfEvent.class);
/* Create our new experiment */
- fExperiment = new TmfExperiment(CtfTmfEvent.class, "Headless", traces); //$NON-NLS-1$
+ fExperiment = new TmfExperiment(CtfTmfEvent.class, "Headless", traces);
/*
* We will issue a request for each "pass". TMF will then process
benchs.add(val);
if (benchs.size() == NB_OF_PASS) {
try {
- System.out.println("Nb events : " + nbEvent2); //$NON-NLS-1$
+ System.out.println("Nb events : " + nbEvent2);
for (final double value : benchs) {
- System.out.print(value + ", "); //$NON-NLS-1$
+ System.out.print(value + ", ");
}
fExperiment.sendRequest(null);
/**
* Test suite for the TmfEventField class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventFieldTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfEvent class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfEventTypeManager class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventTypeManagerTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfEventType class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventTypeTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfSimpleTimestampTest class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfSimpleTimestampTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfTimeRange class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfTimeRangeTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfTimestampDelta class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfTimestampDeltaTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfTimestamp class.
*/
-@SuppressWarnings({"nls", "javadoc"})
+@SuppressWarnings("javadoc")
public class TmfTimestampTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfCoalescedDataRequest class.
*/
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
public class TmfCoalescedDataRequestTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfCoalescedEventRequest class.
*/
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
public class TmfCoalescedEventRequestTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfDataRequest class.
*/
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
public class TmfDataRequestTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfEventRequest class.
*/
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
public class TmfEventRequestTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfRequestExecutor class.
*/
-@SuppressWarnings({ "nls" })
public class TmfRequestExecutorTest {
// ------------------------------------------------------------------------
private final File testHtFile;
- private final static String errMsg = "Caught exception: "; //$NON-NLS-1$
+ private final static String errMsg = "Caught exception: ";
/* State values that will be used */
//private final static ITmfStateValue nullValue = TmfStateValue.nullValue();
- private final static ITmfStateValue value1 = TmfStateValue.newValueString("A"); //$NON-NLS-1$
+ private final static ITmfStateValue value1 = TmfStateValue.newValueString("A");
private final static ITmfStateValue value2 = TmfStateValue.newValueInt(10);
private final static ITmfStateValue value3 = TmfStateValue.nullValue();
- private final static ITmfStateValue value4 = TmfStateValue.newValueString("D"); //$NON-NLS-1$
+ private final static ITmfStateValue value4 = TmfStateValue.newValueString("D");
private final static ITmfStateValue value5 = TmfStateValue.newValueLong(Long.MAX_VALUE);
/**
* If we couldn't create the state history test file
*/
public StateSystemPushPopTest() throws IOException {
- testHtFile = File.createTempFile("test", ".ht"); //$NON-NLS-1$ //$NON-NLS-2$
+ testHtFile = File.createTempFile("test", ".ht");
testHtFile.deleteOnExit();
}
ss = new StateSystem(backend, true);
/* Build the thing */
- final int attrib = ss.getQuarkAbsoluteAndAdd("Test", "stack"); //$NON-NLS-1$ //$NON-NLS-2$
+ final int attrib = ss.getQuarkAbsoluteAndAdd("Test", "stack");
ss.pushAttribute( 2, value1, attrib);
ss.pushAttribute( 4, value2, attrib);
assertEquals(null, value); // Stack should already be empty here.
ss.closeHistory(30);
- attribute = ss.getQuarkAbsolute("Test", "stack"); //$NON-NLS-1$ //$NON-NLS-2$
+ attribute = ss.getQuarkAbsolute("Test", "stack");
}
/**
@Test
public void testSingleQueries() {
try {
- final int subAttribute1 = ss.getQuarkRelative(attribute, "1"); //$NON-NLS-1$
- final int subAttribute2 = ss.getQuarkRelative(attribute, "2"); //$NON-NLS-1$
+ final int subAttribute1 = ss.getQuarkRelative(attribute, "1");
+ final int subAttribute2 = ss.getQuarkRelative(attribute, "2");
/* Test the stack attributes themselves */
interval = ss.querySingleState(11, attribute);
public void testFullQueries() {
List<ITmfStateInterval> state;
try {
- final int subAttrib1 = ss.getQuarkRelative(attribute, "1"); //$NON-NLS-1$
- final int subAttrib2 = ss.getQuarkRelative(attribute, "2"); //$NON-NLS-1$
- final int subAttrib3 = ss.getQuarkRelative(attribute, "3"); //$NON-NLS-1$
- final int subAttrib4 = ss.getQuarkRelative(attribute, "4"); //$NON-NLS-1$
+ final int subAttrib1 = ss.getQuarkRelative(attribute, "1");
+ final int subAttrib2 = ss.getQuarkRelative(attribute, "2");
+ final int subAttrib3 = ss.getQuarkRelative(attribute, "3");
+ final int subAttrib4 = ss.getQuarkRelative(attribute, "4");
/* Stack depth = 5 */
state = ss.queryFullState(10);
*
* @author alexmont
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class VerifyHistoryFile {
// Enter the .ht file name to test here
public static void setUpClass() {
assumeTrue(CtfTmfTestTraces.tracesExist());
try {
- File htFile = File.createTempFile("stats-test", ".ht"); //$NON-NLS-1$ //$NON-NLS-2$
+ File htFile = File.createTempFile("stats-test", ".ht");
htFile.deleteOnExit();
CtfTmfTrace trace = CtfTmfTestTraces.getTestTrace(TRACE_INDEX);
backend = new TmfStateStatistics(trace, htFile);
private static final long t5 = 1332170682490949270L; /* following event here */
private static final long t6 = 1332170682490949300L;
- private static final String eventType = "lttng_statedump_process_state"; //$NON-NLS-1$
+ private static final String eventType = "lttng_statedump_process_state";
// ------------------------------------------------------------------------
/**
* Test suite for the TmfCheckpointIndexTest class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfCheckpointIndexTest {
// ------------------------------------------------------------------------
* Test suite for the TmfCheckpointIndexer class (events with same
* timestamp around checkpoint).
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfCheckpointIndexTest2 {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfCheckpoint class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfCheckpointTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfContext class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfContextTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfCheckpointIndexTest class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfExperimentCheckpointIndexTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfExperiment class (single trace).
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfExperimentTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfLocation class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfLocationTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfExperiment class (multiple traces).
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfMultiTraceExperimentTest {
// ------------------------------------------------------------------------
/**
* Test suite for the TmfTrace class.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfTraceTest {
// ------------------------------------------------------------------------
/**
* TmfAsyncSequenceDiagramEventTest
*/
-@SuppressWarnings("nls")
public class TmfAsyncSequenceDiagramEventTest {
private final String fContext = ITmfEventType.DEFAULT_CONTEXT_ID;
/**
* TmfSyncSequenceDiagramEventTest
*/
-@SuppressWarnings("nls")
public class TmfSyncSequenceDiagramEventTest {
private final String fContext = ITmfEventType.DEFAULT_CONTEXT_ID;
*
* @author Bernd Hufmann
*/
-@SuppressWarnings({ "nls", "javadoc" })
+@SuppressWarnings("javadoc")
public class PairTest {
// ------------------------------------------------------------------------
* <li> The number of fields (0 .. NB_TYPES-1) depends on the event type.
* </ul>
*/
-@SuppressWarnings("nls")
public class CreateTestFiles {
// ========================================================================
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfClientStub extends TmfComponent {
private TmfDataProvider[] fProviders;
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfDataProviderStub extends TmfDataProvider {
private static final String DIRECTORY = "testfiles";
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventProviderStub extends TmfEventProvider {
private static final String DIRECTORY = "testfiles";
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfSyntheticEventProviderStub extends TmfEventProvider {
public static final int BLOCK_SIZE = 100;
/**
* <b><u>TmfEventTypeStub</u></b>
- * <p>
- * TODO: Implement me. Please.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventTypeStub extends TmfEventType {
private static final ITmfEventField FIELD_1 = new TmfEventField("Field1", null);
* <p>
* TODO: Implement me. Please.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfEventParserStub implements ITmfEventParser {
// ------------------------------------------------------------------------
* <p>
* Dummy test trace. Use in conjunction with TmfEventParserStub.
*/
-@SuppressWarnings({"nls","javadoc"})
+@SuppressWarnings("javadoc")
public class TmfTraceStub extends TmfTrace implements ITmfEventParser {
// ------------------------------------------------------------------------
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=warning
org.eclipse.jdt.core.compiler.problem.nullReference=error
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
}
}
}
- fail("Uncaught assertion error"); //$NON-NLS-1$
+ fail("Uncaught assertion error");
}
/**
/**
* TmfBaseColumnDataProvider test cases.
*/
-@SuppressWarnings("nls")
public class TmfBaseColumnDataProviderTest {
// ------------------------------------------------------------------------
/**
* TmfBaseColumnData Test Case.
*/
-@SuppressWarnings("nls")
public class TmfBaseColumnDataTest {
// ------------------------------------------------------------------------
/**
* TmfBaseStatistics Test Cases.
*/
-@SuppressWarnings("nls")
public class TmfBaseStatisticsDataTest {
// ------------------------------------------------------------------------
/**
* TmfStatisticsTreeRootFactory Test Case.
*/
-@SuppressWarnings("nls")
public class TmfStatisticsTreeManagerTest {
// ------------------------------------------------------------------------
// Fields
// ------------------------------------------------------------------------
- private final String fTypeId1 = "Some type1"; //$NON-NLS-1$
- private final String fTypeId2 = "Some type2"; //$NON-NLS-1$
- private final String fTypeId3 = "Some type3"; //$NON-NLS-1$
+ private final String fTypeId1 = "Some type1";
+ private final String fTypeId2 = "Some type2";
+ private final String fTypeId3 = "Some type3";
private final TmfStatisticsTree fStatsTree;
- private static final String fTestName = "StatisticsTreeNodeTest"; //$NON-NLS-1$
+ private static final String fTestName = "StatisticsTreeNodeTest";
// ------------------------------------------------------------------------
// Housekeeping
TmfStatisticsTreeNode parentNode = rootNode.getParent();
assertNull(parentNode);
- TmfStatisticsTreeNode newTraceNode = new TmfStatisticsTreeNode(fStatsTree, rootNode, "newly created trace node"); //$NON-NLS-1$
+ TmfStatisticsTreeNode newTraceNode = new TmfStatisticsTreeNode(fStatsTree, rootNode, "newly created trace node");
parentNode = newTraceNode.getParent();
assertNotNull(parentNode);
assertTrue(fStatsTree.getRootNode() == parentNode);
TmfStatisticsTreeNode catNode = traceNode.getChildren().iterator().next();
TmfStatisticsTreeNode elementNode = fStatsTree.getNode(fTestName, Messages.TmfStatisticsData_EventTypes, fTypeId1);
- assertEquals(0, rootNode.getName().compareTo("root")); //$NON-NLS-1$
+ assertEquals(0, rootNode.getName().compareTo("root"));
assertEquals(0, traceNode.getName().compareTo(fTestName));
assertEquals(0, catNode.getName().compareTo(Messages.TmfStatisticsData_EventTypes));
assertEquals(0, elementNode.getName().compareTo(fTypeId1));
/**
* TmfTreeContentProvider Test Cases.
*/
-@SuppressWarnings("nls")
public class TmfTreeContentProviderTest {
// ------------------------------------------------------------------------
/**
* Test cases to test Criteria class.
*/
-@SuppressWarnings("nls")
public class CriteriaTest {
/**
/**
* Test cases class to test loader manager of UML2SD extension point.
*/
-@SuppressWarnings("nls")
public class LoadersManagerTest {
private final static String SDVIEW_WITH_ONE_LOADER = "org.eclipse.linuxtools.tmf.ui.tests.testSDView1Loader";
* Common constants for the TMF UML2SD test cases
* @author Bernd Hufmann
*/
-@SuppressWarnings("nls")
public interface IUml2SDTestConstants {
/**
*
* @author Bernd Hufmann
*/
-@SuppressWarnings("nls")
public class TmfUml2SDSyncLoaderExpTest {
private static Uml2SDTestFacility fFacility;
*
* @author Bernd Hufmann
*/
-@SuppressWarnings("nls")
public class TmfUml2SDSyncLoaderFilterTest {
private static Uml2SDTestFacility fFacility;
criteria = new Criteria();
criteria.setSyncMessageSelected(true);
- criteria.setExpression("BALL_.*"); //$NON-NLS-1$
+ criteria.setExpression("BALL_.*");
filterToSave.add(new FilterCriteria(criteria, false, false));
}
*
* @author Bernd Hufmann
*/
-@SuppressWarnings("nls")
public class TmfUml2SDSyncLoaderFindTest {
// ------------------------------------------------------------------------
verifyPage(currentPage, numMsg, hasNext, hasPrev, IUml2SDTestConstants.DEFAULT_NUM_LIFELINES);
}
- @SuppressWarnings("nls")
private static void verifyPage(int currentPage, int numMsg, boolean hasNext,
boolean hasPrev, int lifelineCount) {
assertEquals("currentPage", currentPage, fFacility.getLoader().currentPage());
*
* @author Bernd Hufmann
*/
-@SuppressWarnings("nls")
public class TmfUml2SDSyncLoaderSignalTest {
private static Uml2SDTestFacility fFacility;
*
* @author Bernd Hufmann
*/
-@SuppressWarnings("nls")
public class TmfUml2SDSyncLoaderTimeTest {
// ------------------------------------------------------------------------
// Test case 001 expected values
final static private Uml2SDTestTimestamp TC_001_TIME_VALUE = new Uml2SDTestTimestamp(9788642228395L);
- final static private String TC_001_MESSAGE_NAME = "START_GAME_REPLY"; //$NON-NLS-1$
+ final static private String TC_001_MESSAGE_NAME = "START_GAME_REPLY";
final static private int TC_001_PAGE_VALUE = 0;
final static private int TC_001_START_OCCURRANCE = 6;
final static private int TC_001_END_OCCURRANCE = TC_001_START_OCCURRANCE;
// Test case 002 expected values
final static private Uml2SDTestTimestamp TC_002_TIME_VALUE = new Uml2SDTestTimestamp(9789689830722L);
- final static private String TC_002_MESSAGE_NAME = "PAUSE_GAME_REQUEST"; //$NON-NLS-1$
+ final static private String TC_002_MESSAGE_NAME = "PAUSE_GAME_REQUEST";
final static private int TC_002_PAGE_VALUE = 2;
final static private int TC_002_START_OCCURRANCE = 7;
final static private int TC_002_END_OCCURRANCE = TC_002_START_OCCURRANCE;
view = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow()
.getActivePage()
- .findView("org.eclipse.ui.internal.introview"); //$NON-NLS-1$
+ .findView("org.eclipse.ui.internal.introview");
if (view != null) {
PlatformUI.getWorkbench()
view = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow()
.getActivePage()
- .showView("org.eclipse.linuxtools.tmf.ui.tmfUml2SDSyncView"); //$NON-NLS-1$
+ .showView("org.eclipse.linuxtools.tmf.ui.tmfUml2SDSyncView");
} catch (final PartInitException e) {
throw new RuntimeException(e);
fSdView = (SDView) view;
fLoader = (TmfUml2SDSyncLoader)LoadersManager.getInstance().createLoader(
- "org.eclipse.linuxtools.tmf.ui.views.uml2sd.loader.TmfUml2SDSyncLoader", fSdView); //$NON-NLS-1$
+ "org.eclipse.linuxtools.tmf.ui.views.uml2sd.loader.TmfUml2SDSyncLoader", fSdView);
delay(3000);
fIsInitialized = true;
try {
// Create test trace object
- final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path("tracesets/sdEvents"), null); //$NON-NLS-1$
+ final URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path("tracesets/sdEvents"), null);
final File test = new File(FileLocator.toFileURL(location).toURI());
return new TmfTraceStub(test.getPath(), 500, true, parser, null);
} catch (final TmfTraceException e) {
final ITmfTrace traces[] = new ITmfTrace[1];
traces[0] = fTrace;
- fExperiment = new TmfExperiment(ITmfEvent.class, "TestExperiment", traces); //$NON-NLS-1$
+ fExperiment = new TmfExperiment(ITmfEvent.class, "TestExperiment", traces);
fTrace.broadcast(new TmfTraceSelectedSignal(this, fExperiment));
if (wait) {
while (fExperiment.getNbEvents() == 0) {
criteria = new Criteria();
criteria.setSyncMessageSelected(true);
- criteria.setExpression("BALL_.*"); //$NON-NLS-1$
+ criteria.setExpression("BALL_.*");
filterToSave.add(new FilterCriteria(criteria, true, false));
FilterListDialog.saveFiltersCriteria(filterToSave);
}
private Frame savedFrame = null;
public TestLoaders() {
- this(""); //$NON-NLS-1$
+ this("");
}
@SuppressWarnings("unused")
createFrame();
}
- @SuppressWarnings("nls")
private void createFrame() {
Frame testFrame = new Frame();
if (page == 1) {
return null;
}
- @SuppressWarnings("nls")
@Override
public String getTitleString() {
return "Test Loader";
img = img_;
}
- @SuppressWarnings("nls")
public Image getResourceImage(String _name) {
ImageDescriptor imgage;
try {
}
@Override
- @SuppressWarnings({ "nls" })
public ITmfEvent parseEvent(ITmfContext context) {
if (! (fEventStream instanceof TmfTraceStub)) {
return null;
/**
* Time Graph Presentation Provider Stub.
*/
-@SuppressWarnings("nls")
public class TsfImplProvider extends TimeGraphPresentationProvider {
// ========================================================================
import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;
import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
-@SuppressWarnings({"javadoc", "nls"})
+@SuppressWarnings("javadoc")
public class TraceImpl implements ITimeGraphEntry {
+
// ========================================================================
// Data
// ========================================================================
+
private String name = "traceDefaultName";
private long startTime = 0;
private long stopTime = 1;
import java.util.Date;
-@SuppressWarnings({"javadoc", "nls"})
+@SuppressWarnings("javadoc")
public class TraceModelImplFactory {
// ========================================================================
import org.eclipse.ui.part.DrillDownAdapter;
import org.eclipse.ui.part.ViewPart;
-@SuppressWarnings({ "javadoc", "nls" })
+@SuppressWarnings("javadoc")
public class TsfTraceAnalysisView extends ViewPart implements
ITimeGraphSelectionListener, ITimeGraphTimeListener, ITimeGraphRangeListener {
// ========================================================================
// Data
// ========================================================================
+
private TreeViewer viewer;
private DrillDownAdapter drillDownAdapter;
private Action action1;