Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsAdding a command to multiple views
https://www.eclipse.org/forums/index.php/mv/msg/110160/336555/#msg_336555
interface called RefreshablePart:
This works fine -- except that the Refresh icon appears disabled unless
the view is in focus, even though it still is clickable and works as
expected (clicking the icon makes the view receive focus).
One workaround is to specify the same icon as a disabledIcon. This is not
a perfect solution as there are still some subtle differences (mouse
over), and of course this causes issues if I actually wanted to disable
the command under certain circumstances.
But perhaps there is a better way to approach this?]]>Eric Jain2009-06-22T18:20:20-00:00Re: Adding a command to multiple views
https://www.eclipse.org/forums/index.php/mv/msg/110160/336563/#msg_336563
active when the activePart meets your requirements.
But you're going about it the correct way, since refresh is a command
that is implemented on a per-part basis.