Java Doc for ScopedPreferenceStore.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » preferences » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui.preferences 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.ui.preferences.ScopedPreferenceStore

ScopedPreferenceStore
public class ScopedPreferenceStore extends EventManager implements IPreferenceStore,IPersistentPreferenceStore(Code)
The ScopedPreferenceStore is an IPreferenceStore that uses the scopes provided in org.eclipse.core.runtime.preferences.

A ScopedPreferenceStore does the lookup of a preference based on it's search scopes and sets the value of the preference based on its store scope.

The default scope is always included in the search scopes when searching for preference values.


See Also:   org.eclipse.core.runtime.preferences
since:
   3.1


Field Summary
 StringdefaultQualifier
     The defaultQualifier is the string used to look up the default node.
 StringnodeQualifier
     The nodeQualifer is the string used to look up the node in the contexts.
 IEclipsePreferences.IPreferenceChangeListenerpreferencesListener
     The listener on the IEclipsePreferences.
protected  booleansilentRunning
     A boolean to indicate the property changes should not be propagated.

Constructor Summary
public  ScopedPreferenceStore(IScopeContext context, String qualifier, String defaultQualifierPath)
     Create a new instance of the receiver.
public  ScopedPreferenceStore(IScopeContext context, String qualifier)
     Create a new instance of the receiver.

Method Summary
public  voidaddPropertyChangeListener(IPropertyChangeListener listener)
    
public  booleancontains(String name)
    
public  voidfirePropertyChangeEvent(String name, Object oldValue, Object newValue)
    
public  booleangetBoolean(String name)
    
 ObjectgetDefault(String key, Object obj)
     Does its best at determining the default value for the given key.
public  booleangetDefaultBoolean(String name)
    
public  doublegetDefaultDouble(String name)
    
public  floatgetDefaultFloat(String name)
    
public  intgetDefaultInt(String name)
    
public  longgetDefaultLong(String name)
    
public  StringgetDefaultString(String name)
    
public  doublegetDouble(String name)
    
public  floatgetFloat(String name)
    
public  intgetInt(String name)
    
public  longgetLong(String name)
    
 IEclipsePreferencesgetStorePreferences()
     Return the IEclipsePreferences node associated with this store.
public  StringgetString(String name)
    
public  booleanisDefault(String name)
    
public  booleanneedsSaving()
    
public  voidputValue(String name, String value)
    
public  voidremovePropertyChangeListener(IPropertyChangeListener listener)
    
public  voidsave()
    
public  voidsetDefault(String name, double value)
    
public  voidsetDefault(String name, float value)
    
public  voidsetDefault(String name, int value)
    
public  voidsetDefault(String name, long value)
    
public  voidsetDefault(String name, String defaultObject)
    
public  voidsetDefault(String name, boolean value)
    
public  voidsetSearchContexts(IScopeContext[] scopes)
     Set the search contexts to scopes.
public  voidsetToDefault(String name)
    
public  voidsetValue(String name, double value)
    
public  voidsetValue(String name, float value)
    
public  voidsetValue(String name, int value)
    
public  voidsetValue(String name, long value)
    
public  voidsetValue(String name, String value)
    
public  voidsetValue(String name, boolean value)
    

Field Detail
defaultQualifier
String defaultQualifier(Code)
The defaultQualifier is the string used to look up the default node.



nodeQualifier
String nodeQualifier(Code)
The nodeQualifer is the string used to look up the node in the contexts.



preferencesListener
IEclipsePreferences.IPreferenceChangeListener preferencesListener(Code)
The listener on the IEclipsePreferences. This is used to forward updates to the property change listeners on the preference store.



silentRunning
protected boolean silentRunning(Code)
A boolean to indicate the property changes should not be propagated.




Constructor Detail
ScopedPreferenceStore
public ScopedPreferenceStore(IScopeContext context, String qualifier, String defaultQualifierPath)(Code)
Create a new instance of the receiver. Store the values in context in the node looked up by qualifier. NOTE: Any instance of ScopedPreferenceStore should call
Parameters:
  context - the scope to store to
Parameters:
  qualifier - the qualifier used to look up the preference node
Parameters:
  defaultQualifierPath - the qualifier used when looking up the defaults



ScopedPreferenceStore
public ScopedPreferenceStore(IScopeContext context, String qualifier)(Code)
Create a new instance of the receiver. Store the values in context in the node looked up by qualifier.
Parameters:
  context - the scope to store to
Parameters:
  qualifier - the qualifer used to look up the preference node




Method Detail
addPropertyChangeListener
public void addPropertyChangeListener(IPropertyChangeListener listener)(Code)



contains
public boolean contains(String name)(Code)



firePropertyChangeEvent
public void firePropertyChangeEvent(String name, Object oldValue, Object newValue)(Code)



getBoolean
public boolean getBoolean(String name)(Code)



getDefault
Object getDefault(String key, Object obj)(Code)
Does its best at determining the default value for the given key. Checks the given object's type and then looks in the list of defaults to see if a value exists. If not or if there is a problem converting the value, the default default value for that type is returned.
Parameters:
  key - the key to search
Parameters:
  obj - the object who default we are looking for Object or null



getDefaultBoolean
public boolean getDefaultBoolean(String name)(Code)



getDefaultDouble
public double getDefaultDouble(String name)(Code)



getDefaultFloat
public float getDefaultFloat(String name)(Code)



getDefaultInt
public int getDefaultInt(String name)(Code)



getDefaultLong
public long getDefaultLong(String name)(Code)



getDefaultString
public String getDefaultString(String name)(Code)



getDouble
public double getDouble(String name)(Code)



getFloat
public float getFloat(String name)(Code)



getInt
public int getInt(String name)(Code)



getLong
public long getLong(String name)(Code)



getStorePreferences
IEclipsePreferences getStorePreferences()(Code)
Return the IEclipsePreferences node associated with this store. the preference node for this store



getString
public String getString(String name)(Code)



isDefault
public boolean isDefault(String name)(Code)



needsSaving
public boolean needsSaving()(Code)



putValue
public void putValue(String name, String value)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(IPropertyChangeListener listener)(Code)



save
public void save() throws IOException(Code)



setDefault
public void setDefault(String name, double value)(Code)



setDefault
public void setDefault(String name, float value)(Code)



setDefault
public void setDefault(String name, int value)(Code)



setDefault
public void setDefault(String name, long value)(Code)



setDefault
public void setDefault(String name, String defaultObject)(Code)



setDefault
public void setDefault(String name, boolean value)(Code)



setSearchContexts
public void setSearchContexts(IScopeContext[] scopes)(Code)
Set the search contexts to scopes. When searching for a value the seach will be done in the order of scope contexts and will not search the storeContext unless it is in this list.

If the given list is null, then clear this store's search contexts. This means that only this store's scope context and default scope will be used during preference value searching.

The defaultContext will be added to the end of this list automatically and MUST NOT be included by the user.


Parameters:
  scopes - a list of scope contexts to use when searching, ornull



setToDefault
public void setToDefault(String name)(Code)



setValue
public void setValue(String name, double value)(Code)



setValue
public void setValue(String name, float value)(Code)



setValue
public void setValue(String name, int value)(Code)



setValue
public void setValue(String name, long value)(Code)



setValue
public void setValue(String name, String value)(Code)



setValue
public void setValue(String name, boolean value)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.