From: <mwl...@us...> - 2008-09-23 17:34:55
|
Revision: 813 http://cishell.svn.sourceforge.net/cishell/?rev=813&view=rev Author: mwlinnem Date: 2008-09-23 17:34:39 +0000 (Tue, 23 Sep 2008) Log Message: ----------- Changed preference GUI so it wouldn't remove type prefixes from values if a user changes a parameter value from its default. Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.prefs.swt/src/org/cishell/reference/gui/prefs/swt/CIShellPreferenceStore.java Modified: trunk/clients/gui/org.cishell.reference.gui.prefs.swt/src/org/cishell/reference/gui/prefs/swt/CIShellPreferenceStore.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.prefs.swt/src/org/cishell/reference/gui/prefs/swt/CIShellPreferenceStore.java 2008-09-23 17:30:40 UTC (rev 812) +++ trunk/clients/gui/org.cishell.reference.gui.prefs.swt/src/org/cishell/reference/gui/prefs/swt/CIShellPreferenceStore.java 2008-09-23 17:34:39 UTC (rev 813) @@ -87,8 +87,13 @@ return Long.parseLong(((String) this.prefDict.get(name))); } - public String getString(String name) { + public String getString(String name) { + PreferenceAD attributeCorrespondingToThisName = this.prefOCD.getAttributeByID(name); + String attributePrefix = attributeCorrespondingToThisName.getPreferenceTypePrefix(); String result = (String) this.prefDict.get(name); + if (result != null) { + result = attributePrefix + result; + } return result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |