Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] "New line at end of file when saving"asproject preference

You can specify default preference values in a plugin_customization.ini
file with a product.  By product I mean using the
org.eclipse.core.runtime.products extension point.  You specify the ini
file like this in your product extension:

		<property 
			name="preferenceCustomization" 
			value="plugin_customization.ini"/>


We override several CDT and platform defaults to best suit how our
customers work.

Thanks,
Warren


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of ext Wieant Nielander
Sent: Monday, April 21, 2008 4:42 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] "New line at end of file when saving"asproject
preference


>> What does everyone think about changing the default?  If that's what 
>> the ANSI and ISO standards mandate maybe we should have it on by
default.
>> 
>> This would be a very simple one line change on 
>> org.eclipse.cdt.ui.PreferenceConstants.initializeDefaultValues(IPrefe
>> ren
>> ceStore):
>> 
>>       store.setDefault(PreferenceConstants.ENSURE_NEWLINE_AT_EOF, 
>> true);

> We changed the default in our product at the request of many of our 
> customers.  I'd say it's a good change for CDT, but you never know 
> who's going to get mad when you change default pref values.  :)

Warren,

Just curious how you changed the default in your product, do you provide
your own version of the CDT plugins with the above patch, or do you
somehow change the preference programmatically?

Regards,
  Wieant
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top