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).
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
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