Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Custom Preferences Scopes
Custom Preferences Scopes [message #297039] Fri, 06 January 2006 13:15
Eclipse UserFriend
Originally posted by: jasper.jasperpotts.com

I am working on a application built minimal eclipse platform
(org.eclipse.core.runtime,org.eclipse.osgi,org.eclipse.updat e.configurator).
I am trying to add more scopes to preferences some of which are
application global and some are only available to the open document. Has
any one created their own scopes? It looks like this is not common as
the standard implementation EclipsePreferences is internal to
core.runtime. What I would like to end up with is a scope search order like:

| DocumentScope - Loaded from document prefs file in user loc
| ProjectScope - Loaded from project prefs file in user loc
| InstanceScope - Loaded from instance location
| ConfigurationScope - Loaded from config(install) location
V DefaultScope - Provided by bundles

By default I would look up a preferences key's value though
PreferencesService this would search for a value using the default
search order InstanceScope->ConfigurationScope->DefaultScope. So I will
need to create my own prefs look service for a document that can use the
above search order with the correct project scope and document scope.

I have been reading though the eclipse source and it doesn't look like
the preferences system is designed to be extended or built on. At least
not with scopes that are non-global(ie per document or project) scope.
Any ideas how I would go about this?

Many Thanks

Jasper
Previous Topic:Why F1 doesn't work?
Next Topic:Deleting a project version on CVS
Goto Forum:
  


Current Time: Fri Jun 20 04:48:45 EDT 2025

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

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

Back to the top