Content Assist exstension in JSP editor [message #529375] |
Sat, 24 April 2010 05:27  |
Eclipse User |
|
|
|
Hi all!
I'm working on a project JSP Tag Library project and I would be interested in extending JSP editor so that I provide some specific Content Assist on attribute completion.
So basically when user writes following
<mak:list from="
I would like to compute dynamically the right possibilities for the from attribute and provide them to the user.
I've seen that there have been some recent additions to the SSE about Content Assist stuff, but I'm not sure if and how I could use them to extend the JSP editor.
Any help would be very appreciated.
Cheers
Filip
|
|
|
|
|
Re: Content Assist exstension in JSP editor [message #529880 is a reply to message #529859] |
Tue, 27 April 2010 10:39  |
Eclipse User |
|
|
|
Filip Kis wrote on Tue, 27 April 2010 09:41 | However I've found that i would greatly benefit if I would be able to extend
org.eclipse.wst.xml.ui.internal.contentassist.AbstractXMLCom pletionProposalComputer
since I'm basically dealing with content assisting of attribute values. But the usage of that class is discouraged (since it's internal). Is there any way around this, because I don't feel like reimplementing the whole XML parsing logic.
| There was consideration made as to whether or not to make that class API when the new framework was built but we did not think there would be demand for it and in an effort to keep the public API small we opted to make it internal. If it is something you feel would be usefull to the community as a whole please open a Bugzilla enhancement request with votes and if there is enough demand for access to it we could work on making it API quality.
Filip Kis wrote on Tue, 27 April 2010 09:41 | Also, I'm doing this for a JSP Tag library and it would be great if I could access the taglib declarations (to know the prefix of my taglib) and maybe some other information (that didn't come to my mind yet). So any tip on how I could access this information in my content assist class would be helpful.
| All of the taglib code is also internal. You could take a look at the internal JSPTaglibCompletionProposalComputer to see how we generate suggestions based on taglibs. If the Taglib code is something you think would be useful API, you could open another enhancement request for that as well, noting which classes/methods would be useful to be API and why.
If you do open the enhancements please report their numbers back here for documentation purposes.
Blue Skies,
~Ian
|
|
|
Powered by
FUDForum. Page generated in 0.28611 seconds