Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Preferences

Identifier:
org.eclipse.core.runtime.preferences

Since:
3.0

Description:
The preferences extension point allows plug-ins to add new preference scopes to the Eclipse preference mechanism as well as specify the class to run to initialize default preference values at runtime.

Configuration Markup:

<!ELEMENT extension ( scope* , initializer* , modifier*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT scope EMPTY>

<!ATTLIST scope

name  CDATA #REQUIRED

class CDATA #REQUIRED

>

Element describing a client's definiton of a new preference scope.


  • name - The name of the scope.
  • class - The name of the class.

<!ELEMENT initializer EMPTY>

<!ATTLIST initializer

class CDATA #REQUIRED

>

Element which defines the class to use for runtime preference initialization.


  • class - The name of the class.

<!ELEMENT modifier EMPTY>

<!ATTLIST modifier

class CDATA #REQUIRED

>

Element which defines the class to use for preference modification listening.


  • class - The name of the class.

Examples:
Following is an example of a preference scope declaration. This example declares that this plug-in will provide a preference implementation for the scope "foo". It also declares that when the default values are loaded for this plug-in, the class "MyPreferenceInitializer" contains code to be run to initialize preference default values at runtime.


      <extension point=
"org.eclipse.core.runtime.preferences"
>
         <scope name=
"foo"
 class=
"com.example.FooPrefs"
/>
         <initializer class=
"com.example.MyPreferenceInitializer"
/>
         <modifier class=
"com.example.MyModifyListener"
/>
      </extension>
   

Supplied Implementation:
The org.eclipse.core.runtime plug-in provides preference implementations for the "configuration", "instance", and "default" scopes. The org.eclipse.core.resources plug-in provides an implementation for "project" preferences.


Copyright (c) 2004, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire