Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Khouzam2015-03-24 19:22:37 +0000
committerMatthew Khouzam2015-03-24 23:09:36 +0000
commit41c5439496b6dd136207115452b4aef6864f5e2d (patch)
tree73f42777c836e6f5dfb8407add9c9e54208111f5 /org.eclipse.tracecompass.tmf.ui
parent1fb9f55c9276d266fd2c489ca2863d507f5be075 (diff)
downloadorg.eclipse.tracecompass-41c5439496b6dd136207115452b4aef6864f5e2d.tar.gz
org.eclipse.tracecompass-41c5439496b6dd136207115452b4aef6864f5e2d.tar.xz
org.eclipse.tracecompass-41c5439496b6dd136207115452b4aef6864f5e2d.zip
tmf.ui: update names to follow code convention
Change-Id: Ic9601b72fd86e5ce1ef5b5324b50d13e9998d594 Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/44524 Reviewed-by: Hudson CI Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Diffstat (limited to 'org.eclipse.tracecompass.tmf.ui')
-rw-r--r--org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/TmfUiTracer.java46
1 files changed, 23 insertions, 23 deletions
diff --git a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/TmfUiTracer.java b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/TmfUiTracer.java
index ee62ba94a3..93af98db23 100644
--- a/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/TmfUiTracer.java
+++ b/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/TmfUiTracer.java
@@ -23,15 +23,15 @@ public class TmfUiTracer {
private static String pluginID = Activator.PLUGIN_ID;
- static boolean ERROR = false;
- static boolean WARNING = false;
- static boolean INFO = false;
+ private static boolean fError = false;
+ private static boolean fWarning = false;
+ private static boolean fInfo = false;
- static boolean INDEX = false;
- static boolean DISPLAY = false;
- static boolean SORTING = false;
+ private static boolean fIndex = false;
+ private static boolean fDisplay = false;
+ private static boolean fSorting = false;
- private static String LOGNAME = "traceUI.log";
+ private static final String LOGNAME = "traceUI.log";
private static BufferedWriter fTraceLog = null;
private static BufferedWriter openLogFile(String filename) {
@@ -54,38 +54,38 @@ public class TmfUiTracer {
traceKey = Platform.getDebugOption(pluginID + "/error");
if (traceKey != null) {
- ERROR = (Boolean.valueOf(traceKey)).booleanValue();
- isTracing |= ERROR;
+ fError = (Boolean.valueOf(traceKey)).booleanValue();
+ isTracing |= fError;
}
traceKey = Platform.getDebugOption(pluginID + "/warning");
if (traceKey != null) {
- WARNING = (Boolean.valueOf(traceKey)).booleanValue();
- isTracing |= WARNING;
+ fWarning = (Boolean.valueOf(traceKey)).booleanValue();
+ isTracing |= fWarning;
}
traceKey = Platform.getDebugOption(pluginID + "/info");
if (traceKey != null) {
- INFO = (Boolean.valueOf(traceKey)).booleanValue();
- isTracing |= INFO;
+ fInfo = (Boolean.valueOf(traceKey)).booleanValue();
+ isTracing |= fInfo;
}
traceKey = Platform.getDebugOption(pluginID + "/updateindex");
if (traceKey != null) {
- INDEX = (Boolean.valueOf(traceKey)).booleanValue();
- isTracing |= INDEX;
+ fIndex = (Boolean.valueOf(traceKey)).booleanValue();
+ isTracing |= fIndex;
}
traceKey = Platform.getDebugOption(pluginID + "/display");
if (traceKey != null) {
- DISPLAY = (Boolean.valueOf(traceKey)).booleanValue();
- isTracing |= DISPLAY;
+ fDisplay = (Boolean.valueOf(traceKey)).booleanValue();
+ isTracing |= fDisplay;
}
traceKey = Platform.getDebugOption(pluginID + "/sorting");
if (traceKey != null) {
- SORTING = (Boolean.valueOf(traceKey)).booleanValue();
- isTracing |= SORTING;
+ fSorting = (Boolean.valueOf(traceKey)).booleanValue();
+ isTracing |= fSorting;
}
// Create trace log file if needed
@@ -118,28 +118,28 @@ public class TmfUiTracer {
* @return If ERROR messages are traced
*/
public static boolean isErrorTraced() {
- return ERROR;
+ return fError;
}
/**
* @return If INDEX messages are traced
*/
public static boolean isIndexTraced() {
- return INDEX;
+ return fIndex;
}
/**
* @return If DISPLAY messages are traced
*/
public static boolean isDisplayTraced() {
- return DISPLAY;
+ return fDisplay;
}
/**
* @return If SORTING messages are traced
*/
public static boolean isSortingTraced() {
- return SORTING;
+ return fSorting;
}

Back to the top