Get RunConfiguration object specific icon in the toolbar


I have created a custom RunConfiguration by extending RunConfigurationBase class. I have overridden the getIcon() method to return an icon based on the configuration object state. 

But the icon is not updated according to the state. Whatever icon is provided by the ConfigurationFactory is being displayed everytime. 

Is it possible to have the icon of a configuration specific to a state or not? 

1 comment
Vassiliy Kudryashov
Comment actions Permalink

I'm not sure if it's possible at all, because icon here is a marker of type, not state.

Actually we update icon according to its 'generic' state like temporary/stable and valid/invalid but I think you need some different 'state' to be displayed.

Try to override ConfigurationFactory.getIcon(RunConfiguration) in your factory, maybe it would help.


Please sign in to leave a comment.