Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361374 - After renaming the project windowBuilder is not the default editor anymore
Summary: After renaming the project windowBuilder is not the default editor anymore
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 07:10 EDT by Alessio Pollero CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessio Pollero CLA 2011-10-19 07:10:03 EDT
Build Identifier: 20110301-1815

After renaming a project the class that i've generated with WindowBuilder and that   previously(before rename the project) were being opened by default with WindowBuilder Editor, now are opened with standard java text editor.  
This cause that i can't open design view as indicated in Bug 354915.

The real problem isn't that i can't open design view, but that the default editor for the windowBuilder generated classes is now Java Editor and not WindowBuilder Editor.

You can still open the classes with WindowBuilder editor clicking on it in Package Explorer and selecting Open With ---> WindowBuilder Editor.

Reproducible: Always

Steps to Reproduce:
1. Create a project and create a Window Builder "Application Winddow" inside it
2. Open the generated class with double click on it in package explorer and you will see that the default editor for this class is WindowBuilder Editor
3. Rename the project with F2 on the report folder in Package Explorer
4. Try to open again the WindowBuilder Application Window by double click in Package Explorer
Comment 1 Eric Clayberg CLA 2011-10-19 09:31:49 EDT
This is expected Eclipse behavior (e.g., not a bug) and nothing to do with WindowBuilder. Eclipse remembers the last editor used for a file, but renaming the project makes all the files new from the Eclipse point of view, and they will all use their default editors (the Java Editor in the case of a Java class). You need to re-open each class using the "Open With > WindowBuilder Editor" command to reset the editor. Eclipse will remember that choice going forward.