spring-attic / spring-ide

Spring Development Environment for Eclipse
299 stars 126 forks source link

Empty label placeholder for perspectives icons in toolbar #341

Closed 4javier closed 5 years ago

4javier commented 5 years ago

Archlinux Gnome on Wayland eclipse.buildId=4.1.0.201812201400-RELEASE

"New perspective", "Java Perspective" and "Debug Perspective" toolbar icons have a blank space aside, that GTK_DEBUG identifies as a label. "Spring Perspective" on the contrary shows just a huge label with an empty icon space on its left. If I don't lock the toolbar, when I switch to Debug Perspective, additional icons make the toolbar span on two rows, due to the space wasted by perspectives' icons.

schermata del 2019-01-21 22-02-18

kdvolder commented 5 years ago

Looks like you are using an old workspace (STS 3) with STS 4. So the problem with the 'spring' perspective is to be expected. STS 4 doesn't have a spring perspectice anymore (you just work in the standard Java perspective).

When your workspace has a saved state that refers to things that no longer exist, you get these strange looking placeholders (eclipse puts something there even though it doesn't know how to properly display it).

I suggest you try in a 'clean' new workspace, and if you see anymore issues there, please report those.

I would also suggest that problems around icon/menus for 'New Perspective', 'Java Perspective' and 'Debug Perspective' are probably not problems specific to STS. These bits are part of the standard Eclipse platform. I bet they are reproducible in a vanilla Eclipse and, if so, they should be reported on the Eclipse bugzilla tracker. https://bugs.eclipse.org/bugs/

I'm closing this ticket for now they are supposedly not STS bugs. If you have a good reason to beleave this is something that does affects STS specifically, please explain why and we can reopen this ticket.

kdvolder commented 5 years ago

PS: If all you really want to achieve is get rid of the bothersome 'spring' perspective label/placeholder. Simply right click on it and select 'Close Perspective'. As I already mentioned, the perspective no longer exists so there's no harm in closing that placeholder.

4javier commented 5 years ago

Thanks for the explanation. I simply deleted Spring Perspective from Window→Preferences→General→Perspective available list and problem is gone. If that's not supported anymore I'm not going to file a bugtrack on a deprecated function. Thanks again.

kdvolder commented 5 years ago

No problem. I wasn't sure, but it sounded like you also thought there was an issue with the other perspective buttons (Java, Debug ...). In that case a bug with eclipse should be filed. But indeed if you only really wanted the spring perspective 'placeholder' fixed/gone then there's nothing else to do.

4javier commented 5 years ago

Removing Spring perspective from available list fixed the label issue for the other buttons too. Thanks again.

immagine