Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Running Java code for Facet validation
Running Java code for Facet validation [message #217745] Wed, 16 July 2008 17:03 Go to next message
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 Go to previous message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 923
Registered: July 2009
Senior Member
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.
Previous Topic:org.apache.tools.ant.taskdefs.optional.net.FTP Not Found
Next Topic:How do I define my own faceted project wizard?
Goto Forum:
  


Current Time: Thu Apr 24 01:27:31 EDT 2014

Powered by FUDForum. Page generated in 0.02307 seconds