Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » When AGR resolvers are not used....
When AGR resolvers are not used.... [message #106750] Thu, 26 July 2007 19:13 Go to next message
Eclipse UserFriend
Originally posted by: joel_patterson.verizon.net

I was experimenting with resolvers and removed the entry from plugin.xml
for the NonTrivialWidgetResolver. I expected everything to be forced
through the AdaptiveResolver (or just not work) but when working with a
Tree I saw:

<command descriptive="NORMAL (289)" type="item-select"
contextId="view/com.agitar.eclipse.outcomes.views.OutcomesView "
widgetId="org.eclipse.swt.widgets.Tree#1">
<item path="com.agitar.result.outcome.r0|0||0|"/>
</command>

Since a resolver wasn't used here, how did this value get created -- and
if I wanted to use something like this for a Tree instead of the
NonTrivialWidgetResolver, what would I call? Obviously the method to
get this value exists somewhere...
Re: When AGR resolvers are not used.... [message #106765 is a reply to message #106750] Thu, 26 July 2007 20:30 Go to previous message
Liz Dancy is currently offline Liz DancyFriend
Messages: 77
Registered: July 2009
Member
Hi Joel,

The widgetId in this case comes from the 'defaultControlId' which is
computed when the widgetId returned from the widget resolvers is null.

The item path comes from the 'defaultItemAttributes', computed when the
widget is not found with a resolver.

If you want to use these methods in a custom widget resolver, the method
findTreeItemInx can be found in the AbstractStructuredCommand class and the
computeDefaultControlId method is found in the MacroUtil class.

I hope this helps.

Sincerely,

Liz Dancy


"Joel Patterson" <joel_patterson@verizon.net> wrote in message
news:f8aros$1cg$1@build.eclipse.org...
>I was experimenting with resolvers and removed the entry from plugin.xml
>for the NonTrivialWidgetResolver. I expected everything to be forced
>through the AdaptiveResolver (or just not work) but when working with a
>Tree I saw:
>
> <command descriptive="NORMAL (289)" type="item-select"
> contextId="view/com.agitar.eclipse.outcomes.views.OutcomesView "
> widgetId="org.eclipse.swt.widgets.Tree#1">
> <item path="com.agitar.result.outcome.r0|0||0|"/>
> </command>
>
> Since a resolver wasn't used here, how did this value get created -- and
> if I wanted to use something like this for a Tree instead of the
> NonTrivialWidgetResolver, what would I call? Obviously the method to get
> this value exists somewhere...
Previous Topic:AGR suites in JUnit
Next Topic:TPTP profiler using SSH tunnel
Goto Forum:
  


Current Time: Mon Nov 24 00:28:33 GMT 2014

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

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