Skip to main content



      Home
Home » Archived » Visual Editor (VE) » How to identify if I'm coding at design-time?
How to identify if I'm coding at design-time? [message #114569] Thu, 05 January 2006 13:20 Go to next message
Eclipse UserFriend
Hello!
How do I test in my visual class code if the code is running at
design-time or not. I need to be able to execute some portions of the code
only at runtime.
Thank you.
Re: How to identify if I'm coding at design-time? [message #114595 is a reply to message #114569] Thu, 05 January 2006 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Marcos,

You can use the following test:

if (java.beans.Beans.isDesignTime()) {
// use design time code
} else {
// use real code
}

Hope this helps,
- Jeff
Re: How to identify if I'm coding at design-time? [message #114747 is a reply to message #114595] Fri, 06 January 2006 07:05 Go to previous message
Eclipse UserFriend
Thank you, Jeff.
Re: How to identify if I'm coding at design-time? [message #611731 is a reply to message #114569] Thu, 05 January 2006 14:18 Go to previous message
Eclipse UserFriend
Marcos,

You can use the following test:

if (java.beans.Beans.isDesignTime()) {
// use design time code
} else {
// use real code
}

Hope this helps,
- Jeff
Re: How to identify if I'm coding at design-time? [message #611743 is a reply to message #114595] Fri, 06 January 2006 07:05 Go to previous message
Eclipse UserFriend
Thank you, Jeff.
Previous Topic:Center JFrame?
Next Topic:VE 1.2M1 : how to set input for TableViewer
Goto Forum:
  


Current Time: Tue Jul 22 16:14:27 EDT 2025

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

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

Back to the top