|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.ftt.properties.util.AbstractPropertyGroupManager
com.ibm.ftt.properties.impl.InternalAbstractPropertyGroupManager
com.ibm.ftt.properties.local.InternalLocalPropertyGroupManager
com.ibm.ftt.properties.local.LocalPropertyGroupManager
public class LocalPropertyGroupManager
This property group manager provides access to a single property group container for the property groups that can be associated with local COBOL and PL/I projects and the resources in them.
This property group manager can also be used to set and get property groups for Eclipse IResources in local COBOL and PL/I projects, as well as set and get overrides.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
static String |
LOCAL_NATURE_ID
|
static String |
OFFLINE_NATURE_ID
|
| Method Summary | |
|---|---|
void |
deleteOverriddenPropertiesInCategory(IResource resource,
ICategory category)
Delete the overrides for properties belonging to the given category for the given resource. |
void |
deleteOverride(IResource resource,
IProperty property)
Deletes the override for the given property for the given resource. |
IPropertyGroup |
getCurrentPropertyGroup(IResource resource)
Gets the current property group for the given resource. |
IPropertyGroup |
getCurrentPropertyGroup(IResource resource,
boolean searchParents)
Return the current property group for this resource or a parent resource. |
static LocalPropertyGroupManager |
getLocalPropertyGroupManager()
Returns the singleton instance of the LocalPropertyGroupManager. |
List |
getOverriddenProperties(IResource resource)
Return all of the overridden properties for the given resource. |
List |
getPropertyGroupContainers()
There will always be exactly one property group container for this property group manager. |
void |
setCurrentPropertyGroup(IResource resource,
IPropertyGroup group)
Set the current property group for the given resource. |
void |
setOverride(IResource resource,
IProperty property,
String newValue)
Sets the override for the given property for the given resource. |
| Methods inherited from class com.ibm.ftt.properties.local.InternalLocalPropertyGroupManager |
|---|
delete, rename, resourceChanged |
| Methods inherited from class com.ibm.ftt.properties.impl.InternalAbstractPropertyGroupManager |
|---|
deregister, getCategories, getCategory, notifyAddPropertyGroup, notifyDeletePropertyGroup, notifyDescriptionChanged, notifyRenamePropertyGroup, register |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.ftt.properties.IPropertyGroupManager |
|---|
deregister, getCategories, register |
| Methods inherited from interface org.eclipse.core.resources.IResourceChangeListener |
|---|
resourceChanged |
| Field Detail |
|---|
public static final String COPY_RIGHT
public static final String LOCAL_NATURE_ID
public static final String OFFLINE_NATURE_ID
| Method Detail |
|---|
public static LocalPropertyGroupManager getLocalPropertyGroupManager()
public List getPropertyGroupContainers()
getPropertyGroupContainers in interface IPropertyGroupManagergetPropertyGroupContainers in class AbstractPropertyGroupManager
public void setCurrentPropertyGroup(IResource resource,
IPropertyGroup group)
throws IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.group - The current property group
IllegalResourceException - If the IResource is not in a local COBOL
or PL/I project.
public IPropertyGroup getCurrentPropertyGroup(IResource resource)
throws IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.
IllegalResourceException - If the IResource is not in a local COBOL
or PL/I project.
public void setOverride(IResource resource,
IProperty property,
String newValue)
throws IllegalPropertyException,
IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.property - The property to overridenewValue - The overridden value
IllegalPropertyException - If the resource does not have a current
property group that has this property in one of its category instances.
IllegalResourceException - If the IResource is not in a local
COBOL or PL/I project.
public void deleteOverride(IResource resource,
IProperty property)
throws NoOverrideException,
IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.property - The property that has an override to delete.
NoOverrideException - If there is no override for the given property.
IllegalResourceException - If the IResource is not in a local
COBOL or PL/I project.
public List getOverriddenProperties(IResource resource)
throws IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.
IllegalResourceException - If the IResource is not in a local
COBOL or PL/I project.
public void deleteOverriddenPropertiesInCategory(IResource resource,
ICategory category)
throws NoOverrideException,
IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.category - A registered category.
NoOverrideException - If there are no overrides for properties
in the given category.
IllegalResourceException - If the IResource is not in a local COBOL
or PL/I project.
public IPropertyGroup getCurrentPropertyGroup(IResource resource,
boolean searchParents)
throws IllegalResourceException
resource - An IResource in a local COBOL or PL/I project.searchParents - If true, parent resources are searched until a current property group
is found. If false, only the given resource is checked.
IllegalResourceException - If the given IResource is not in a local COBOL or
PL/I project.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||