La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous
abonner à la newsletter
our obtenir des informations à jour sur chaque version - y compris les versions mineures - vous pouvez
nous pouvez vous abonner au flux RSS ou nous suivre sur les médias sociaux.
Alternativement, QF-Test fournit également des informations sur la version elle-même.
Une autre source d'information est notre blog, qui contient des articles actuels sur des thèmes généraux, sur l'entreprise QFS et aussi divers "how-tos", veuillez vous
ABonner au Blog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [QF-Test] (SUP-4635) GEF Resolver problem
Hello Tom, could you please try the following script: import gef shell = rc.getComponent("WorkbenchWindow") editor = shell.getData().getActivePage().getActivePart() viewer = editor.getContentViewer() gef.gefResolver.setViewer(viewer) is the editor still None if you set the Viewer externally using this script ? Best regards, Thomas Zhao, Tom wrote on 01.04.19 08:50: Dear All, We start to make procedures for the GEF editor, but I found the original gef resolver has some errors and solutions can not be found in manual . I add some print into the resolver code, then try to record the component, ‘wbp’ is found, after I printed It out the result is ‘org.eclipse.ui.internal.WorkbenchPage@2fd16368’, but ‘editor’ is ‘none’, it seems getActivateEditor() returned ‘none’. No document found for this method. Now we can not find further actions to solve this problem. Our qf-test version is 4.5.1, our eclipse framework version in 4.10 (2018-12). Resolver code: def getGefEditor(shell): wbw = shell.getData() pages = wbw.getPages() for i in range(len(pages)): wbp = pages[i] //wbp is ok print "getGefEditor -- wbp : ", wbp // added by me editor = wbp.getActiveEditor() //editor is none print "getGefEditor -- editor: ", editor //added by me if editor != None: if ResolverRegistry.isInstance(editor, "org.eclipse.ui.part.MultiPageEditorPart"): editor = Reflector.call(editor, "getActiveEditor", 1) return editor return None Best regards, Tom Zhao (赵心卓) ------------------------------------------------------------ R&D-Department Advantest (China) Co., Ltd. Tel:021-6163-0093 <tel:021-6163-0093> Fax:021-2028-7601 Email:tom.zhao@?.com Add: C Block, Bldg.3, 168 HuaTuo Road, Zhangjiang Hi-Tech Park, Shanghai, China, 201203 -- _______________________________________________________________ Get the most out of QF-Test - Support directly from the authors * Training & consulting: www.qfs.de/en/qftest/training.html * Phone & email support: www.qfs.de/en/qftest/support.html _______________________________________________________________ Thomas Max Development & Support/Training/Consulting E: support@?.de T: +49 8171 38648-20 F: +49 8171 38648-16 Quality First Software GmbH | www.qfs.de Tulpenstr. 41 | 82538 Geretsried | Germany GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer HRB München 140833
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.