4

I'm using this version of Eclipse

Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600

on Mac Sierra. I just installed MacVim and now whenever I try and open a JSP file within Eclipse (using Shift ⇧+Command ⌘+R for example), the file is getting opened in MacVim instead of the Eclipse editor. I went to

General -> Editors -> File Assocations

and added "*.jsp", but even after restarting Eclipse, the JSP files still open in MacVim instead of the Eclipse editor.

How can I force my .jsp files to open in the Eclipse editor?

Dave
  • 15,639
  • 133
  • 442
  • 830

1 Answers1

4

Generally, what you've done it's the right way.

You may have to select the right default to make it work:

file associations

Then you can check if the associated editors appear on file open submenu:

submenu

As you can see, JBoss Tools JSP Editor is highlighted to represent the default.

If these steps aren't working in your environment, there's probably a sort of settings corruption (experienced very often).

What you can try:

  1. run eclipse -clean -refresh
  2. create a brand new Workspace
  3. make a new and clean eclipse installation

Make sure you have Eclipse WTP installed (or just install it):

enter image description here

P.S. use the update-site for your eclipse version (Mars), I'm on Neon.

Michele Mariotti
  • 7,372
  • 5
  • 41
  • 73
  • There's nothing in my "ASsociated editors" window. How do I get the JBoss JSP editor to appear there? Is that some kind of Eclipse plugin? – Dave Jan 25 '17 at 22:03
  • *JBoss JSP Editor* is from the plugin *JBoss Tools*, but you don't have to install/use it necessarily. The **required** plugin is *eclipse WTP*, see update – Michele Mariotti Jan 26 '17 at 08:07