Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e3 with e4 problems
e3 with e4 problems [message #1611430] Wed, 11 February 2015 11:04 Go to next message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
Hello,

I am working on an eclipse rcp application that was migrated from e3 to e4 by a previous team.

I am not sure whether they migrated properly.

I have a window (MWindow). That works fine. However if a certain event occurs (like adding children to an element container), the Workbench.getActiveWorkBenchWindow() method is triggered.

Since There is no workbenchWindow, one is created to work under the MWindow.

Now two things can happen:

1) I may get the following error:
org.eclipse.e4.core.di.InjectionException: Unable to process "WorkbenchWindow.model": no actual value was found for the argument "MTrimmedWindow".

2) If I turn my MWindow to an MTrimmedWindow just for working around the error, the layout of the window gets all messed up, and properties I defined in my xmi get overriden by the workbench window


Assuming I am writing an e4 application, should worbench window exists at all??? Is it deprecated?

Thanks
Re: e3 with e4 problems [message #1611469 is a reply to message #1611430] Wed, 11 February 2015 11:37 Go to previous messageGo to next message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
I understood that the project explorer is for some reason in e3, and it triggers the vent which messes everything up. Since in my current context I am in a new window, it tries to build e3 models under the new window....
Re: e3 with e4 problems [message #1611518 is a reply to message #1611469] Wed, 11 February 2015 12:19 Go to previous messageGo to next message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
actually it isn't just the project explorer. I close and open the window by calling setVisible(). WorbenchSourceProvider listens to that event and calls Workbench.CreateWorkBenchWindow....

How Do I rid myself from all these e3 problems????
Re: e3 with e4 problems [message #1611845 is a reply to message #1611518] Wed, 11 February 2015 16:53 Go to previous messageGo to next message
Eclipse UserFriend
The E3.x compat layer assumes that all MWindows belong to E3.x. See bug 404321.

Brian.
Re: e3 with e4 problems [message #1612963 is a reply to message #1611845] Thu, 12 February 2015 10:06 Go to previous messageGo to next message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
No Message Body
Re: e3 with e4 problems [message #1612964 is a reply to message #1611845] Thu, 12 February 2015 10:07 Go to previous message
Gal Rogozinski is currently offline Gal RogozinskiFriend
Messages: 40
Registered: June 2014
Member
Thanks,
Does anyone know if there are plans to make the project explorer not depend on eclipse 3?
I would rather migrate my app completely to e4 because it seems that there are plenty of bugs here.
I think the project explorer is what holding me back
Previous Topic:No merging of model fragments
Next Topic:configure compatibility layer's appModel
Goto Forum:
  


Current Time: Thu Mar 28 22:21:23 GMT 2024

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

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

Back to the top