Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Editor Initialization Error: "Site is incorrect"
Editor Initialization Error: "Site is incorrect" [message #157057] Fri, 14 November 2003 20:03 Go to next message
Eclipse UserFriend
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 20:14 Go to previous message
Jack Chi is currently offline Jack ChiFriend
Messages: 52
Registered: July 2009
Member
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
Previous Topic:how to compile simple servlet
Next Topic:Using an external diff tool
Goto Forum:
  


Current Time: Fri Dec 27 02:30:14 GMT 2024

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

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

Back to the top