[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Actionist re-use

On Sun, Jan 15, 2012 at 6:04 PM, Wim Jongman <wim.jongman@xxxxxxxxx> wrote:
> 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.

Regards,
Remy

----------
Remy Suen
Eclipse Platform/UI Committer
IBM Ottawa
1-613-356-5162