I have configured a J2EE project into Eclipse. The source code is consisting of JSP as well as Java Files.
Is there any way so that we can view the design of the JSP?
I am using Eclipse 3.1.
goto window - preferences - general - editors - file associations
choose *.jsp
and in associated editors choose "web page editor" as the first default
You right click on the jsp file and then highlight "Open With" .You will get options like JSP Editor, Text editor, Web Page Editor. Please Select "Web Page Editor" option.
Right click to the empty area in code page > go to Open With section > select WindowBuilder Editor.
The Design Page will appear left-down. I solve it on Eclipse Neon.
Related
I want to edit SVG files in Eclipse. I don't know why it doesn't work, but Eclipse opens Sublime when I double click an SVG file. I tried to install the Docfacto plugin, but Eclipse stalls when I open or create an SVG file.
I remember that elsewhere it has worked. I don't need a graphical editor, just something compareble to XML or HTML, so with color coding and maybe matching tags.
How can I open and edit SVG files in Eclipse?
Go to Window->Preferences
Select General->Editors->File Associations
Look for *.svg in the top list.
You should be able to modify the default editor(s) in the bottom pane. Mine is set to "XML Editor".
It can be a little tricky if you don't know:
first define svg as an xml content type:
Preferences > General > Content Types
Select XML in the upper right box
Click the Add... button next to the bottom right box
Add *.svg and click OK
Then do what #Paul LeBeau proposed:
Preferences > General > Editors > File Associations
Select *.svg or add it if it is not yet in the list
Mark XML Editor as default in the bottom box
Apply and Close
Finally open a fresh svg file to test the default file association, if you open the same file as before eclipse will remember the previous (text) editor and you will see no syntax colouring. Or right click on a file and choose Open With > XML Editor to test if the colour coding works.
I just find out that windowbuilder comes with the original Eclipse package. There are project palette, application window, japplet, jdialog, jdialog, jframe, jinternalframe, jpanel, swing automatic databinding. Which one should I start with and how to learn more?
For Eclipse IDE, Window Builder is one more Editor for handling java source files.
So you should be able to open all java classes with it. Right click on any java class and select open with menu option. You should see "WindowBuilder Editor" as an option there.
Note that this editor may not show any content in Design or Bindings tab for any non-GUI classes (e.g. interfaces).
Eclipse Juno keeps opening my HTML files in a embedded web-browser, rather than in an embedded syntax-highlighting editor.
I have installed:
Web Page Editor
Eclipse Web Developer Tools
PyDev for Eclipse
Specifically see the screenshot of my install applications.
I need it to work with Django templates + any other Python templates with HTML + normal HTML+JS files.
How do I find this editor, and select it as default?
Select Window -> Preferences from the main Eclipse menu.
Select General -> Editors -> File Associations from the Preferences menu.
For .htm and .html, left click on the extension in the upper view. Left click on the Add button to the right of the lower view to add one or more HTML editors. Left click on your favorite HTML editor and left click on the Default button to make it the default editor.
If the extension you want is missing, left click on the Add button to the right of the upper view to add the extension.
If you want to add an HTML editor to Eclipse:
Go to Help -> Install New Software
Choose the site http://download.eclipse.org/releases/your_eclipse_version
Type the filter text Web Page Editor
There should be one result. Check off the box and press the Finish button.
Now you should have the option to choose the HTML editor when opening files by right-clicking, Open With -> HTML Editor.
If you want to always use the HTML editor to open HTML files then go to the Eclipse preferences -> General -> Editors -> File Associations. Select the extension up top (e.g. *.htm, *.html) then select the HTML editor in the bottom pane and press the Default button.
I had a similar problem.
Once I installed the html editor (thanks to CgodLEY), still my html files wouldnt show up with that editor.
Solution? Right click on the html/htm file, go to "open with" and select "HTML editor". Fortunately that solve everything...
For those still finding their way here, yes, do add an HTML editor to Eclipse as CgodLEY suggests, if you're having this problem. However, even if you already have an HTML editor in your Eclipse installation, consider installing CodeMix for a superlative HTML editing experience - take a look at the differences here.
Now, there's a Django-aware template editor available for free:
http://eclipse.kacprzak.org/
I installed it in Eclipse Kepler / Django 1.6, it's working fine for me.
Note: if you previously opened a specific .HTML file with some other editor, you need to go back to the project view, right click on the .HTML file, select 'open with...' and explicitly select Django editor.
To answer the opening of your question: Note that Eclipse will use the built-in web-browser to view html files if you are opening them outside of a project, as in "File->Open File ...", when that file isn't part of a project.
I just created a dummy project, and now the html files are correctly opened with the editor selected in my preferences. Success!
Nothing worked and I had begun getting an unrelated error on startup with a troubleshooting step requiring reinstall.
This time I downloaded Eclipse for Mobile Developers, and since then I have added my other packages and it's all working fine =).
None of the editors work the way I want them to though, however I have ended up with Django-Editor (which is slightly better than Aptana's one).
When I create a new file in Eclipse, there's a wide selection of different alternatives appearing in Eclipse.
However I am missing a couple of file which I need to open the "file create wizard" to create - JS files included.
How can I add my own file types as a default choice to appear in the "new files" menu?
Screenshot of the menu I am referring to:
Puuh - just when I had given up I accidentally found this:
Try this: Right click on Eclipse's
toolbar and choose "Customize this
perspective" option. You will see a
dialog box, and on "Shortcuts" tab
choose "New" from "Submenus:"
droplist.
Find "PHP" in the left pane and check
the checkbox next to it. It will
enable both "PHP File" and "PHP
Project" in "New" menu of your
perspective. You can do the same to
other file editors as well. (HTML,
CSS,....
http://dev.eclipse.org/newslists/news.eclipse.tools.pdt/msg00228.html
Yes, from the Eclipse's toolbar, right click > Customize perspective... > Menu Visibility > File > New > check and uncheck file types.
I'm using the HTML editor resp. the Structured Text Editor in Eclipse. It always opens in the tab Visual/Source:
Is it possible to tell Eclipse it should always open this editor in the Source tab?
You seem to use a plugin which associates with HTML files. For example Eclipse normally loads XML files for the first time with Design tab, and once you switch to source tab, it remembers the next time to open any document associated with XML Editor in Source tab. I don't know remembering is up to Eclipse or up to the plugin associated with the file, but a quick workaround would be:
to right click on the HTML file in package explorer > Open With > choose another editor (e.g. text editor). This only associates with current file. If you want to change file association for all HTMLs:
goto Preferences (under menu Window) > General > Editor > File Associations and change HTML file association there.
In Eclipse goto Windows-->Preferences-->Type Editors change the associated editors for File Types after that click on OK
You didn't say what version of Eclipse you're using. My HTML / Structured Text editors didn't have the tabs the same as yours. I'm using 3.4.2.
You can extend that editor by writing your own plug-in for Eclipse. Outside of the 'create a plug-in project' stuff, start by finding the extension points for the target editor. Then your plug-in can just register as an extension and add a new property instead of writing a whole editor. The property should show up on a preference page and then your code can take care of switching the active view of the editor to the 'Source' tab based on that property.
Right click the file and then "open with" and open it in another HTML or texteditor.
And then map this editor as the default editor for this filetype by right clicking the document and setting the file extension.
I always do this to get rid of the memory greedy WYSIWYG editors.