JBoss Tools - Disabling Visual Editor - eclipse

I just added JBoss tools and I like a lot of what I get from it. However, I noticed that my .xhtml files are loading a /lot/ slower (on the order of several seconds) than before I installed JBoss tools. I'm willing to accept some slowdown (there's always overhead from using tooling sitting ontop of Eclipse) but this is a pretty long wait. I suspect it has to do with the visual editor that JBoss has added for .xhtml. I am using windows 64 bit and I can't use this editor. I've also tried following the advice at this link
http://docs.jboss.org/tools/whatsnew/vpe/vpe-news-3.3.0.M2.html
and adding -Dorg.jboss.tools.vpe.loadxulrunner=false to the eclipse.ini but I didn't notice any speedups. I also uninstalled the plugin for the JBoss visual editor and didn't see any results. After uninstalling the plugin the visual/source, source, and preview tabs are still at the bottom of the .xhtml editor, so maybe I uninstalled the wrong one?
I'm using Eclipse for Java EE Juno service release 1 Build id: 20120920-0800. I have the CDI, dynamic web module, Java, javascript, JSF 2.1, JAX-RS 1.1 JBoss Maven Integration 1.0 and JPA 2.0 facets installed on this project.

It is hard to say what you just uninstalled.
If you want just uninstall visual editor you can do such thing:
Just install onece again Eclipse and when you install JBoss Tools just doesn't select visual editor
Try to unistall visual editor. I think (but I never tested it) you should remove from plugins and features directoris wich starts from org.jboss.tools.vpe
I don't know if there can be some problems with dependencies and so on - you should make backup of Eclipse directory before making any changes.
Maybe it will be sufficient just open the files with other editor:
You can just open single file using other editor, just click in Package explorer view on the file with right click and choose Open with... menu - then you can open the file with for example HTML editor:
You can change the default editor for all files by open Window->Preferences menu and find Find associations position. There should be *.xhtml extensions - choose it and change the default editor.

Related

Installed MacVim, and now Eclipse is opening JSP files in it when i don't want it to

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?
Generally, what you've done it's the right way.
You may have to select the right default to make it work:
Then you can check if the associated editors appear on file open 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:
run eclipse -clean -refresh
create a brand new Workspace
make a new and clean eclipse installation
Make sure you have Eclipse WTP installed (or just install it):
P.S. use the update-site for your eclipse version (Mars), I'm on Neon.

"Visual Page Editor has experimental support for Windows 64-bit"

I am using Eclipse Luna and JBoss AS 7. When I create a JSP page in Eclipse, then I get the below error:
I changed my server to Tomcat 7, still I am getting the same error.
How is this caused and how can I solve it?
That visual page editor is part of JBoss Tools plugin which you installed in order to be able to integrate and use JBoss AS server in Eclipse.
You don't need it. It's not only experimental, but generally visual page editors just doesn't work when you want to end up with quality code. Just click the red cross at the right bottom corner and then click the Source tab and finally close the Palette tab. This is fortunately an one-time thing. It will stay away when you create new JSP pages.
It's just the worst part of otherwise very great JBoss Tools plugin.
If you want to use a visual editor, I would recommend the XULRunner JBoss tool.
Link to the eclipse update site:
http://download.jboss.org/jbosstools/updates/integration/luna/core/xulrunner/xulrunner-1.9.2_win64-2014-08-22_09-55-58-B4/

Eclipse Juno no JSP in Dynamic Web Project (but everything else is fine)

The short question, is when creating dynamic web project (1.6 jdk) I can see all file types to create but there is no option for jsp. To add to that when I check file associations there is no JSP editor to select from.
A slightly longer version is I simply want to edit JSP files, I have Juno EE version installed and it says web tools platform is installed and everything works just fine.
However while everything works, there was no *.jsp in file associations and on adding it there was no JSP editor in the list. This is an out of the box Juno EE.
So I checked installed plugins and it tells me that web tools is installed, there is an icon and a load of plugins. They are all listed under Java EE in the plugin/installation list. I even tried installing just 'java web develop tools' which lists as 'tools for working with jsp' but when I do that I get ""Eclipse Java Web Developer Tools" will be ignored because it is already installed." however I cannot uninstall it because it's part of Java EE eclipse platform. I have no other plugins installed that might have broken this, however it has taken some time to get all the settings good so I'd rather not install it all again.
So I tried to install the full WTP by hand and it said some things were already installed, but it installed others. However, still no JSP editor. Hence why I tried a dynamic web project to see if I could create JSP and it wasn't listed.
So, eclipse base install has absolutely everything (xml, html editor, java editor, all the tools) but just not JSP.
My JDK is fine as dynamic web project is not created unless you have a valid 1.6 or above.
Anyone help?
It seems your missing Eclipse web developer tools and Eclipse java web developer tools.
Help>Install new software>http://download.eclipse.org/releases/juno, select appropriate items under Web,XML,Java EE
Hope this helps
In Eclipse Juno, select File/New/Other, then type in jsp in the wizard field. Select jsp file or jsp tag and there you go. Hope that helps.
Try to install Eclipse with Java EE developer.It should work.
You can go to Eclipse Market place and search for "Java EE Developer tool". On clicking it you should be able to see if your Web developer tool is selected or not. Please select that option and your issue will be resolved.
Check your path. Make sure it is pointing to at least a 1.6 version of Java. Restart Eclipse. That fixed it for me.
If you have installed every thing proper and still it is not showing JSP option while creating new .jsp file then click to the web icon on top right corner of eclipse. If it doesn't work then you need to install updated version of eclipse.
I also faced the same problem; I looked through the "Web,XML,Java EE..." installables available at under Kepler downloads:
and that brought me the New->'JSP File' context menu item.

JSP editor for eclipse, does it exist?

I noticed that my Eclipse does not include JSP Editor. Does standard JSP editor exist for Eclipse and if so, where can one download it from?
The JavaEE version of Eclipse has full JSP support. The standard java development version doesn't.
Alternatively, you should be able to install the WebTools plugin(s) into an existing Eclipse, that should give you JSP support also.
I had this same problem!
I resolved it by switching my eclipse perspective to JAVA EE perspective.
Go to help -> Install New Software and install webtool.
And for whomever that still not seeing the editor, set JSP editor to be the default editor for JSP files in this way
Having the same problem, I researched this and I found many solutions. After installing the Web Tool PLug-Ins, I was able to get the .jsp editor to work. Its important to know that you must close your .jsp files then reopen it, or you may be convinced that the solution didn't work. You can confirm that the Web Tool Install worked if you go to the following:
Window -> Preferences
In the list of options, you will see General. Expand that menu.
Expand the "Editors" menu
Click on the option "File Assocations"
There will be a "file type" (I'm using Keleper) with a list of different file types.
In this list, select .jsp.
In this list you should see a list of editors. Select JSP editor. Then click OK.
This is something I discovered when trying to get mine to work.
Go To Preference->General->Editors->File Associations
Check editor for *.jsp type.
If it's not present, add one.
If it's Class file viewer, then remove it.
Worked for me.
To install from within IDE for newer Eclipse clients:
Help->Eclipse Marketplace
Search for "Eclipse Java EE Developer Tools". Install.

Eclipse web.xml editor

I have Helios Service Release 2 installed with WTP tools. I created a simple dynamic web project. When I open web.xml, which opens with default XML editor, it shows only two tabs:Design(Standard XML tab) & Source.
When I worked with Rational Software Architect in past, it opened web.xml with tabs like 'Servlet', 'References' so on to let you easily edit various parts of web.xml in visual point & click manner.
Is this possible with Eclipse?
btw, I tried 'Open with' menu option but couldn't find appropriate editor for web.xml
Thanks
You can install JBoss tools through Eclipse marketplace to have a complete web.xml editor. You don't have to install all the plugins. In my case I just installed the "Context and Dependency Injection Tools"
Eclipse currently does not have this functionality. IBM did not donate this part of the tooling from Rational Software Artifact when it seeded Eclipse Web Tools Project.
Note that there is an effort that is just getting started to implement these editors at Eclipse, but you are not going to be able to use the fruit of that work until Juno release in the Summer of 2012.
In the meantime, you will need to use plain XML editor or seek third-party solutions, such as MyEclipse. Note that MyEclipse is not compatible with Eclipse WTP. It is separate tooling stack for web app development.