List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
If you want to stay informed about news about QF-Test, you can simply subscribe to our newsletter:
Subscribe to Newsletter  


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

[QF-Test] GEF Resolver problem


  • Subject: [QF-Test] GEF Resolver problem
  • From: "Zhao, Tom" <tom.zhao@?.com>
  • Date: Mon, 1 Apr 2019 06:50:42 +0000
  • Delivered-to: qftest-list@?.net
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=myadvantest.onmicrosoft.com; s=selector1-ADVANTEST-COM; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0fvMo+0INIq4kHPjrOB/a17jAuSY/CufMtn43AhoZ2E=; b=Cygpfl5/a6PH98zXpJ8SQhyUGoP8CtI1wKaiA7re2g5yAmw0/z51rs9FRY/TILyckttS7E5tvAZ1UUiB6LPWRNm4jRPEnuGBxwZdT0Fjy/6GqesLiT4JKQ6xz46mAra4DwsZf/FmMZHBz4v7nKVySDbTf0qQlJuFm9jL6f4dokk=

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

Fax:021-2028-7601

Email:tom.zhao@?.com

Add: C Block, Bldg.3, 168 HuaTuo Road,

Zhangjiang Hi-Tech Park, Shanghai, China, 201203