mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 10:05:24 +02:00
[cleanup] javadoc
This commit is contained in:
parent
24e418f3b6
commit
e172a89cb4
1 changed files with 36 additions and 61 deletions
|
@ -69,18 +69,15 @@ public class SystemFilterPoolReference extends SystemPersistableReferencingObjec
|
||||||
setReferencedObjectName(filterPoolName);
|
setReferencedObjectName(filterPoolName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return the reference manager which is managing this filter reference
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#getFilterPoolReferenceManager()
|
||||||
* framework object.
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterPoolReferenceManager getFilterPoolReferenceManager() {
|
public ISystemFilterPoolReferenceManager getFilterPoolReferenceManager() {
|
||||||
return (ISystemFilterPoolReferenceManager) getParentReferenceManager();
|
return (ISystemFilterPoolReferenceManager) getParentReferenceManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return the object which instantiated the pool reference manager object.
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#getProvider()
|
||||||
* Makes it easy to get back to the point of origin, given any filter reference
|
|
||||||
* framework object
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterPoolReferenceManagerProvider getProvider() {
|
public ISystemFilterPoolReferenceManagerProvider getProvider() {
|
||||||
ISystemFilterPoolReferenceManager mgr = getFilterPoolReferenceManager();
|
ISystemFilterPoolReferenceManager mgr = getFilterPoolReferenceManager();
|
||||||
|
@ -90,19 +87,15 @@ public class SystemFilterPoolReference extends SystemPersistableReferencingObjec
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* This is the method required by the IAdaptable interface.
|
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
|
||||||
* Given an adapter class type, return an object castable to the type, or
|
|
||||||
* null if this is not possible.
|
|
||||||
*/
|
*/
|
||||||
public Object getAdapter(Class adapterType) {
|
public Object getAdapter(Class adapterType) {
|
||||||
return Platform.getAdapterManager().getAdapter(this, adapterType);
|
return Platform.getAdapterManager().getAdapter(this, adapterType);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return name of the filter pool we reference
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#getReferencedFilterPoolName()
|
||||||
* The name is stored qualified by the manager name,
|
|
||||||
* so we first have to strip that off.
|
|
||||||
*/
|
*/
|
||||||
public String getReferencedFilterPoolName() {
|
public String getReferencedFilterPoolName() {
|
||||||
String savedName = super.getReferencedObjectName();
|
String savedName = super.getReferencedObjectName();
|
||||||
|
@ -115,10 +108,8 @@ public class SystemFilterPoolReference extends SystemPersistableReferencingObjec
|
||||||
return poolName;
|
return poolName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return name of the filter pool manager containing the pool we reference.
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#getReferencedFilterPoolManagerName()
|
||||||
* The pool name is stored qualified by the manager name,
|
|
||||||
* so we get it from there.
|
|
||||||
*/
|
*/
|
||||||
public String getReferencedFilterPoolManagerName() {
|
public String getReferencedFilterPoolManagerName() {
|
||||||
String savedName = super.getReferencedObjectName();
|
String savedName = super.getReferencedObjectName();
|
||||||
|
@ -131,25 +122,22 @@ public class SystemFilterPoolReference extends SystemPersistableReferencingObjec
|
||||||
return mgrName;
|
return mgrName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Reset the name of the filter pool we reference.
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#resetReferencedFilterPoolName(java.lang.String)
|
||||||
* Called on filter pool rename operations
|
|
||||||
*/
|
*/
|
||||||
public void resetReferencedFilterPoolName(String newName) {
|
public void resetReferencedFilterPoolName(String newName) {
|
||||||
super.setReferencedObjectName(newName);
|
super.setReferencedObjectName(newName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Set the filter pool that we reference.
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#setReferenceToFilterPool(org.eclipse.rse.core.filters.ISystemFilterPool)
|
||||||
* This also calls addReference(this) on that pool!
|
|
||||||
*/
|
*/
|
||||||
public void setReferenceToFilterPool(ISystemFilterPool pool) {
|
public void setReferenceToFilterPool(ISystemFilterPool pool) {
|
||||||
super.setReferencedObject(pool);
|
super.setReferencedObject(pool);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return referenced filter pool object. If the reference is unresolved it will
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#getReferencedFilterPool()
|
||||||
* attempt to resolve it.
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterPool getReferencedFilterPool() {
|
public ISystemFilterPool getReferencedFilterPool() {
|
||||||
ISystemFilterPool filterPool = (ISystemFilterPool) getReferencedObject();
|
ISystemFilterPool filterPool = (ISystemFilterPool) getReferencedObject();
|
||||||
|
@ -169,80 +157,67 @@ public class SystemFilterPoolReference extends SystemPersistableReferencingObjec
|
||||||
// Methods common with SystemFilterPoolReferenceImpl, and hence
|
// Methods common with SystemFilterPoolReferenceImpl, and hence
|
||||||
// abstracted out into SystemFilterContainerReference...
|
// abstracted out into SystemFilterContainerReference...
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
/**
|
|
||||||
* Return the object to which we hold a reference. This is either
|
/* (non-Javadoc)
|
||||||
* SystemFilter or SystemFilterPool. Since both implement
|
* @see org.eclipse.rse.core.filters.ISystemFilterContainerReference#getReferencedSystemFilterContainer()
|
||||||
* SystemFilterContainer, that is what we return.
|
|
||||||
* <p>
|
|
||||||
* Of course, this is a generic method, and in our case it is always
|
|
||||||
* true that we only hold a SystemFilter. Hence, this is the same
|
|
||||||
* as calling getReferenceFilter and casting the result.
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterContainer getReferencedSystemFilterContainer() {
|
public ISystemFilterContainer getReferencedSystemFilterContainer() {
|
||||||
return getReferencedFilterPool();
|
return getReferencedFilterPool();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Build and return an array of SystemFilterReference objects.
|
* @see org.eclipse.rse.core.filters.ISystemFilterContainerReference#getSystemFilterReferences(org.eclipse.rse.core.subsystems.ISubSystem)
|
||||||
* Each object is created new. There is one for each of the filters
|
|
||||||
* in the reference SystemFilter or SystemFilterPool.
|
|
||||||
* For performance reasons, we will cache this array and only
|
|
||||||
* return a fresh one if something changes in the underlying
|
|
||||||
* filter list.
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterReference[] getSystemFilterReferences(ISubSystem subSystem) {
|
public ISystemFilterReference[] getSystemFilterReferences(ISubSystem subSystem) {
|
||||||
return containerHelper.getSystemFilterReferences(subSystem);
|
return containerHelper.getSystemFilterReferences(subSystem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Create a single filter refererence to a given filter.
|
* @see org.eclipse.rse.core.filters.ISystemFilterContainerReference#getSystemFilterReference(org.eclipse.rse.core.subsystems.ISubSystem, org.eclipse.rse.core.filters.ISystemFilter)
|
||||||
* If there already is a reference to this filter, it is returned.
|
|
||||||
* If not, a new reference is created and appended to the end of the existing filter reference array.
|
|
||||||
* @see #getExistingSystemFilterReference(ISystemFilter)
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterReference getSystemFilterReference(ISubSystem subSystem, ISystemFilter filter) {
|
public ISystemFilterReference getSystemFilterReference(ISubSystem subSystem, ISystemFilter filter) {
|
||||||
//return containerHelper.generateFilterReference(filter);
|
//return containerHelper.generateFilterReference(filter);
|
||||||
return containerHelper.generateAndRecordFilterReference(subSystem, filter);
|
return containerHelper.generateAndRecordFilterReference(subSystem, filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return an existing reference to a given system filter.
|
* @see org.eclipse.rse.core.filters.ISystemFilterContainerReference#getExistingSystemFilterReference(org.eclipse.rse.core.subsystems.ISubSystem, org.eclipse.rse.core.filters.ISystemFilter)
|
||||||
* If no reference currently exists to this filter, returns null.
|
|
||||||
* @see #getSystemFilterReference(ISystemFilter)
|
|
||||||
*/
|
*/
|
||||||
public ISystemFilterReference getExistingSystemFilterReference(ISubSystem subSystem, ISystemFilter filter) {
|
public ISystemFilterReference getExistingSystemFilterReference(ISubSystem subSystem, ISystemFilter filter) {
|
||||||
return containerHelper.getExistingSystemFilterReference(subSystem, filter);
|
return containerHelper.getExistingSystemFilterReference(subSystem, filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return true if the referenced pool or filter has filters.
|
* @see org.eclipse.rse.core.filters.ISystemFilterContainerReference#hasFilters()
|
||||||
*/
|
*/
|
||||||
public boolean hasFilters() {
|
public boolean hasFilters() {
|
||||||
return containerHelper.hasFilters();
|
return containerHelper.hasFilters();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return count of the number of filters in the referenced pool or filter
|
* @see org.eclipse.rse.core.filters.ISystemFilterContainerReference#getFilterCount()
|
||||||
*/
|
*/
|
||||||
public int getFilterCount() {
|
public int getFilterCount() {
|
||||||
return containerHelper.getFilterCount();
|
return containerHelper.getFilterCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return the name of the SystemFilter or SystemFilterPool that we reference.
|
* @see org.eclipse.rse.core.model.IRSEModelObject#getName()
|
||||||
* For such objects this is what we show in the GUI.
|
|
||||||
*/
|
*/
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return getReferencedFilterPoolName();
|
return getReferencedFilterPoolName();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/* (non-Javadoc)
|
||||||
* Return fully qualified name that includes the filter pool managers name
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolReference#getFullName()
|
||||||
*/
|
*/
|
||||||
public String getFullName() {
|
public String getFullName() {
|
||||||
return super.getReferencedObjectName();
|
return super.getReferencedObjectName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.rse.core.persistance.IRSEPersistableContainer#commit()
|
||||||
|
*/
|
||||||
public boolean commit() {
|
public boolean commit() {
|
||||||
return false;
|
return false;
|
||||||
// return RSEUIPlugin.getThePersistenceManager().commit(getProvider().);
|
// return RSEUIPlugin.getThePersistenceManager().commit(getProvider().);
|
||||||
|
|
Loading…
Add table
Reference in a new issue