tmf.ui: fix constant names naming convention in TmfEventsEditor
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 29 Jan 2015 15:07:21 +0000 (10:07 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 30 Jan 2015 18:30:55 +0000 (13:30 -0500)
Change-Id: I1f9b25eaa2ca562a7d713e20c9002b7f0717e3be
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/40633
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/editors/TmfEventsEditor.java

index a2c284a7236449b3aa8fb82a3853ba1678fb8c5e..5f780a2ec831522a360876ac449e5016982e84fa 100644 (file)
@@ -94,8 +94,8 @@ public class TmfEventsEditor extends TmfEditor implements ITmfTraceEditor, IReus
      * traces that were opened using Linux Tools and early Trace Compass
      * versions.
      */
-    private static final ImmutableSet<String> traceInputTypeConstants = ImmutableSet.of(ITmfEventsEditorConstants.TRACE_EDITOR_INPUT_TYPE, "org.eclipse.linuxtools.tmf.core.trace.TmfTrace", "org.eclipse.tracecompass.tmf.core.trace.TmfTrace"); //$NON-NLS-1$//$NON-NLS-2$
-    private static final ImmutableSet<String> experimentInputTypeConstants = ImmutableSet.of(ITmfEventsEditorConstants.EXPERIMENT_EDITOR_INPUT_TYPE, "org.eclipse.linuxtools.tmf.core.trace.TmfExperiment", "org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment"); //$NON-NLS-1$ //$NON-NLS-2$
+    private static final ImmutableSet<String> TRACE_INPUT_TYPE_CONSTANTS = ImmutableSet.of(ITmfEventsEditorConstants.TRACE_EDITOR_INPUT_TYPE, "org.eclipse.linuxtools.tmf.core.trace.TmfTrace", "org.eclipse.tracecompass.tmf.core.trace.TmfTrace"); //$NON-NLS-1$//$NON-NLS-2$
+    private static final ImmutableSet<String> EXPERIMENT_INPUT_TYPE_CONSTANTS = ImmutableSet.of(ITmfEventsEditorConstants.EXPERIMENT_EDITOR_INPUT_TYPE, "org.eclipse.linuxtools.tmf.core.trace.TmfExperiment", "org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment"); //$NON-NLS-1$ //$NON-NLS-2$
 
     private TmfEventsTable fEventsTable;
     private IFile fFile;
@@ -132,7 +132,7 @@ public class TmfEventsEditor extends TmfEditor implements ITmfTraceEditor, IReus
                 if (traceTypeId == null) {
                     throw new PartInitException(Messages.TmfOpenTraceHelper_NoTraceType);
                 }
-                if (experimentInputTypeConstants.contains(traceTypeId)) {
+                if (EXPERIMENT_INPUT_TYPE_CONSTANTS.contains(traceTypeId)) {
                     // Special case: experiment bookmark resource
                     final TmfProjectElement project = TmfProjectRegistry.getProject(fFile.getProject(), true);
                     if (project == null) {
@@ -147,7 +147,7 @@ public class TmfEventsEditor extends TmfEditor implements ITmfTraceEditor, IReus
                             return;
                         }
                     }
-                } else if (traceInputTypeConstants.contains(traceTypeId)) {
+                } else if (TRACE_INPUT_TYPE_CONSTANTS.contains(traceTypeId)) {
                     // Special case: trace bookmark resource
                     final TmfProjectElement project = TmfProjectRegistry.getProject(fFile.getProject(), true);
                     for (final TmfTraceElement traceElement : project.getTracesFolder().getTraces()) {
This page took 0.027947 seconds and 5 git commands to generate.