Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete an Eclipse perspective for a plugin I uninstalled?

Tags:

eclipse

I was evaluating the Enterprise IDE plugin for Eclipse, and ultimately decided not to purchase it. After I uninstalled the plugin, I was left with a bunch of perspective buttons (the ones in the far upper-right-hand corner) which I can't remove. How do I get rid of the manually, without nuking my workspace?

Edit: To be clear, right-clicking and going to "close" does nothing. Not even an error message.

like image 531
Nik Reiman Avatar asked May 21 '09 10:05

Nik Reiman


People also ask

How do I remove unwanted plugins from Eclipse?

To remove a plug-in you need to remove the JAR file from the "plugins" directory, located in your Eclipse installation directory. Under Indigo/3.7 the "Help > About Eclipse > Installation Details > Installed Software tab > Uninstall..." option works.

How do I Uninstall PyDev from Eclipse?

To uninstall you should either go on and remove the org. python. pydev* from eclipse/plugins and eclipse/features or you can go to help > software updates > manage configuration, choose the PyDev plugin and disable it (after that, to completely remove it, you must restart Eclipse and only then select it for uninstall).

How do I remove SonarLint plugin from STS?

Open the SonarLint Issues view. Select all. (Ctrl-A is your friend). Right click and choose Delete.


2 Answers

Click Window ► Preferences ► General ► Perspectives. Select the perspective you want to delete and remove it. Some of them are unremovable. I don't know why.

like image 184
Eightball Avatar answered Oct 01 '22 03:10

Eightball


How did you uninstall that plugin ?

As Daniel details in his answer, Help-> Install new software -> click on "Whats already installed?" is the right way to uninstall a plugin, and should get rid of the perspective as well.

If the plugin was installed in the dropins directory or in <eclipse>/plugins and <eclipse>/features, did you delete all directories/jar in <eclipse>/features, because if that plugin was packaged as a product, it did define in the product extension point a plugin_customization.ini which can indicate some perspective buttons.

If not, the only solution is to have a careful look at your workspace metadata, look for all recent file related to that plugin and remove them.
Make a copy of your workspace first though.

As an example of such a careful look at your workspace metadata", user900975 points out in his answer the <your workspace folder>/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml file, with <perspectives> element and <perspective> child elements that you can remove.


Note: Eightball mentions in his answer (upvoted) the possibility to list and delete a perspective.

delete perspective

Since he mentions "Some of them are un-removable. I don,t know why", my original answer above still stands.


Alexandros adds in the comments:

This helped me fix this, but in my case the file I had to edit while Eclipse was closed was:

.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi 
like image 37
VonC Avatar answered Oct 01 '22 05:10

VonC