[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ecf-dev] Actionist re-use
- From: Wim Jongman <wim.jongman@xxxxxxxxx>
- Date: Mon, 16 Jan 2012 22:41:21 +0100
- Delivered-to: firstname.lastname@example.org
Please ignore, I was thinking about buddy policy. buddy policy and x-friends both score high on the hack-o-meter
I think ECF should not worry so much over using its own internals and only give a warning if internal classes are used. Anyway, I am going to use Remy's suggestion and refactor the action into a command so that is just an academic discussion.
On Sun, Jan 15, 2012 at 6:04 PM, Wim Jongman <wim.jongman@xxxxxxxxx
> What I want to do is to provide a link in the empty chats view to the open provider action.
> Any ideas how to fix this without duplicating the action's code?
If you rewrite the action as a command and handler then you can just have your code invoke the handler through the IHandlerService. You'd have to use some "magic string" but there shouldn't be any code duplication.
Eclipse Platform/UI Committer