Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Editing WidgetReg.xml file
Editing WidgetReg.xml file [message #480938] Wed, 19 August 2009 02:57 Go to next message
Gopal is currently offline GopalFriend
Messages: 11
Registered: July 2009
Junior Member
Hi all,

I am getting the problem in AGR while playing back a script of "open
perspective" button on the tool bar.

In Some doc, i read about the Adaptive widget resolver mechanism use to
resolved the identification problem of widgets.According to them i have
added the following entry in the widgetReg.xml file for "open perspective"
button on the tool bar

<class name = "org.eclipse.ui.internal.PerspectiveBarNewContributionItem"
matchThreshold = "1.0">
<method name = "getData" weight = "1.0"/>
</class>

Then i restart my eclipse application and recorded a new script containing
the above "open perspective" button but when i play back it again showing
the error message as:

java.lang.reflect.InvocationTargetException
null
org.eclipse.core.runtime.CoreException: Line 13: Cannot locate menu item:
{{Other...}}-{{1.0}}
at ..........


1)Can anybody tell me the entry i have added to the xml file is right or
wrong?
If wrong then please tell me a correct entry with explanation that how we
can decide the name of class and the methods?

2) and any thing else that i need to do to resolve the above problem

Regards
Gopal
Re: Editing WidgetReg.xml file [message #481024 is a reply to message #480938] Wed, 19 August 2009 11:25 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Gopal,
As discussed in
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-5-0.html#2.4,
you must define the widget class name or the class name of the object
returned by the getData() method of the widget and then define the method
element properties that help to identify the corresponding widget. For
example:

<class name = "org.eclipse.debug.core.ILaunchConfigurationType"
matchThreshold = "7.0">
<method name = "getPluginIdentifier" weight = "0.2"/>
<method name = "getSourcePathComputer" weight = "0.1"/>
<method name = "getCategory" weight = "0.1"/>
<method name = "getIdentifier" weight = "0.5"/>
</class>

If using the methods within the existing widget are insufficient to identify
the widget at playback, you must extend the widget in your code and provide
the necessary method(s) to identify the widget at playback.

Paul
"Gopal " <gopal.pagrut@gemalto.com> wrote in message
news:fcef2fe53495f058ae1036b73f6edac3$1@www.eclipse.org...
> Hi all,
>
> I am getting the problem in AGR while playing back a script of "open
> perspective" button on the tool bar.
>
> In Some doc, i read about the Adaptive widget resolver mechanism use to
> resolved the identification problem of widgets.According to them i have
> added the following entry in the widgetReg.xml file for "open perspective"
> button on the tool bar
> <class name = "org.eclipse.ui.internal.PerspectiveBarNewContributionItem"
> matchThreshold = "1.0">
> <method name = "getData" weight = "1.0"/>
> </class>
>
> Then i restart my eclipse application and recorded a new script containing
> the above "open perspective" button but when i play back it again showing
> the error message as:
>
> java.lang.reflect.InvocationTargetException
> null
> org.eclipse.core.runtime.CoreException: Line 13: Cannot locate menu item:
> {{Other...}}-{{1.0}}
> at ..........
>
>
> 1)Can anybody tell me the entry i have added to the xml file is right or
> wrong?
> If wrong then please tell me a correct entry with explanation that how we
> can decide the name of class and the methods?
>
> 2) and any thing else that i need to do to resolve the above problem
> Regards
> Gopal
>
>
Previous Topic:Installing and profiling fails on x86-64
Next Topic:Mixed launch mode not Supported:[profile]
Goto Forum:
  


Current Time: Fri Apr 26 19:34:16 GMT 2024

Powered by FUDForum. Page generated in 0.02571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top