Mailing list - Entries of 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: 05 Feb 2006 17:53:18 +0100

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. 
> 
> _______________________________________________
> qftestJUI-list mailing list
> qftestJUI-list@?.de
> http://www.qfs.de/mailman/listinfo/qftestjui-list

-- 
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 Documentation Buy Free Trial