org.eclipse.datatools.connectivity.ui
Class ContentExtensionBase
java.lang.Object
   org.eclipse.core.runtime.PlatformObject
org.eclipse.core.runtime.PlatformObject
       org.eclipse.datatools.connectivity.ui.ContentExtensionBase
org.eclipse.datatools.connectivity.ui.ContentExtensionBase
- All Implemented Interfaces: 
- org.eclipse.core.runtime.IAdaptable, IContentExtension
- Direct Known Subclasses: 
- ContentExtensionFactoryBase
- public abstract class ContentExtensionBase 
- extends org.eclipse.core.runtime.PlatformObject- implements IContentExtension
Base implementation for IContentExtension. Registers a connect listener with
 the profile to manage the life cycle of the connection wrapped by this
 object.
- Author:
- shongxum
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
ContentExtensionBase
public ContentExtensionBase(IConnectionProfile profile)
- Parameters:
- contentProvider-
- labelProvider-
getConnectionProfile
public IConnectionProfile getConnectionProfile()
- 
- Specified by:
- getConnectionProfilein interface- IContentExtension
 
- 
- Returns:
- the connection profile extended by this object.
 
openConnection
public abstract void openConnection()
- Extenders should open a connection
 
- 
- Specified by:
- openConnectionin interface- IContentExtension
 
- 
- See Also:
- org.eclipse.datatools.connectivity.IContentExtension#openConnection()
 
closeConnection
public abstract void closeConnection()
- Extenders should make sure the IConnection is closed.
 
- 
- Specified by:
- closeConnectionin interface- IContentExtension
 
- 
- See Also:
- IContentExtension.closeConnection()
 
getConnection
public abstract IConnection getConnection()
- 
- Specified by:
- getConnectionin interface- IContentExtension
 
- 
- Returns:
- the connection used by this extension.
 
dispose
public void dispose()
- Description copied from interface: IContentExtension
- This method should dispose of any resources allocated by this object,
 including closing open connections to the referenced connection profile.
 
- 
- Specified by:
- disposein interface- IContentExtension
 
- 
 
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- 
- Specified by:
- getAdapterin interface- org.eclipse.core.runtime.IAdaptable
- Overrides:
- getAdapterin class- org.eclipse.core.runtime.PlatformObject
 
- 
 
isVisible
public boolean isVisible()
- 
- Specified by:
- isVisiblein interface- IContentExtension
 
- 
- Returns:
- true if this content extension node should be visible