JSP: own image/path validation

We use own tag libraries. How do I:

1) mark special parameter values as paths relative to this JSP, so IDEA can
validate the path?

2) mark special parameter values as image paths relative to this JSP, so
IDEA can validate the image size?

Thanks in advance.
Tom

6 comments
Comment actions Permalink

Is it not possible at the moment?

Tom

0
Comment actions Permalink

Tom,

it's not without getting your hands dirty in OpenApi.

0
Comment actions Permalink

Do you mean it is possible with the OpenAPI or just with the ClosedAPI(TM)?
If the first one, how difficult it is; where can I find more information,
e.g. an example? Thanks in advance.

Tom

0
Comment actions Permalink

Hi Tom,

unfortunately it is not currently possible without using closed API. Most of
the existing plugins do so :)
Typically you will employ PsiReferenceProvider, ReferenceProvidersRegistry,
and ElementFilter classes.
Take a look at StrutsReferenceProvider from Struts Assistant plugin sources
(bundled with IDEA SDK).
You can find additional information on IDEA references here:
http://www.jetbrains.com/idea/plugins/developing_custom_language_plugins.html

"Tom" <noname@jetbrains.com> wrote in message
news:eb6ojb$9hs$1@is.intellij.net...

Do you mean it is possible with the OpenAPI or just with the
ClosedAPI(TM)? If the first one, how difficult it is; where can I find
more information, e.g. an example? Thanks in advance.

>

Tom



0
Comment actions Permalink

Hello Tom,

Out of curiosity, what are you trying to accomplish?

Do you mean it is possible with the OpenAPI or just with the
ClosedAPI(TM)? If the first one, how difficult it is; where can I find
more information, e.g. an example? Thanks in advance.

Tom



0
Comment actions Permalink

Out of curiosity, what are you trying to accomplish?


I want to write own JSP tags, e.g. for creating "smart" links (when pointing
to the current page, then there will be no link and the name differently
rendered), which will be verified by IDEA at design-time.

Tom

0

Please sign in to leave a comment.