|
|
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #45015 is a reply to message #44480] |
Tue, 06 December 2005 04:58   |
Eclipse User |
|
|
|
Originally posted by: Charles.pku.gmail.com
Dearl Ali,
I have checked my operations, but those tree-selecting problems stll exist.
A detailed description is here. My operation: file->new->project,then a
dialog with bellow tree will be displayed.
[+] tn1
[+] tn2
[+] tn3
[-] tn4
||_____ l1
||_____ l2
||_____ l3
||_____ l4
||_____ l5 ( l5 is defalult selected)
||_____ l6
[+] tn5
[+] tn6
and tn2 has two children [-] tn2
|_____ l7
|_____ l8
tn6 has two children [-] tn6
|_____ [+]
|_____ [+]
Some problemes that i found:
1 if the item selected is above tn4, their first child node could be
selected. But, others could not.
The example in "Introtution to ... " could be rightly recorded
perhaps because the "java project"
is the first child of "java". The second child "The java project from
exist ant buildfile" could not
be selected.
2 In all children of tn4 and bellow tn4, only l1 could be recorded.
op sequence and the generated macro :
1 expand tn2, select l7, then next
************************************************
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
</command>
<command type="item-expand"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
</command>
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
</command>
************************************************
2 expand tn2, select l8, then next
************************************************
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
</command>
<command type="item-expand"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
<item
path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
</command>
<command type="item-select"
contextId="wizard-page/newWizardSelectionPage"
widgetId="org.eclipse.swt.widgets.Tree#1">
<item
path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
</command>
************************************************
1 and 2 generate the same output macro
When I try to modify the macro, errors allways happen. Could u help?
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #45030 is a reply to message #45015] |
Tue, 06 December 2005 15:09   |
Eclipse User |
|
|
|
Hi Charles,
Looking at your macro, it seems that you have an old copy of AGR that didn't
have "org.eclipse.ui.internal.dialogs.WizardCollectionElement" registered in
widgetReg.xml file that is included with the plugin.
I would recommend downloading the 4.1 release build (Go to
www.eclipse.org/tptp > Click on Downloads > The "Latest Release - 4.1.0" tab
should be selected by default). The problem comes from not having a
registered widget entry under
org.eclipse.tptp.test.auto.gui_4.1.0\auto-gui\widgetReg.xml that would make
AGR aware of the objects you are expanding/selecting in the wizard page.
The specific entry that makes the AGR recorder aware of the tree items is:
<class name = "org.eclipse.ui.internal.dialogs.WizardCollectionElement"
matchThreshold = "1.0">
<method name = "getId" weight = "1.0"/>
</class>
To find out more about the adaptive widget resolver, see
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI.html#2.4.1
Thanks
"Charles" <Charles.pku@gmail.com> wrote in message
news:cf14b5c73a43807e253d99e14b97a8df$1@www.eclipse.org...
> Dearl Ali,
>
> I have checked my operations, but those tree-selecting problems stll
exist.
> A detailed description is here. My operation: file->new->project,then a
> dialog with bellow tree will be displayed.
>
> [+] tn1
> [+] tn2
> [+] tn3
> [-] tn4
> ||_____ l1
> ||_____ l2
> ||_____ l3
> ||_____ l4
> ||_____ l5 ( l5 is defalult selected)
> ||_____ l6
> [+] tn5
> [+] tn6
>
> and tn2 has two children [-] tn2
> |_____ l7
> |_____ l8
>
> tn6 has two children [-] tn6
> |_____ [+]
> |_____ [+]
>
> Some problemes that i found:
> 1 if the item selected is above tn4, their first child node could be
> selected. But, others could not.
> The example in "Introtution to ... " could be rightly recorded
> perhaps because the "java project"
> is the first child of "java". The second child "The java project from
> exist ant buildfile" could not
> be selected.
> 2 In all children of tn4 and bellow tn4, only l1 could be recorded.
>
> op sequence and the generated macro :
>
> 1 expand tn2, select l7, then next
> ************************************************
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
> </command>
> <command type="item-expand"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
> </command>
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
> </command>
> ************************************************
> 2 expand tn2, select l8, then next
> ************************************************
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement0 "/>
> </command>
> <command type="item-expand"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1" value="true">
> <item
> path="org.eclipse.ui.internal.dialogs.WizardCollectionElement2 "/>
> </command>
> <command type="item-select"
> contextId="wizard-page/newWizardSelectionPage"
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item
> path="org.eclipse.ui.internal.dialogs.WorkbenchWizardElement-1 "/>
> </command>
> ************************************************
> 1 and 2 generate the same output macro
>
> When I try to modify the macro, errors allways happen. Could u help?
>
>
|
|
|
|
|
|
|
|
|
|
Re: Why AGR did not record any thing while changing to ther editors? [message #46879 is a reply to message #46736] |
Thu, 15 December 2005 12:42  |
Eclipse User |
|
|
|
The item-expand below has its "value" attribute set to "false". This would
be interpreted as a collapse instead of an expansion. Change the value to
"true" to see if it resolves your problem.
<command type="item-expand"
contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
widgetId="org.eclipse.swt.custom.TableTree#1" value="false">
Also, I'm not sure what driver you're using but the value of the path
attribute in this fragment <item
path="com.sarvega.ide.core.appdef.ExternalServerPool"/> should have an index
appended to it. When the path of an item is resolved as a classname, then
it means that AGR couldn't find an entry in its widget resolving mechanism.
See the user guide on how you can register your widget and use a more
concrete ID.
Finally, the item-select element following the item-expand command has a
completely different widget id. If you're expanding and selecting in the
same treetable view, then the widget ids should be the same. It seems odd
that they're different (unless of course you used a different context to do
the selection than the context used to do the expansion).
"Charles" <Charles.pku@gmail.com> wrote in message
news:eb3c0b1cf113c3a87585b4b716097131$1@www.eclipse.org...
> Hi Ali,
>
> In my case, the replay of TableTree/TreeColumn operations fail -- the node
> is not expanded as expected.
>
> Only one item in the TableTree. If expanded, one son node will display.
> the operation of expanded the node generated following macro:
>
> <command type="item-expand"
> contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
> widgetId="org.eclipse.swt.custom.TableTree#1" value="false">
> <item path="com.sarvega.ide.core.appdef.ExternalServerPool"/>
> </command>
> <command type="item-select"
> contextId="editor/com.sarvega.ide.editor.appdef.AppDefEditor/xesos.xml "
> widgetId="org.eclipse.swt.widgets.Table#5">
> <item path="0"/>
> </command>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04348 seconds