Mailingliste - Einträge 2006


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] TestEventQueue


  • Subject: Re: [qftestJUI] TestEventQueue
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 06 Feb 2006 09:20:24 +0100

Hi Rob,

a solution based on qftest's EventQueue would make your app depend on
qftest at compiletime and runtime unless it was implemented using
reflection only which is quite cumbersome. In case of actual conflicts
between the EventQueues this may be necessary, but in this case your
current solution is preferred.

Best regards,
    Greg

"Robert Slifka" <rslifka@?.com> writes:

>    Hi Gregor,
>    Yep, you're right - only one :)
>    This was our solution, but we wanted to check if there was a
>    QFS-supported or -recommended way of doing it although in retrospect
>    it wouldn't really matter!
>    Thanks,
>    Rob
>    -----Original Message-----
>    From: Gregor Schmid [[1]mailto:Gregor.Schmid@?.de]
>    Sent: Sun 2/5/2006 8:53 AM
>    To: qftestJUI-list@?.de
>    Cc: Robert Slifka
>    Subject: Re: [qftestJUI] TestEventQueue
>    Hi Robert,
>    it's your class, so it should be easy for you to get hold of your
>    EventQueue without getting it from qftest's EventQueue. E.g. make it a
>    singleton, i.e. simply keep a static reference to your EventQueue
>    object in your class. I don't expect you're going to create more than
>    one, are you? :-)
>    Note that if you try to call getNextEvent() on your queue it will
>    block because qftest's EventQueue is in control. If you do
>    Toolkit.getDefaultToolkit().getSystemEventQueue().getNextEvent()
>    things should always be fine, with and without qftest.
>    If you can't get it to work, I'll probably need to see the exception
>    stack traces and the source code for what you're trying to do.
>    Best regards,
>        Greg
>    "Robert Slifka" <rslifka@?.com> writes:
>    > Hi QFS team,
>    >
>    > We have a custom event queue, which works great inside of QFS.  Our
>    > difficulty comes when attempting to gain access to it via:
>    >
>    > Toolkit.getDefaultToolkit().getSystemEventQueue()
>    >
>    > ...when we need to call methods on our custom queue, causing
>    > ClassCastExceptions.  Instead of getting our custom class back,
>    we're
>    > getting the TestEventQueue wrapper.
>    >
>    > Is there a way to obtain access to our class via the wrapper?
>    >
>    > Thanks,
>    >
>    > Rob
>    >
>    > CONFIDENTIALITY NOTICE: This e-mail may contain information that is
>    > confidential and proprietary to Magma, and Magma hereby designates
>    the
>    > information in this e-mail as confidential.  The information is
>    intended
>    > only for the use of the individual or entity named above.  If you
>    are
>    > not the intended recipient, you are hereby notified that any
>    disclosure,
>    > copying, distribution or use of any of the information contained in
>    this
>    > transmission is strictly prohibited and that you should immediately
>    > destroy this e-mail and its contents and notify Magma.

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Dokumentation Kaufen Gratis Testen