org.eclipse.rse.core.references
Class SystemReferencingObject
java.lang.Object
org.eclipse.rse.core.model.RSEPersistableObject
org.eclipse.rse.core.model.PropertySetContainer
org.eclipse.rse.core.model.RSEModelObject
org.eclipse.rse.core.references.SystemReferencingObject
- All Implemented Interfaces:
- IPropertySetContainer, IRSEModelObject, IRSEPersistableContainer, IRSEBaseReferencingObject, IRSEReferencingObject
- Direct Known Subclasses:
- SystemFilterReference
public abstract class SystemReferencingObject
- extends RSEModelObject
- implements IRSEReferencingObject
A class to encapsulate the operations required of an object which is merely a
reference to another object, something we call a shadow. Such shadows are
needed to support a UI which displays the same object in multiple places. To
enable that, it is necessary not to use the same physical object in each UI
representation as the UI will only know how to update/refresh the first one
it finds.
- Since:
- org.eclipse.rse.core 3.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
referenceBroken
protected boolean referenceBroken
SystemReferencingObject
protected SystemReferencingObject()
- Default constructor.
setReferencedObject
public void setReferencedObject(IRSEBaseReferencedObject obj)
- Description copied from interface:
IRSEBaseReferencingObject
- Set the object to which we reference
- Specified by:
setReferencedObject
in interface IRSEBaseReferencingObject
- Parameters:
obj
- the object to reference
getReferencedObject
public IRSEBaseReferencedObject getReferencedObject()
- Specified by:
getReferencedObject
in interface IRSEBaseReferencingObject
- Returns:
- the object which we reference
removeReference
public int removeReference()
- Description copied from interface:
IRSEBaseReferencingObject
- Fastpath to getReferencedObject().removeReference(this).
- Specified by:
removeReference
in interface IRSEBaseReferencingObject
- Returns:
- new reference count of master object
setReferenceBroken
public void setReferenceBroken(boolean broken)
- Set to true if this reference is currently broken/unresolved
- Specified by:
setReferenceBroken
in interface IRSEBaseReferencingObject
- Parameters:
broken
- true if this reference is currently broken/unresolved
isReferenceBroken
public boolean isReferenceBroken()
- Return true if this reference is currently broken/unresolved
- Specified by:
isReferenceBroken
in interface IRSEBaseReferencingObject
- Returns:
- true if this reference is currently broken/unresolved
getDescription
public String getDescription()
- Specified by:
getDescription
in interface IRSEModelObject
- Overrides:
getDescription
in class RSEModelObject
getHelper
protected final SystemReferencingObjectHelper getHelper()
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.