Thursday, June 05, 2008

Shared Configuration In Eclipse

I realized that even if you don't do anything for shared configuration scenario as described eclipse doc,Eclipse can manage multi users by default. You need to be sure that your default configuration folder( which has config.ini inside of it)of your RCP application is read-only to every user except that root. You have 1 installation for your RCP app and every user can execute the same app. By default, when your RCP app can't write to configuration folder, it creates 2 folder inside of user (who executed app) home directory. 1 for workspace settings and the other for .eclipse folder.
.eclipse/your RCP product/configuration/config.ini is created automatically too. If you look inside of it :
osgi.sharedConfiguration.area=file\:configuration/
It basicly has a link to shared configuration area which is by default configuration folder in RCP product installation. So only root can install plug-in s and every user executed RCP app can see new plugs but cant uninstall or disable and install new plugs.