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:
parent
c81f8accff
commit
eecef5a622
2 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue