org.eclipse.cdt.internal.core
Class LocalProjectScope

java.lang.Object
  extended by org.eclipse.cdt.internal.core.LocalProjectScope
All Implemented Interfaces:
org.eclipse.core.runtime.preferences.IScopeContext

public class LocalProjectScope
extends java.lang.Object
implements org.eclipse.core.runtime.preferences.IScopeContext


Field Summary
static java.lang.String SCOPE
          String constant (value of "project-local") used for the scope name for this preference scope.
 
Constructor Summary
LocalProjectScope(org.eclipse.core.resources.IProject context)
          Create and return a new local project scope for the given project.
LocalProjectScope(java.lang.String projectName)
          Create and return a new local project scope for the given project.
 
Method Summary
static void deletePreferences(org.eclipse.core.runtime.IPath prjToDelete, org.eclipse.core.runtime.IPath movedTo)
           
 boolean equals(java.lang.Object obj)
           
 org.eclipse.core.runtime.IPath getLocation()
           
 java.lang.String getName()
           
 org.eclipse.core.runtime.preferences.IEclipsePreferences getNode(java.lang.String qualifier)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE

public static final java.lang.String SCOPE
String constant (value of "project-local") used for the scope name for this preference scope.

See Also:
Constant Field Values
Constructor Detail

LocalProjectScope

public LocalProjectScope(org.eclipse.core.resources.IProject context)
Create and return a new local project scope for the given project. The given project must not be null.

Parameters:
context - the project
Throws:
java.lang.IllegalArgumentException - if the project is null

LocalProjectScope

public LocalProjectScope(java.lang.String projectName)
Create and return a new local project scope for the given project. The given project must not be null.

Parameters:
context - the project
Throws:
java.lang.IllegalArgumentException - if the project is null
Method Detail

getLocation

public org.eclipse.core.runtime.IPath getLocation()
Specified by:
getLocation in interface org.eclipse.core.runtime.preferences.IScopeContext

getName

public java.lang.String getName()
Specified by:
getName in interface org.eclipse.core.runtime.preferences.IScopeContext

getNode

public org.eclipse.core.runtime.preferences.IEclipsePreferences getNode(java.lang.String qualifier)
Specified by:
getNode in interface org.eclipse.core.runtime.preferences.IScopeContext

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

deletePreferences

public static void deletePreferences(org.eclipse.core.runtime.IPath prjToDelete,
                                     org.eclipse.core.runtime.IPath movedTo)