[SOLVED]: Customizing default Workspace Preferences [message #717224] |
Fri, 19 August 2011 12:02  |
Eclipse User |
|
|
|
When creating a new workspace, I'd like some default preferences to be different:
- Save automatically before Build -> true
- build automatically -> false
- Build (if required) before launching -> false
(in Window->Preferences->General->Workspace Window->Preferences->Run/Debug->Launching)
I know, I can clone settings of an existing workspace, or import/export Settings, but that's not what I want.
How can I change the Installation, e.g. via a plugin, to fit these defaults?
best regards
Martin
[Updated on: Tue, 23 August 2011 07:46] by Moderator
|
|
|
|
[SOLVED]: Customizing default Workspace Preferences [message #718112 is a reply to message #718048] |
Tue, 23 August 2011 05:56  |
Eclipse User |
|
|
|
Thank you for that precise answer. It quickly lead me to the following solution:
After removing all other entries from the exported .epf file, this is left:
org.eclipse.core.resources/description.autobuilding=false
org.eclipse.ui.ide/SAVE_ALL_BEFORE_BUILD=true
org.eclipse.debug.ui/org.eclipse.debug.ui.build_before_launch=false
I placed these three lines in a file named /opt/eclipse/default-prefs.ini and added an entry to my system wide /opt/eclipse/eclipse.ini file:
...
-pluginCustomization
/opt/eclipse/default-prefs.ini
....
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
Just place these two lines somwhere before -vmargs.
starting eclipse with "eclipse -pluginCustomization /path/to/eclipse.ini" also works, but I prefer adding it to eclipse.ini, because some peoply here create their own start menu entry or desktop icons and some lauch it from the commandline. With the eclipse.ini method, none of them needs to think about the "-pluginCustomization" switch.
best regards
Martin
[Updated on: Tue, 23 August 2011 06:21] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04336 seconds