Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » .epf file format(Where is the Eclipse Prefereces File format documented?)
.epf file format [message #662599] Thu, 31 March 2011 09:24 Go to next message
Mikhail Kalkov is currently offline Mikhail KalkovFriend
Messages: 13
Registered: February 2011
Junior Member
Hi all,

I've been having some troubles with modifying Eclipse Preferencs Files (*.epf) recently , and tried to look up documentation for them, but the only thing I could find were articles explaining how to import/export the preferences. Is the format really not documented at all?

Some of the questions I have are as follows:
- Does the order of statements matter?
- I found some duplicated lines in the file. What is the behaviour of Eclipse in such a case?
- What does an escaped exclamation mark mean in the following line: "\!/configuration/org.eclipse.core.net="
- What does @-sign mean in the following line: "@org.eclipse.pde.core=3.6.0.v20100601"

Kind regards,
Mikhail Kalkov

[Updated on: Thu, 31 March 2011 09:31]

Report message to a moderator

Re: .epf file format [message #662641 is a reply to message #662599] Thu, 31 March 2011 11:35 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 03/31/2011 05:24 AM, Mikhail wrote:
> Hi all,
>
> I've been having some troubles with modifying Eclipse Preferencs Files
> (*.epf) recently , and tried to look up documentation for them, but the
> only thing I could find were articles explaining how to import/export
> the preferences. Is the format really not documented at all?

It's not documented as it's an implementation detail. Unfortunately
that means you'll have to look through the reading/writing code to see
why it would write out \! ... I'd start in
org.eclipse.core.runtime.preferences.InstanceScope

You'd be better off if you wrote some code or a little headless app to
modify the preferences through the eclipse APIs.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: .epf file format [message #663227 is a reply to message #662599] Mon, 04 April 2011 12:00 Go to previous message
Mikhail Kalkov is currently offline Mikhail KalkovFriend
Messages: 13
Registered: February 2011
Junior Member
Ok, thanks Paul! I've solved my particular problem already but would still go and have a look at the source code you've talked about.

Just in case anybody wonders: the order of lines matter, and the lower lines overwrite the higher ones. What is more, some settings are not reflected in the existing Preferences window, and one has to press "Cancel" *after* loading a EPF file, and open the window again. Finally, a couple settings such as /configuration/org.eclipse.core.net/nonProxiedHosts are not applied until Eclipse is restarted.
Previous Topic:Multiple workspaces - one configuration
Next Topic:Get Reference of ToolItems from the Main ToolBar
Goto Forum:
  


Current Time: Tue Apr 16 10:43:07 GMT 2024

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

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

Back to the top