Accessing the Windows Registry [message #165550] |
Tue, 22 June 2004 15:06  |
Eclipse User |
|
|
|
Originally posted by: paul.burkley.intel.com
Hi,
I'm interested in accessing the windows registry from Eclipse. Our plugin
would like to query information about another Windows application that it
needs to inter-operate with.
I searched the newsgroups and found that to access the registry from
Eclipse the suggested approach is to use the following LGPL open source
plugin:
http://www.beq.ca/tech/Products/jreg_key.shtml
We'd rather not have to depend on such a complete library as this, we
literally just need to query one key in the registry so this seems like a
fairly heavyweight solution.
I'm wondering is it possible to make use of some of Eclipse's own registry
implementation. I can see code where Eclipse accesses the registry (e.g.
org.eclipse.swt.program.Program.getKeyValue) by making JNI calls via the
org.eclipse.swt.internal.win32.OS class, but I can't find anywhere that
this code is made publicly available thru some API. The OS class is in an
internal package so we shouldn't rely on this. And the getKeyValue method
on the Program class has package visibility - so close and yet so far :)
Has anyone else had any luck with this? Any help much appreciated!
Paul.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04210 seconds