From: Matthew Khouzam Date: Thu, 29 Jan 2015 15:07:21 +0000 (-0500) Subject: tmf.ui: fix constant names naming convention in TmfEventsEditor X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ddce8531f1dd0a79b7aacbe165177418de65430f;p=deliverable%2Ftracecompass.git tmf.ui: fix constant names naming convention in TmfEventsEditor Change-Id: I1f9b25eaa2ca562a7d713e20c9002b7f0717e3be Signed-off-by: Matthew Khouzam Reviewed-on: https://git.eclipse.org/r/40633 Reviewed-by: Alexandre Montplaisir Reviewed-by: Hudson CI Reviewed-by: Marc-Andre Laperle --- diff --git a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/editors/TmfEventsEditor.java b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/editors/TmfEventsEditor.java index a2c284a723..5f780a2ec8 100644 --- a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/editors/TmfEventsEditor.java +++ b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/editors/TmfEventsEditor.java @@ -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 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 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 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 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()) {