Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 215265 - Need access to Java UI Preference Store
Summary: Need access to Java UI Preference Store
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 171601
  Show dependency tree
 
Reported: 2008-01-14 16:51 EST by Brian Bauman CLA
Modified: 2008-01-15 10:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Bauman CLA 2008-01-14 16:51:01 EST
In an effort to integrate JDT and PDE, PDE currently uses the JDT UI's preference store to make sure the build.properties editor is configured according to the JDT properties preference page.

To do this, we need to get access to the JDT UI's preference store.  Currently we call JavaPlugin.getDefault().  In an effort to remove references to internal code, we would like to request JDT to add a static method to get the preference store for the JDT UI plug-in.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=171601#c2 for more information.
Comment 1 Dani Megert CLA 2008-01-15 03:11:54 EST
For workspace JDT preferences use:
  org.eclipse.jdt.ui.PreferenceConstants.getPreferenceStore()
If the JDT preferences can also be set on a project use
  org.eclipse.jdt.ui.PreferenceConstants.getPreference(String, IJavaProject)
Comment 2 Brian Bauman CLA 2008-01-15 10:21:36 EST
Thanks Dani, that sounds like exactly what we needed!