Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide "Run on Server" Feature in Eclipse

Tags:

eclipse

I never use "Run As -> Run on Server" in Eclipse. How do I hide it?

like image 717
amaran Avatar asked Nov 04 '22 20:11

amaran


2 Answers

Create your plug-in, then define your activities pattern to hide the context menus. Then export your plug-in into your eclipse, restart eclipse.

See this blog post how to find the id of context menu and use activities extension.

like image 160
Kane Avatar answered Nov 15 '22 01:11

Kane


Straight forward easy 2 sec solution:

  • Run it once with that option, and if it's not meant to run on a server, then you'll get a pop up like the below saying 'The selection did not contain any resources that can run on a server.' run-on-server-pop-up-eclipse
  • Click ok.
  • Now when you go to file --> right click, you'll not see that option anymore.

So the easiest solution to remove it is to run it with that option once.

I have also been frustrated with this and wanted to remove that option. I came looking for a viable/comfortable/doable answer, but couldn't find it. After months, i have found a easier solution for this. It's pretty straight forward as given above.

like image 22
mtk Avatar answered Nov 15 '22 00:11

mtk