|
|
|
|
Re: Editors + Perspectives [AGAIN] [message #436000 is a reply to message #435968] |
Mon, 29 August 2005 13:07 |
|
Daniel wrote:
> First thanks for the first answer
> but now im getting the following error
>
> ERROR:
> Unable to create this part due to an internal error. Reason for
> the failure: Editor initialization failed:
> empresa.CrearArticulo. Site is incorrect.
>
> WITH THE FOLLOWING DETAILS
> org.eclipse.ui.PartInitException: Editor initialization failed:
>
> empresa.CrearArticulo. Site is incorrect.
> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:780)
This seems to imply your editor part is not saving the editor site anywhere.
This is checked after editorPart.init(site, input) is called. The check is:
if (part.getSite() != site || part.getEditorSite() != site)
throw new PartInitException(...)
So why does your part not return it's site?
Later,
PW
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
Powered by
FUDForum. Page generated in 0.03681 seconds