0

After several test I found that this that I did previously in another project is not working. In fact, a project I worked on a few months ago shows me this error of not showing the design tab.

  • Create SWT/JFace Java Project
  • Add Swing designer->JFrame
  • The desing tab is visible
  • Remove project from workspace
  • Import the project
  • The desing tab is not available

I am using:

Version: 2020-12 (4.18.0) Build id: 20201210-1552

Some screenshots of what I said before.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

¿Is this a bug or I am doing some wrong? A similar problem exists with WindowBuilder (08/2020-09/2020) but were fixed in previous version according comments. Thanks

EDIT: Solved

EverCpp
  • 53
  • 5
  • 1
    Just a guess, but try checking the projects facets (right click on project -> configure facets). – Scary Wombat Nov 26 '21 at 01:21
  • If you are using Java 16 or later then it is [the problem](https://stackoverflow.com/q/67394509/2670892) – greg-449 Nov 26 '21 at 08:08
  • 1
    According to the screenshot, you opened `MainFraime.java` with the regular Java editor instead of the WindowBuilder editor: https://help.eclipse.org/latest/topic/org.eclipse.wb.doc.user/html/features/editing_existing_window.html – howlger Nov 26 '21 at 09:02
  • @howlger I have not that option (https://imgur.com/a/RKfcJ1T). While the project is not deleted from workspace I can closed it and open it (just with double clic) and the design tab is visible. But once I remove and reload the error appear – EverCpp Nov 26 '21 at 19:28
  • @ScaryWombat I have not that option (https://imgur.com/a/g9A8tkA) – EverCpp Nov 26 '21 at 19:31
  • 1
    Right-click the `MainFraime.java` file and choose _Open With > WindowBuilder Editor_. – howlger Nov 26 '21 at 22:06

1 Answers1

2

According to the screenshot, you opened the MainFraime.java file with the regular Java editor instead of the WindowBuilder editor.

Right-click the file and choose Open With > WindowBuilder Editor (see WindowBuilder Pro User Guide - Editing Existing Windows).

Please note, since Eclipse 2020-12 (4.18) Open With > ... no longer remembers the chosen editor to open that file next time. This means double-clicking a file always opens the file with the default editor which is for *.java files the regular Java editor, not the WindowBuilder editor.

howlger
  • 31,050
  • 11
  • 59
  • 99