org.eclipse.core.internal.resources
Class ProjectPreferences

java.lang.Object
  extended by org.eclipse.core.internal.preferences.EclipsePreferences
      extended by org.eclipse.core.internal.resources.ProjectPreferences
All Implemented Interfaces:
org.eclipse.core.runtime.preferences.IEclipsePreferences, org.eclipse.core.runtime.preferences.IScope, org.osgi.service.prefs.Preferences

public class ProjectPreferences
extends org.eclipse.core.internal.preferences.EclipsePreferences

Represents a node in the Eclipse preference hierarchy which stores preference values for projects.

Since:
3.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.core.runtime.preferences.IEclipsePreferences
org.eclipse.core.runtime.preferences.IEclipsePreferences.INodeChangeListener, org.eclipse.core.runtime.preferences.IEclipsePreferences.IPreferenceChangeListener, org.eclipse.core.runtime.preferences.IEclipsePreferences.NodeChangeEvent, org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent
 
Field Summary
 
Fields inherited from class org.eclipse.core.internal.preferences.EclipsePreferences
DEBUG_PREFERENCE_GENERAL, DEBUG_PREFERENCE_GET, DEBUG_PREFERENCE_SET, DEFAULT_PREFERENCES_DIRNAME, PREFS_FILE_EXTENSION
 
Constructor Summary
ProjectPreferences()
          Default constructor.
 
Method Summary
 void flush()
           
 boolean nodeExists(java.lang.String path)
           
static void updatePreferences(IFile file)
           
 
Methods inherited from class org.eclipse.core.internal.preferences.EclipsePreferences
absolutePath, accept, addNodeChangeListener, addPreferenceChangeListener, childrenNames, clear, create, create, decodePath, encodePath, get, getBoolean, getByteArray, getDouble, getFloat, getInt, getLong, getSegment, getSegmentCount, isDirty, keys, log, makeRelative, name, node, parent, put, putBoolean, putByteArray, putDouble, putFloat, putInt, putLong, remove, removeNode, removeNodeChangeListener, removePreferenceChangeListener, shareStrings, sync, toDeepDebugString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectPreferences

public ProjectPreferences()
Default constructor. Should only be called by #createExecutableExtension.

Method Detail

updatePreferences

public static void updatePreferences(IFile file)
                              throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

flush

public void flush()
           throws org.osgi.service.prefs.BackingStoreException
Specified by:
flush in interface org.osgi.service.prefs.Preferences
Overrides:
flush in class org.eclipse.core.internal.preferences.EclipsePreferences
Throws:
org.osgi.service.prefs.BackingStoreException

nodeExists

public boolean nodeExists(java.lang.String path)
                   throws org.osgi.service.prefs.BackingStoreException
Specified by:
nodeExists in interface org.osgi.service.prefs.Preferences
Overrides:
nodeExists in class org.eclipse.core.internal.preferences.EclipsePreferences
Throws:
org.osgi.service.prefs.BackingStoreException