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

re: x-friends

Please ignore, I was thinking about buddy policy. buddy policy and x-friends both score high on the hack-o-meter


@Scott
I t
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.

Thanks

Wim


On Mon, Jan 16, 2012 at 6:21 PM, Remy Suen <remysuen@xxxxxxxxxx> wrote:

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


_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev