Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » [SOLVED]: Customizing default Workspace Preferences(How to define own default Workspace Preferences that effect all new workspaces?)
[SOLVED]: Customizing default Workspace Preferences [message #717224] Fri, 19 August 2011 12:02 Go to next message
Eclipse UserFriend
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

Re: Customizing default Workspace Preferences [message #718048 is a reply to message #717224] Tue, 23 August 2011 02:17 Go to previous messageGo to next message
Eclipse UserFriend
from http://www.ibm.com/developerworks/opensource/library/os-ecfeat/

1. Open up a clean install of Eclipe and configure it from top to bottom.
2. Export all preferences to an epf file.
3. Hack the resulting epf to remove the /instance/ prefix from all the
property names.
4. Rename the epf to preferences.ini and put it into ~/eclipse
5. Launch Eclipse with -plugincustomization preferences.ini
[SOLVED]: Customizing default Workspace Preferences [message #718112 is a reply to message #718048] Tue, 23 August 2011 05:56 Go to previous message
Eclipse UserFriend
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

Previous Topic:why each time i debug im getting: "No source available for "main() at 0x401fa0"
Next Topic:problem in printing in console
Goto Forum:
  


Current Time: Mon Jul 14 12:39:00 EDT 2025

Powered by FUDForum. Page generated in 0.04336 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top