Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Extending swt-shell in another plugin
Extending swt-shell in another plugin [message #908467] Wed, 05 September 2012 12:36 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 254
Registered: July 2009
Location: Germany
Senior Member
Hi to anyone,

I have the following scenario:

plugin A - provides Shell
plugin B depends A - extends shell by adding button to add another command

How can I implement this feature?
Can I extend the shell with som mechanisms of application model or do I have to implement an extension point again?

Any help welcome

Best regards
Re: Extending swt-shell in another plugin [message #909561 is a reply to message #908467] Fri, 07 September 2012 10:32 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

The question is a bit unclear.
Re: Extending swt-shell in another plugin [message #909793 is a reply to message #909561] Fri, 07 September 2012 20:07 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 254
Registered: July 2009
Location: Germany
Senior Member
Hi Sopot,

thanks for your answer, I'll try it to ask in a more concrete way:

I have one plugin A, were I have a shell to edit users.
I have another plugin B, which should add a functionality to this user-shell, in this case a button were I can jump to another shell, were I can edit preferences of the currently selected user. This second shell is part of plugin B, but should not be coupled to plugin A.

I want the button only to be shown, when plugin B is installed otherwise the button should be not visible.

How do I implement this scenario with E4?

In E3.x I would have defined an extension point in plugin A for example. In plugin B I would implement this extension point. But I think in e4 extension points shall be replaced by the model and so my question is: Is there any technique in application model which can replace the extension points in this case?



Best regards
Markus
Re: Extending swt-shell in another plugin [message #909809 is a reply to message #909793] Fri, 07 September 2012 20:56 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5463
Registered: July 2009
Senior Member
No extension points at your own code is fine. What is replaced in e4 are
the many many extension points we had in e3 (views, menus, commands, ...).

There's nothing wrong we creating them for your own extension story.

Tom

Am 07.09.12 22:07, schrieb Markus Oley:
> Hi Sopot,
>
> thanks for your answer, I'll try it to ask in a more concrete way:
>
> I have one plugin A, were I have a shell to edit users. I have another
> plugin B, which should add a functionality to this user-shell, in this
> case a button were I can jump to another shell, were I can edit
> preferences of the currently selected user. This second shell is part of
> plugin B, but should not be coupled to plugin A.
>
> I want the button only to be shown, when plugin B is installed otherwise
> the button should be not visible.
>
> How do I implement this scenario with E4?
> In E3.x I would have defined an extension point in plugin A for example.
> In plugin B I would implement this extension point. But I think in e4
> extension points shall be replaced by the model and so my question is:
> Is there any technique in application model which can replace the
> extension points in this case?
>
>
>
> Best regards Markus
Re: Extending swt-shell in another plugin [message #909822 is a reply to message #909809] Fri, 07 September 2012 21:34 Go to previous message
Markus Oley is currently offline Markus OleyFriend
Messages: 254
Registered: July 2009
Location: Germany
Senior Member
Hi Tom,

thanks for your answer, seems I misunderstood this whole thing.
So I will make an extension point for this

Best regards
Markus
Previous Topic:Org.eclipse.equinox.launcher plug in error
Next Topic:E4 Test Suites
Goto Forum:
  


Current Time: Mon Nov 24 08:38:38 GMT 2014

Powered by FUDForum. Page generated in 0.12089 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software