Running Java code for Facet validation [message #217745] |
Wed, 16 July 2008 17:03  |
Eclipse User |
|
|
|
Originally posted by: fake.thefakers.com
Hello, thank you for answering my previous facet questions, I have got one
more.
I would like to run some Java code when my facet is selected in the
FacetSelectionDialog. This code would run some validation and would cause
the FacetSelectionDialog to potentially report an error. (The versions of my
facet are constrained by a property in the targeted runtime that is
impossible to figure out without running this custom code, so I cannot
specify the runtime constraints in the plug-in.xml).
Is this possible? If not, it seems like my only option is to run my
validation code in a wizard page.
|
|
|
Re: Running Java code for Facet validation [message #217892 is a reply to message #217745] |
Mon, 21 July 2008 13:09  |
Eclipse User |
|
|
|
Dan,
There isn't a facility to provide arbitrary java code in place of runtime
support mappings, but perhaps a different approach might work for you...
Are you familiar with the runtime component concept? Which runtime are you
targeting? More importantly, is it one that you have any say over how its
declared in Eclipse?
- Konstantin
Dan Lee wrote:
> Hello, thank you for answering my previous facet questions, I have got one
> more.
> I would like to run some Java code when my facet is selected in the
> FacetSelectionDialog. This code would run some validation and would cause
> the FacetSelectionDialog to potentially report an error. (The versions of my
> facet are constrained by a property in the targeted runtime that is
> impossible to figure out without running this custom code, so I cannot
> specify the runtime constraints in the plug-in.xml).
> Is this possible? If not, it seems like my only option is to run my
> validation code in a wizard page.
|
|
|
Powered by
FUDForum. Page generated in 0.09646 seconds