Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-17 03:42:01 -0400
committerUwe Stieber2013-10-17 03:42:01 -0400
commitc2ac8b11f40f1f28ab4154a3fb5a59730d1f849d (patch)
tree33f730960382fdeede0f811aa0a3eac6ae3b62ab /target_explorer
parent9e94ef25212c09a083243848eb003453ea1dbd98 (diff)
downloadorg.eclipse.tcf-c2ac8b11f40f1f28ab4154a3fb5a59730d1f849d.tar.gz
org.eclipse.tcf-c2ac8b11f40f1f28ab4154a3fb5a59730d1f849d.tar.xz
org.eclipse.tcf-c2ac8b11f40f1f28ab4154a3fb5a59730d1f849d.zip
Target Explorer: Fix default refresh intervals should not be added as custom interval to the System Monitor auto-refresh MRU list.
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/preferences/PreferencesInitializer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/preferences/PreferencesInitializer.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/preferences/PreferencesInitializer.java
index bd00b4aec..490d4b946 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/preferences/PreferencesInitializer.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/preferences/PreferencesInitializer.java
@@ -45,6 +45,7 @@ public class PreferencesInitializer extends AbstractPreferenceInitializer implem
* @param interval The new interval.
*/
public static void addMRUInterval(int interval){
+ if (interval <= 0 || DEFAULT_INTERVAL_GRADES.contains(":" + interval)) return; //$NON-NLS-1$
IPreferenceStore prefStore = UIPlugin.getDefault().getPreferenceStore();
String mruList = prefStore.getString(PREF_INTERVAL_MRU_LIST);
if (mruList == null || mruList.trim().length() == 0) {

Back to the top