1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

[178490] added:

ImageDescriptor getSystemFilterPoolImage(ISystemFilterPoolReference fpRef);
ImageDescriptor getSystemFilterImage(ISystemFilterReference fRef);

Original implementations kept so that original behaviour can be maintained.
This commit is contained in:
David McKnight 2007-03-21 15:27:27 +00:00
parent c81f8accff
commit eecef5a622
2 changed files with 37 additions and 0 deletions

View file

@ -704,6 +704,30 @@ public class SubSystemConfigurationAdapter implements ISubSystemConfigurationAda
{
return RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_FILTER_ID);
}
/**
* Supply the image to be used for filter pool references. This implementation
* just gets the referenced filter pool and calls the method
* getSystemFilterPoolImage(ISystemFilterPool) on it.
* Override this method to provide custom images for filter pool references.
*/
public ImageDescriptor getSystemFilterPoolImage(ISystemFilterPoolReference filterPoolRef)
{
return getSystemFilterPoolImage(filterPoolRef.getReferencedFilterPool());
}
/**
* Supply the image to be used for filter references. This implementation
* just gets the referenced filter and calls the method
* getSystemFilterImage(ISystemFile) on it.
* Override this method to provide custom images for filter references.
*/
public ImageDescriptor getSystemFilterImage(ISystemFilterReference filterRef)
{
return getSystemFilterImage(filterRef.getReferencedFilter());
}
/*
* Supply the image to be used for the given filter string, within actions.
* REQUIRED BY SYSTEMFILTERPOOLMANAGERPROVIDER INTERFACE

View file

@ -234,6 +234,19 @@ public interface ISubSystemConfigurationAdapter
* REQUIRED BY SYSTEMFILTERPOOLMANAGERPROVIDER INTERFACE
*/
public ImageDescriptor getSystemFilterImage(ISystemFilter filter);
/**
* Supply the image to be used for filter pool references
*/
public ImageDescriptor getSystemFilterPoolImage(ISystemFilterPoolReference filterPool);
/**
* Supply the image to be used for filter references
*/
public ImageDescriptor getSystemFilterImage(ISystemFilterReference filter);
/*
* Supply the image to be used for the given filter string, within actions.
* REQUIRED BY SYSTEMFILTERPOOLMANAGERPROVIDER INTERFACE