Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Contributing UI Components from other Plug-ins
Contributing UI Components from other Plug-ins [message #480890] Tue, 18 August 2009 18:57 Go to next message
Chris is currently offline ChrisFriend
Messages: 97
Registered: July 2009
Member
If an Application.xmi file in one plug-in specifies the applications parts
(views, menus, handlers, etc), then how will other plug-ins contribute
menus/menu items and handlers to an e4 application? Is it possible for
other plug-ins to contribute these things now (similar to the commands
framework in the 3.x branch), or is this still a work in progress? If it
is still being worked on, any idea when something will be available?

Thanks,
Chris
Re: Contributing UI Components from other Plug-ins [message #480897 is a reply to message #480890] Tue, 18 August 2009 19:39 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Currently the RCP product would create the Application.xmi and define references to the parts. Your main plugin would reference other plugin classes using the platform:/plugin/<plugin.id>/com.example.whatever.MyClass syntax.

The other alternative is to use the org.eclipse.e4.workbench.parts extension point. That allows you to create contributed parts using an extension point. But support for menus using extension points is currently only available in the legacy compatibility layer.

An e4 RCP app is still a work in progress, and ideas and contributions are welcome.

PW


Re: Contributing UI Components from other Plug-ins [message #562458 is a reply to message #480890] Tue, 18 August 2009 19:39 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Currently the RCP product would create the Application.xmi and define references to the parts. Your main plugin would reference other plugin classes using the platform:/plugin/<plugin.id>/com.example.whatever.MyClass syntax.

The other alternative is to use the org.eclipse.e4.workbench.parts extension point. That allows you to create contributed parts using an extension point. But support for menus using extension points is currently only available in the legacy compatibility layer.

An e4 RCP app is still a work in progress, and ideas and contributions are welcome.

PW


Previous Topic:Contributing UI Components from other Plug-ins
Next Topic:XWT and GUI related classes in a third-party jar
Goto Forum:
  


Current Time: Sun Dec 21 01:09:23 GMT 2014

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

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