Exporting Eclipse Settings to XML File

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Exporting Eclipse Settings to XML File

Postby kwpsd » Sat Mar 06, 2010 2:28 am

Servoy 5.1

I really like the idea that

    Window -> Preferences -> JavaScript -> Formatter

and

    Window -> Preferences -> JavaScript -> Editor -> Templates

settings can be exported to an xml file. What would really be great is to be able to export all the settings to an xml file, so that I can easily replicate Servoy installations on all of our computers. Although I can import the Formatter and Editor Templates, I still have to re-key the white space control, syntax coloring, folding, etc. Having all the settings in an xml file would also make things easier when re-installing Servoy or performing a major upgrade.

Agree/disagree?
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Exporting Eclipse Settings to XML File

Postby ptalbot » Sat Mar 06, 2010 2:43 am

You can already do that!

Choose menu File > Export.

In the dialog, select General > Preferences.
In the next dialog, choose to export all, give your pref file a name, and there you go.

On another computer, just choose menu File > Import
In the dialog, select General > Preferences.
Point to the epf file and voilà!

All the exposed preferences will be saved, and can be restored.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Exporting Eclipse Settings to XML File

Postby kwpsd » Sat Mar 06, 2010 6:41 am

Thanks, Patrick!

I didn't know about this feature. Wish I had known before installing Servoy 5.1 on 5 different computers!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Exporting Eclipse Settings to XML File

Postby ROCLASI » Sat Mar 06, 2010 4:25 pm

Hi Kim,

Another tip for when you are using multiple workspaces.
When switching to a newly created workspace you don't have all your perspective settings, etc. Sure you can import the *.epf file again but that doesn't restore all your perspectives and views.
An easier way is to switch to the new (or even existing) workspace and copy over all your settings in one big swoop.
How?

menubar > File > Switch Workspace > Other...

Then you get the following dialog where you can select the new workspace directory. Just expand the disclosure triangle and you have 2 more options. One is Copy Settings Workbench Layout. This will copy all your perspective and view settings.

choose workspace.png
choose workspace.png (53.3 KiB) Viewed 3850 times


Only thing I noticed is that the main window resizes to a default size after switching but that's all.
Of course you don't have to use this feature everytime you switch between workspaces, only when you want the settings to be in sync.


Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Exporting Eclipse Settings to XML File

Postby kwpsd » Sat Mar 06, 2010 7:02 pm

Another excellent tip...thanks, Robert!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 11 guests