Mailingliste - Einträge 2006


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

RE: [qftestJUI] TestEventQueue


  • Subject: RE: [qftestJUI] TestEventQueue
  • From: "Robert Slifka" <rslifka@?.COM>
  • Date: Sun, 5 Feb 2006 14:12:51 -0800

Title: RE: [qftestJUI] TestEventQueue

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 [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.
>
> _______________________________________________
> 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 Dokumentation Kaufen Gratis Testen