Unknown window type

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Unknown window type

Postby hyshyshys » Wed Dec 17, 2008 3:47 am

Hi,

I created a SWT-JFace Java Project with a simple view. Every thing works well and I'm able to edit the view with the design page of the editor. But if I copy the view to a different project (an existing rcp project), I'm not able to edit it with the design page. I received the "Unknown window type" error.

I don't know where to look to remove this error. The plugin.xml seems to be good. The manifest file also.

Moreover, I have a old project containing views that I created with SWTBuilder 3 months ago, and when I tried to open the views, I also received the "Unknown window type" error. Note that I refactored the project since the creation of the project.

Thanks for the help.

Vincent
hyshyshys
 
Posts: 37
Joined: Thu Jul 03, 2008 12:27 pm

Re: Unknown window type

Postby Eric Clayberg » Wed Dec 17, 2008 5:16 am

I would start by looking at your Eclipse ".log" file.

If you are copying code to a new location, maybe you have a classpath problem of some sort.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Unknown window type

Postby hyshyshys » Wed Dec 17, 2008 6:05 am

Thank Eric,

1- I checked the Eclipse ".log" file in my .metadata folder and there is no entry related to Instantiations product or SWT Designer.

2- I also tried to copy classpath entries of my running project to the other project and it doesn't work.

Any other idea?

Thanks

Vincent
hyshyshys
 
Posts: 37
Joined: Thu Jul 03, 2008 12:27 pm

Re: Unknown window type

Postby Eric Clayberg » Wed Dec 17, 2008 6:33 am

We would need a test case or some hint from your log.

An "Unknown Window Type" issue will almost always show up in the log.

Have you reviewed the FAQ?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Unknown window type

Postby hyshyshys » Wed Dec 17, 2008 6:51 am

Hi Eric,

Which log file are you talking about?

I found a solution.

I renamed the com/swtdesigner/ResourceManager.java and SWTResourceManager.java files to ResourceManager2.java and SWTResourceManager2.java using the refactoring tool of Eclipse. Then I made the inverse. I renamed the files to ResourceManager.java and SWTResourceManager.java. After doing this, it works well.

So I compared the files before and after with a comparison tool and the only difference are the cariage return mode and line feed mode (CR\LF) of the files. All the rest of the project is exactly the same.

If you want, I can send you the contents of the files before and after. It looks like a strange behavior.

VIncent
hyshyshys
 
Posts: 37
Joined: Thu Jul 03, 2008 12:27 pm

Re: Unknown window type

Postby Eric Clayberg » Wed Dec 17, 2008 7:35 am

hyshyshys wrote:Which log file are you talking about?

The standard Eclipse ".log" file.

hyshyshys wrote:I renamed the com/swtdesigner/ResourceManager.java and SWTResourceManager.java files to ResourceManager2.java and SWTResourceManager2.java using the refactoring tool of Eclipse.

That could definitely make it not work. Those classes should not be renamed.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests