From: Bernd Hufmann Date: Fri, 27 Mar 2015 17:36:14 +0000 (-0400) Subject: tmf remote: comply with naming convention X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=b61c58e314b81073b72fba130f51bba3ad367a4f;p=deliverable%2Ftracecompass.git tmf remote: comply with naming convention Change-Id: I7fa35d7bc443ccac196123f7f2c0061060ba36c0 Signed-off-by: Bernd Hufmann Reviewed-on: https://git.eclipse.org/r/44826 Reviewed-by: Hudson CI Reviewed-by: Matthew Khouzam Reviewed-by: Patrick Tasse Tested-by: Patrick Tasse --- diff --git a/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/preferences/RemoteProfilesPreferencePage.java b/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/preferences/RemoteProfilesPreferencePage.java index 02f1f6e375..8ef962a17e 100644 --- a/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/preferences/RemoteProfilesPreferencePage.java +++ b/org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/preferences/RemoteProfilesPreferencePage.java @@ -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 getRemoteProfiles(IProgressMonitor monitor) { - return readProfiles(fProfileFilePath, monitor); + return readProfiles(PROFILE_FILE_PATH, monitor); } private static List 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); } /**