Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » AGR: Shortcut-Usage leading to "InvocationTargetException"
AGR: Shortcut-Usage leading to "InvocationTargetException" [message #141233] Sun, 15 March 2009 08:44 Go to next message
yoe is currently offline yoe
Messages: 3
Registered: July 2009
Junior Member
Hi there!

I'm faceing problems while trying to get a test done, using the shortcut
Alt+Shift+N (new File/Project under Eclipse for Windows).

The AGR seems not to be able to finde the "New-File" Menu, because, I'm
getting an exception (InvocationTargetException; Stack-Trace starting with
"Cannot locate menu item {{Project...}}-{{1.0}}")

The Macro looks like that:

<command type="key-down" detail="65536" ischarset="false"/>
<command type="key-down" detail="131072" ischarset="false"/>
<command type="key-down" detail="110" ischarset="true"/>
<command type="wait"/>
<command type="key-up" detail="110" ischarset="true"/>
<command type="key-up" detail="131072" ischarset="false"/>
<command type="key-up" detail="65536" ischarset="false"/>

<command descriptive="Project..." type="select"
resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
contextId=" popup/editor/org.eclipse.hyades.test.ui.editor.TestSuiteEdit orPart/SPQRTestSuite.testsuite/org.eclipse.swt.custom.Styled Text#1 "
widgetId="{{Project...}}-{{1.0}}"/>

While running the testcase, the "New-File" Menu pops up (so, the shortcut
is working), but is waiting for an userinput at the file-menu.

Anybody got a solution or a workaround for this problem?!?!

thx in advance,
yoe
Re: Shortcut-Usage leading to "InvocationTargetException" [message #141244 is a reply to message #141233] Mon, 16 March 2009 06:26 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Yoe,
Yes, the AGR does not support keyboard shortcut in all cases (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=111714). The work-around is
to use the mouse to select the menu item.

Paul
"yoe " <yoe@live.de> wrote in message
news:f966ebda7dc2f41da4f1549e3f7ea539$1@www.eclipse.org...
> Hi there!
>
> I'm faceing problems while trying to get a test done, using the shortcut
> Alt+Shift+N (new File/Project under Eclipse for Windows).
>
> The AGR seems not to be able to finde the "New-File" Menu, because, I'm
> getting an exception (InvocationTargetException; Stack-Trace starting with
> "Cannot locate menu item {{Project...}}-{{1.0}}")
>
> The Macro looks like that:
>
> <command type="key-down" detail="65536" ischarset="false"/>
> <command type="key-down" detail="131072" ischarset="false"/>
> <command type="key-down" detail="110" ischarset="true"/>
> <command type="wait"/>
> <command type="key-up" detail="110" ischarset="true"/>
> <command type="key-up" detail="131072" ischarset="false"/>
> <command type="key-up" detail="65536" ischarset="false"/>
>
> <command descriptive="Project..." type="select"
> resolverId="org.eclipse.tptp.test.auto.gui.nontrivial"
> contextId=" popup/editor/org.eclipse.hyades.test.ui.editor.TestSuiteEdit orPart/SPQRTestSuite.testsuite/org.eclipse.swt.custom.Styled Text#1 "
> widgetId="{{Project...}}-{{1.0}}"/>
>
> While running the testcase, the "New-File" Menu pops up (so, the shortcut
> is working), but is waiting for an userinput at the file-menu.
>
> Anybody got a solution or a workaround for this problem?!?!
>
> thx in advance,
> yoe
>
Previous Topic:Code coverage?
Next Topic:Cannot perform execution time analysis for profiling OC4J
Goto Forum:
  


Current Time: Sat Jul 26 15:33:38 EDT 2014

Powered by FUDForum. Page generated in 0.07249 seconds