Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2016 bis heute 2015 | 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

[QF-Test] Resolver Hook with isInstance()


  • Subject: [QF-Test] Resolver Hook with isInstance()
  • From: "Michael Werner" <michael.werner@?.com>
  • Date: Mon, 12 Nov 2007 16:10:25 +0100

Hi,

 

I am trying to write a Resolver Hook, in the Form

 

--------------------------------------------------------------------------------------

def getName(obj):

            if(obj.isInstance("javax.swing.JButton")):

                        return return JButton.getActionCommand()

            elif(obj.isInstance("javax.swing.JPanel")):

                        return “TODO: JPanel”

            …

resolvers.addNameResolver("JButtons", getName,"javax.swing.JButton")

resolvers.addNameResolver("JPanel", getName,"javax.swing.JPanel")

resolvers.addNameResolver(“…..

--------------------------------------------------------------------------------------

 

But, this does not Work. The Hooks all work, if I use them alone, without the obj.isInstance() condition.

 

Has anyone an idea what is wrong there?

 

Regards,

Michael

 

 

 

Michael Werner  

 

 

 

Ericsson GmbH

 

EDD/XMB/DB

Gerberstr. 33

71522, Backnang, Germany,
www.ericsson.com

 

 

Email  : Michael.Werner@?.com

 



Ericsson GmbH.
Sitz: Düsseldorf. Registergericht: Amtsgericht Düsseldorf, HRB 33012. Geschäftsführer: Dr. Stefan Kindt, Carsten Ahrens. Aufsichtsratsvorsitzender: Jef Keustermans

 

This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.

E-mail including attachments is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and we only send and receive emails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.

 


Videos Downloads Dokumentation Kaufen Gratis Testen