org.eclipse.rse.core.subsystems
Class AbstractResource
java.lang.Object
org.eclipse.rse.core.subsystems.AbstractResource
-
All Implemented Interfaces:
-
IAdaptable
-
Direct Known Subclasses:
-
TerminalElement
-
public abstract class AbstractResource
- extends
Object
- implements
IAdaptable
This class can be used as the base class for model objects that represent
remote resources returned from the subsystem via resolveFilterStrings. Its
advantages are:
- It already implements IAdaptable.
- It already maintains the reference to the owning subsystem, which simplifies action processing.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
AbstractResource
public AbstractResource(
ISubSystem parentSubSystem)
- Default constructor
AbstractResource
public AbstractResource()
- Constructor.
-
See Also:
-
setSubSystem(ISubSystem)
getAdapter
public
Object getAdapter(
Class adapter)
-
-
Specified by:
-
getAdapter
in interface
IAdaptable
-
-
See Also:
-
IAdaptable.getAdapter(Class)
getSubSystem
public
ISubSystem getSubSystem()
- Returns the parent SubSystem which produced this remote resource.
-
-
-
Returns:
- SubSystem
setSubSystem
public void setSubSystem(
ISubSystem parentSubSystem)
- Resets the parent SubSystem.
-
-
-
Parameters:
-
parentSubSystem
- The parentSubSystem to set
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.