|How can I tell whether it's design time or runtime? [message #616906]
||Thu, 13 December 2007 00:58
| Eli Lato
Registered: July 2009
If the designer left out a required property of my component, I want to |
throw an IllegalStateException at runtime, but of course not at design
My ugly solution was to add a component listener, look at my component's
parents, and see whether any of them is a ve class. If none of my parents
is a VE class, it's runtime, and I check for missing required properties.
This works fine, but it's obviously a hack. Is there a better way?
Powered by FUDForum
. Page generated in 0.01390 seconds