Community
Participate
Working Groups
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
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.