tmf remote: comply with naming convention
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Fri, 27 Mar 2015 17:36:14 +0000 (13:36 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Mon, 30 Mar 2015 19:37:55 +0000 (15:37 -0400)
Change-Id: I7fa35d7bc443ccac196123f7f2c0061060ba36c0
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/44826
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/preferences/RemoteProfilesPreferencePage.java

index 02f1f6e375ca962062a7b2d90ce2cbf501d1b4cf..8ef962a17ec0b2f89fb6825b9b8219c6eb3e6a14 100644 (file)
@@ -135,7 +135,7 @@ public class RemoteProfilesPreferencePage extends PreferencePage implements IWor
     private Action fCopyAction;
     private Action fPasteAction;
 
-    private static final String fProfileFilePath;
+    private static final String PROFILE_FILE_PATH;
 
     static {
         String profileFilePath = REMOTE_PROFILES_XML_FILE_PATH;
@@ -153,7 +153,7 @@ public class RemoteProfilesPreferencePage extends PreferencePage implements IWor
                 profileFilePath = profileFolderPath.append(REMOTE_PROFILES_XML_FILE_NAME).toString();
             }
         }
-        fProfileFilePath = profileFilePath;
+        PROFILE_FILE_PATH = profileFilePath;
     }
 
     /**
@@ -276,7 +276,7 @@ public class RemoteProfilesPreferencePage extends PreferencePage implements IWor
         createGlobalActions();
         createContextMenu();
 
-        fProfiles = readProfiles(fProfileFilePath, new NullProgressMonitor());
+        fProfiles = readProfiles(PROFILE_FILE_PATH, new NullProgressMonitor());
 
         treeViewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS);
         treeViewer.setInput(fProfiles);
@@ -323,7 +323,7 @@ public class RemoteProfilesPreferencePage extends PreferencePage implements IWor
      * @return the list of remote profiles
      */
     public static List<RemoteImportProfileElement> getRemoteProfiles(IProgressMonitor monitor) {
-        return readProfiles(fProfileFilePath, monitor);
+        return readProfiles(PROFILE_FILE_PATH, monitor);
     }
 
     private static List<RemoteImportProfileElement> readProfiles(String path, IProgressMonitor monitor) {
@@ -1155,7 +1155,7 @@ public class RemoteProfilesPreferencePage extends PreferencePage implements IWor
 
     @Override
     public boolean performOk() {
-        return writeProfiles(fProfiles, fProfileFilePath);
+        return writeProfiles(fProfiles, PROFILE_FILE_PATH);
     }
 
     /**
This page took 0.039127 seconds and 5 git commands to generate.