Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Running Java code for Facet validation
Running Java code for Facet validation [message #217745] Wed, 16 July 2008 21:03 Go to next message
Eclipse UserFriend
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 17:09 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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: Tue Apr 16 13:54:53 GMT 2024

Powered by FUDForum. Page generated in 0.58426 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top