Skip to main content

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

@Remy
Aaaaight!!! Why did I not think of that?!? 

I wondered if there was a way to resolve an action like you can with a command. I got so strangled in that thought that I did not think of your idea. Thanks!!

@Scott
I think x-friends is for referring back to the calling bundle which is not allowed normally in OSGi. It is primarily used for Java libraries that think there is only one classpath (log4j).  

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



Back to the top