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
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