Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How can I tell whether it's design time or runtime?
How can I tell whether it's design time or runtime? [message #616906] Thu, 13 December 2007 00:58
Eli Lato is currently offline 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
Previous Topic:What is Show Categories?
Next Topic:How can I tell whether it's design time or runtime?
Goto Forum:
  


Current Time: Mon May 20 02:09:16 EDT 2013

Powered by FUDForum. Page generated in 0.01390 seconds