Is there an Eclipse plug-in which specifically supports editing Blueprint XML files? E.g. autocomplete reference ids, interface names, etc.
Eclipse's XML Editor helps with autocomplete of the Blueprint XML's tags along with help on available attributes for any tag. However, it cannot auto-complete interface names and reference Ids.
Related
When writting RCP Plug-ins it often happens that i need to declare and reference IDs in the extension specification (i.e. in the plugin.xml) and also in my java code. When I change one of those, I also have to change the duplicate.
I'm not sure if the problem is already that the same IDs must be used in the code and the plug-in declaration, but thats how the eclipse plug-in templates do it. If that's the root of the problem: how to prevent it?
If it's the correct way, to declare and reference IDs in the plugin.xml and in the java code: how to prevent that code dulication?
Also inside the plugin.xml there is something that may be regarded as duplication: ID definitions and the references pointing at them. If I change the definition, all references have to be updated. One could do that by simply replacing all text-occurence. But I normally edit the plugin.xml in the Plug-in Manifest Editor (i.e. in the forms, not in the plain text XML). Is there a way to refactor the IDs from inside the forms, without touching the plain text xml and without the fault prone approach of simple text replacement?
If you are referring to properties such as Bundle-SymbolicName then you should think of it as a package name, i.e something that shouldn't change at all.
Several of the other fields can very easily be externalized to strings, this is to simplify translations. See this help page. A wizard is available on the overview tab in the manifest editor.
I would like to create a custom context for templates in eclipse.
How I can do it?
It's an extension point provided by the platform, "org.eclipse.ui.editors.templates. You can check the org.eclipse.jdt.ui plugin.xml for an example of how the existing contexts are defined. If you want to show those templates during content assist, you'll also need to contribute an extension to org.eclipse.jdt.ui.javaCompletionProposalComputer to actually use your context rather than the ones that JDT itself defines. The JDT computer for templates only loads the templates from JDT's contexts.
I've noticed that the play plugin for eclipse adds a play editor,
along with several useful templates
I'd like to add my own ones, but I couldn't find the way to do it
I go to window, preferences, web, html files, templates and I can add
templates to eclipse html editor, but I couldn't find a similar option
for play editor
Check out the source code for the play plugin :
https://github.com/playframework/playclipse/tree/master/source/templates
You might want to fork it and add your templates to that file. That is what I would do. But I do not have enough Eclipse development knowledge to help you further than point the direction.
I had a lok at the source, it seems like the template editor tags are defined here
https://github.com/playframework/playclipse/blob/master/source/src/org/playframework/playclipse/editors/html/HTMLEditor.java
looks like there's no support for creating your own templates thru eclipse...
I am trying to develop a JSP application using Eclipse 3.6 Helios. Now I have defined a Tag Library Definition called DiceFunctions.tld inside the WEB-INF folder, and then declared this in a jsp page like this -
<%#taglib prefix="mine" uri="DiceFunctions"%>
When I write en EL function call inside that JSP, I don't get any auto-complete/intellisense for the prefix mine, which means if I add 10-20 tag libraries in a page, then I will have to remember each one of their names so that I can call their methods. Also the method signature's auto-complete isn't working properly, I mean when I type ${mine: } the IDE sometimes doesn't provide any suggestions for the functions defined inside that TLD. I need eclipse to provide intellisense for the tag library prefixes that I define and also for the functions defined within those TLDs. Also I couldn't find any way to create Tag Library Descriptor files (.tld) in eclipse. I had to create a general file and rename it so that it's extension becomes .tld.
Is there any way to modify eclipse to achieve those supports ? Is there a plugin which will be helpful ?
I have not used it myself but there is a plugin as part of the myeclipse suite which I have heard others rave about. They have a try-before-buy option. See http://www.myeclipseide.com/module-htmlpages-display-pid-11.html
This also looks promising: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor
In Eclipse, if I create a new Spring application context XML document when I press Ctrl+Space while inside the "class" attribute, Eclipse will let me browse through Classes that I can use, for example:
..and Eclipse will show java.lang.String, etc.
I've created my own XSD and now I'm making an XML file that references it. My XSD defines a "class" attribute just like the spring-beans.xsd does but I don't get that same type of auto-complete. Any ideas how I can get Eclipse to do that?
Unfortunately you will have to write your own Eclipse plugin in this case. Just try edit Spring context file in Eclipse without Spring IDE installed and you will see that code completion doesn't work anymore