|
Re: Code Hinting on JSP with Custom Tags (taglib) [message #675641 is a reply to message #675432] |
Wed, 01 June 2011 04:41 |
|
On 5/31/2011 10:08 AM, NemoStein wrote:
> I'm developing a JSP tag that have an attribute that works with a set of
> possible values.
> I don't need to enforce this values, but I would like the IDE do some
> code hinting or auto-completion.
>
> Suppose a tag like this:
> <mytag:sometag someattribute="value" />
>
> The attribute someattribute can have any value (remember, I don't need
> to enforce), but I would like it to suggest you the following list of
> values: ValueA, ValueB and ValueC
>
> Is there a way to do it?
Not without writing plug-ins. They would need to make judicious use of
the org.eclipse.wst.xml.core.modelQueryExtensions extension point.
Unless adding the values to the JSP->Editor->Templates preference page
in the JSP Attribute Value context is good enough.
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03561 seconds