Editor Initialization Error: "Site is incorrect" [message #157057] |
Fri, 14 November 2003 15:03  |
Eclipse User |
|
|
|
Originally posted by: mcfaddin.us.ibm.com
I have written a custom editor for eclipse. After building the project and
installing the jar file and plugin.xml into the environment, i.e. in
eclipse/plugins, the system tries to fire my editor when I click on a file
type corresponding to the editor's "extensions" attribute.
The system invokes the editor's constructor and init() method correctly.
It never seems to get to the instantiation of the editor's contributor
object.
However, it then reports an error "Problems Opening Editor" via a popup
alert. The content of the alert is "Cannot open default editor on
<filename is printed here>. Editor initialization failed: <editor id is
printed here>. Site is incorrect"
Does anyone know what "Site is incorrect means"?
Thanks!
|
|
|
Re: Editor Initialization Error: "Site is incorrect" [message #157075 is a reply to message #157057] |
Fri, 14 November 2003 15:14  |
Eclipse User |
|
|
|
Scott McFaddin wrote:
> I have written a custom editor for eclipse. After building the project and
> installing the jar file and plugin.xml into the environment, i.e. in
> eclipse/plugins, the system tries to fire my editor when I click on a file
> type corresponding to the editor's "extensions" attribute.
>
> The system invokes the editor's constructor and init() method correctly.
> It never seems to get to the instantiation of the editor's contributor
> object.
>
> However, it then reports an error "Problems Opening Editor" via a popup
> alert. The content of the alert is "Cannot open default editor on
> <filename is printed here>. Editor initialization failed: <editor id is
> printed here>. Site is incorrect"
>
> Does anyone know what "Site is incorrect means"?
>
> Thanks!
>
Scott,
It is my init mothod.
public void init(IEditorSite site, IEditorInput input)
throws PartInitException {
// TODO Auto-generated method stub
//this.site = site;.
setSite(site);
setInput(input);
}
see if it helps anyway.
Jack
|
|
|
Powered by
FUDForum. Page generated in 0.03840 seconds