Run on Server\" in Eclipse. How do I hide it?Create your plug-in, then define your activities pattern to hide the context menus. Then export your plug-in into yo" />
开发者

Hide "Run on Server" Feature in Eclipse

开发者 https://www.devze.com 2023-03-13 19:23 出处:网络
I never use \"Run As开发者_开发百科 -> Run on Server\" in Eclipse. How do I hide it?Create your plug-in, then define your activities pattern to hide the context menus. Then export your plug-in into yo

I never use "Run As开发者_开发百科 -> Run on Server" in Eclipse. How do I hide it?


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.


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.'

    Hide "Run on Server" Feature in 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.


You need to remove server features and plugins. Cant find any setting/preference interface on eclipse? Right. Try this, it worked on my setup;

  • Go to .../Eclipse-xxx/features/, find the folders starting with org.eclipse.wst.server...
  • Create a new folder named "server-stuff" in in the folder "features"
  • Move org.eclipse.wst.server.... to "server-stuff" folder
  • Go to .../Eclipse-xxx/plugins/, find the jar files starting with org.eclipse.wst.server...
  • Create a new folder named "server-stuff" in the folder "plugins"
  • Move org.eclipse.wst.server... to "server-stuff"

Now restart eclipse. All the damn "server" features gone. If you encounter any unexpected result, just back-up with "server-stuff" folders.

0

精彩评论

暂无评论...
验证码 换一张
取 消