Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Access Preferences
Access Preferences [message #663860] Wed, 06 April 2011 16:33
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 5
Registered: September 2010
Junior Member
Hello together,

i have a plugin created and added the extension org.eclipse.ui.preferencePages. Now i am trying to access these preferences in an other project programatically but unfortunatly i fail totaly.
i tried:
	ScopedPreferenceStore s = new ScopedPreferenceStore(new InstanceScope(), "com.tts.abap2uml.ui");

	System.out.println(s.contains("classAbreviation"));


which leads to: [main] Product-specified preferences called before plugin is started

i tried
	String a = Platform.getPreferencesService().getString("com.tts.uml2abap.ui", "classAbreviation", "Test", null );
	System.out.println("test: " + a );

which leads to a NullPointerException.

i tried
Preferences prefs =  new InstanceScope().getNode("com.tts.uml2abap.ui.perfs");

same as above.

so slowly i am running out of options here, googled and read everything i came across.

Reading the file under
%workspace%metadata etc. 

doesn't help at all because the file is only writen once the User does some changes otherwise it is just pulling the defaults. I hope one of you guys can help me out here.

Regards
Previous Topic:I can not find the setting of gdbserver debugger
Next Topic: Eclipse 3.6.2 SWT issue - .UnsatisfiedLinkError: Activator._isCompizSet()Z
Goto Forum:
  


Current Time: Tue Apr 23 06:35:55 GMT 2024

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

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

Back to the top