| Eclipse 3.x RCP application editor [message #870291] |
Mon, 07 May 2012 11:14  |
Rajesh KP Messages: 13 Registered: May 2012 |
Junior Member |
|
|
I've a working Eclipse 3.x RCP application in which I've an editor which creates the EditorSite as below -
......
EditorSite editorSite = new EditorSite(
editorRef,
editor,
(WorkbenchPage) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(),
(EditorDescriptor) ed );
.......
Since the EditorSite signature has changed in Eclipse 4.x I got the below compilation error -
"The type org.eclipse.e4.ui.model.application.ui.basic.MPart cannot be resolved. It is indirectly referenced from required .class files"
Isn't the 3.x RCP application expected to work as it is in e4 without any code changes? What am I missing? Some dependencies?
Thanks
-KPRajesh
-KPRajesh
|
|
|
|
|
| Re: Eclipse 3.x RCP application editor [message #870317 is a reply to message #870291] |
Mon, 07 May 2012 12:02  |
Thomas Schindl Messages: 4462 Registered: July 2009 |
Senior Member |
|
|
Just saw this you are never supposed to create an EditorSite instance
yourself this code is completely wrong.
What is the reason you are doing this! It can't never work and could be
haven been broken in any Eclipse 3.x release not only 4.x.
Tom
Am 07.05.12 17:14, schrieb Rajesh KP:
> I've a working Eclipse 3.x RCP application in which I've an editor which
> creates the EditorSite as below -
> .....
> EditorSite editorSite = new EditorSite(
> editorRef,
> editor,
> (WorkbenchPage)
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(),
> (EditorDescriptor) ed );
> ......
>
> Since the EditorSite signature has changed in Eclipse 4.x I got the
> below compilation error - "The type
> org.eclipse.e4.ui.model.application.ui.basic.MPart cannot be resolved.
> It is indirectly referenced from required .class files"
>
> Isn't the 3.x RCP application expected to work as it is in e4 without
> any code changes? What am I missing? Some dependencies?
>
>
> Thanks
> -KPRajesh
>
|
|
|
Powered by
FUDForum. Page generated in 0.01573 seconds