Commit Graph
24 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Marek Safar 743e879293 Fix compiler warnings 2012-12-15 12:46:59 +01:00
Atsushi Eno 2ce799595e fix xbc bug #8592: Make sure to reload configuration when Reset() was invoked.
Patch by Kei Nakazawa.
2012-11-27 16:13:30 +09:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Carsten Schlote 7e42d3474e [System.Configuration] Added check for SettingProviderAttribute on settings class
There is no checkfor the SettingProviderAttribute attached to a Settings class.
.NET uses this to replace the default LocalSettingsProvider with your
own SettingsProvider.

The patch adds this feature.

Signed-off-by: Carsten Schlote <[email protected]>
2010-09-20 20:53:45 -04:00
Gonzalo Paniagua Javier f272f2d0a7 2009-08-31 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: reset the property value
	instead of using the DefaultValue.
	* SettingsPropertyValue.cs: new Reset() method.
	* ApplicationSettingsBase.cs: Reset happens in Reload().
	Patch by Andrew Kurochka that fixes bug #532180.


svn path=/trunk/mcs/; revision=140950
2009-08-31 09:20:07 +00:00
Gonzalo Paniagua Javier 8db1078e92 revert
svn path=/trunk/mcs/; revision=117574
2008-10-31 17:47:04 +00:00
Gonzalo Paniagua Javier 23a91b586e 2008-10-31 Gonzalo Paniagua Javier <[email protected]>
* System/System.Configuration/CustomizableFileSettingsProvider.cs:
	* System/System.Configuration/ApplicationSettingsBase.cs:
	* System.Configuration/System.Configuration/ClientConfigurationSystem.cs:
	* System.Configuration/System.Configuration/ConfigurationManager.cs:
	Generate the same file name for the local settings file and properly
	save the configuration to it. Not loading it yet.


svn path=/trunk/mcs/; revision=117573
2008-10-31 17:36:16 +00:00
Gonzalo Paniagua Javier 1cd9846abc 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* CustomizableFileSettingsProvider.cs: when reading application or
	user settings, only read those settings appropriate for the context.
	This avoids duplicate key errors when 2 different groups have a key
	with the same name.
	* ApplicationSettingsBase.cs: the context is a hashtable with several
	values set upon creation: SettingsKey, GroupName and
	SettingsClassType.

	Fixes bug #432466.


svn path=/trunk/mcs/; revision=114853
2008-10-04 21:50:11 +00:00
Gonzalo Paniagua Javier 3a62ec8a81 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
	Context, Properties, PropertyValues and Providers. All of them might
	initialize an instance field for the class. Hopefully this fixes some
	nullrefs.


svn path=/trunk/mcs/; revision=114842
2008-10-04 18:24:39 +00:00
Gonzalo Paniagua Javier cffdef0f69 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
	indexer.


svn path=/trunk/mcs/; revision=114837
2008-10-04 16:42:47 +00:00
Marek Safar 225f1c9198 Warnings cleanup
svn path=/trunk/mcs/; revision=111790
2008-08-28 09:12:00 +00:00
Ivan Zlatev 646e7afef4 2008-08-05 Ivan N. Zlatev <[email protected]>
* ApplicationSettingsBase.cs: If there is no explicit
	SettingsSerializeAs attribute to specify the format, distinguish
	between plain string and XML by checking if the TypeConverter for the
	property type supports string conversions. If it doesn't then we are
	present with XML.
	[Fixes bug #414445]

svn path=/trunk/mcs/; revision=109706
2008-08-05 20:39:18 +00:00
Atsushi Eno 6e4bd7db9e 2007-06-13 Atsushi Enomoto <[email protected]>
* SettingsContext.cs : add internal CurrentSettings property to
	  make current ApplicationSettingsBase accessible.
	* ApplicationSettingsBase.cs : use above.
	* SettingValueElement.cs : implement SerializeToXmlElement().

	* SettingElementTest.cs : test initial Value.


svn path=/trunk/mcs/; revision=79466
2007-06-13 17:50:52 +00:00
Atsushi Eno 2270d913b0 2007-05-30 Atsushi Enomoto <[email protected]>
* ApplicationSettingsBase.cs : removed garbage debugging stuff.


svn path=/trunk/mcs/; revision=78241
2007-05-30 17:47:05 +00:00
Atsushi Eno 8b06b7c8a2 2007-05-30 Atsushi Enomoto <[email protected]>
* ConfigXmlDocument.cs : added explicit interface implementations.
	* ApplicationSettingsBase.cs : split deeply-nested get_Properties()
	  into itself and a method. Treat default LocalFileSettingsProvider
	  as a (valid) settings provider. Removed a fixme (only public
	  members should be available).
	* SettingsBase.cs : check lock state in Save().
	* SettingsProviderCollection.cs : remove bogus table field which
	  conflicts with the table in base ProviderCollection class.


svn path=/trunk/mcs/; revision=78240
2007-05-30 17:46:17 +00:00
Sebastien Pouliot eb34b086f3 2006-11-09 Sebastien Pouliot <[email protected]>
* ApplicationSettingsBase.cs: Add special case when dealing with 
	StringCollection in the Properties property.


svn path=/trunk/mcs/; revision=67597
2006-11-09 14:58:20 +00:00
Andrew Skiba e27d3aa027 exclude using PrebuiltSystem on TARGET_JVM
svn path=/trunk/mcs/; revision=67456
2006-11-07 14:07:22 +00:00
Atsushi Eno fde86f617c 2006-06-29 Atsushi Enomoto <[email protected]>
* ApplicationSettingsBase.cs : When we use default value, convert it
	  to proper type. Fixed bug #78654. Patch by Gareth Pearce.

	* ApplicationSettingsBaseTest.cs : added test for bug #78654.


svn path=/trunk/mcs/; revision=62136
2006-06-29 05:06:20 +00:00
Chris Toshok 1368a39647 2006-05-05 Chris Toshok <[email protected]>
* ApplicationSettingsBase.cs (CacheValuesByProvider): emit
	SettingsLoaded after we load the property values.
	(set_Item[string]): fill in settingClass in the
	SettingChangingEventArgs properly.
	(get_Properties): don't depend on setting_attrs[0] being either
	UserScoped- or ApplicationScopedSettingAttribute.  Also, call
	Initialize on any providers we create here.

	* LocalFileSettingsProvider.cs (GetPropertyValues): add a naive
	implementation, leave a MonoTODO.
	(Initialize): fill in name properly, and deal with null values.


svn path=/trunk/mcs/; revision=60336
2006-05-05 19:55:12 +00:00
Chris Toshok 3e69f2a382 2005-11-04 Chris Toshok <[email protected]>
* SettingsProvider.cs, SettingsPropertyValueCollection.cs,
	SettingValueElement.cs, SettingElement.cs,
	SettingsPropertyValue.cs, ApplicationSettingsBase.cs,
	SettingsPropertyCollection.cs, SettingsProviderCollection.cs,
	SettingElementCollection.cs: Add XML_DEPS and CONFIGURATION_DEPS
	to get this to bootstrap compile.  What a pain.


svn path=/trunk/mcs/; revision=52586
2005-11-04 17:25:17 +00:00
Chris Toshok b1c3bf67db 2005-11-04 Chris Toshok <[email protected]>
* ApplicationSettingsBase.cs: remove unnecessary using.

	* SettingValueElement.cs: add XML_DEP's.


svn path=/trunk/mcs/; revision=52585
2005-11-04 17:12:24 +00:00
Chris Toshok f442c04839 2005-11-03 Chris Toshok <[email protected]>
* ConfigurationSettings.cs: add ObsoleteAttribute's.

	* ConfigurationException.cs: add ObsoleteAttribute's.

	* IConfigurationSystem.cs: add ComVisibleAttribute.

	* ApplicationSettingsBase.cs: new stubs, with a broken/naive
	implementation.

	* SettingElementCollection.cs, IPersistComponentSettings.cs,
	SettingElement.cs, LocalFileSettingsProvider.cs,
	SettingValueElement.cs: new stubs.

	* SettingAttribute.cs: fix typo.


svn path=/trunk/mcs/; revision=52553
2005-11-04 05:07:44 +00:00
Jackson Harper 1c4613fe14 * ApplicationSettingsBase.cs: We need this stub to do some 2.0
winforms stuff.


svn path=/trunk/mcs/; revision=42178
2005-03-23 23:10:13 +00:00