🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7622

Re: How to check if a JavaBean is used at runtime/design time?

#7622
From: Romano Signorelli
Date: Thu, 14 Jun 2001 11:26
32 lines
1679 bytes
I've found it (thanks to "Tor Iver Wilhelmsen"):

 if (java.beans.Beans.isDesigntime())

bye

"Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com> wrote
in message news:3b286d27_1@dnews...
> Hello,
> how can I check if a component is used at runtime from an application or
by
> the Jbuilder designer at design time?
>
> Simple example:
>
> public class NewLabel extends Label {
>
>   public String getText() {
>     if (weAreInDesignTime)  //<<= how?
>       return "we are in design time";
>     else
>       return super.getText();
>   }
>
> }
>
> Thanks in advance, bye
> Romano Signorelli
>
>
>
>
Technical Details
Message-ID: <3b289f8a_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b286d27_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,aaa4761dd13fe995
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-14 04:42:17 PST
Reply-To: "Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com>
From: "Romano Signorelli" <removeunderlines-s_i_g_n_o_r_e_l_l_i@gefran.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b286d27_1@dnews>
Subject: Re: How to check if a JavaBean is used at runtime/design time?
Date: Thu, 14 Jun 2001 13:26:52 +0200
Lines: 34
Organization: Gefran s.p.a.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
NNTP-Posting-Host: 212.210.176.11
Message-ID: <3b289f8a_1@dnews>
X-Trace: dnews 992518026 212.210.176.11 (14 Jun 2001 04:27:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews