Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4 View on compatibility layer in Luna
e4 View on compatibility layer in Luna [message #1312418] Thu, 24 April 2014 09:24 Go to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

I am currently evaluating the new feature in Luna allowing to register a
native e4 view using the e3 extension point org.eclipse.ui.views
First thanks for implementing it (Eric?), it is a nice way of soft
migrating existing RCP applications.
I am currently looking for the solution to a missing piece.
If I create a e4 view and register it, I can open it using the e3 API:

IViewPart showView =
showPlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(viewId);

Now as a follow-up step, I would like to put something into the context
of this newly created view (the input of the view). The question is, how
to access this context. The following call returns an anonymous context,
which is not related to the context of the view, it has no parent and no
children:

IEclipseContext context = (IEclipseContext)
showView.getViewSite().getService(IEclipseContext.class);

The implementation class of object showView is E4PartWrapper, which
holds the related MPart as a field, which would allow to access the
context. But obviously IViewPart, as e3 API does not provide access to
it (not even E4PartWrapper).

To sum up: The new extension point provides a good way to access e3
applications from within a e4 view. I think what is currently missing is
a good way to access the e4 API from the e3 world. I think as a quick
fix, one "non-API" method would be enough to at least enable eraly adopters.

What do you think?

Best regards

Jonas
Re: e4 View on compatibility layer in Luna [message #1313339 is a reply to message #1312418] Thu, 24 April 2014 21:02 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Hi Jonas,

Doesn't DI work for this part?

Cheers,

Wim
Re: e4 View on compatibility layer in Luna [message #1318188 is a reply to message #1313339] Sun, 27 April 2014 14:03 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

yes it does...
Cheers

jonas

Am 24.04.2014 23:02, schrieb Wim Jongman:
> Hi Jonas,
>
> Doesn't DI work for this part?
> Cheers,
>
> Wim
Previous Topic:How to subscribe action.
Next Topic:Eclipse 4 RCP application memory leakage
Goto Forum:
  


Current Time: Thu Apr 18 16:01:03 GMT 2024

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

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

Back to the top