| How can I tell whether it's design time or runtime? [message #616906] |
Thu, 13 December 2007 00:58 |
Eli Lato Messages: 35 Registered: July 2009 |
Member |
|
|
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
time.
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?
Thanks,
Eli
|
|
|
Powered by
FUDForum. Page generated in 0.01390 seconds