Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How can I test with selection at PropertyTest?
How can I test with selection at PropertyTest? [message #910267] Sun, 09 September 2012 05:16 Go to next message
Byeongwook Kim is currently offline Byeongwook KimFriend
Messages: 8
Registered: September 2012
Junior Member
Hi,
I use PropertyTest in my project.
It work fine with(selection), iterate and test.
In this condition, receiver argument of PropertyTest::test() is only one object.

But, In my case, I need all collection because of transation.
so, I used with(selection) and test, except iterate.
But, MyPropertyTest::test() is not called.
Also, when I used only test, MyPropertyTest::test() is not called.

How can I test with all selection?
Re: How can I test with selection at PropertyTest? [message #910850 is a reply to message #910267] Mon, 10 September 2012 13:54 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Your property tester would have to take the correct type for the selection and you would not put it in the iterate element any more.

PW


Re: How can I test with selection at PropertyTest? [message #918388 is a reply to message #910850] Fri, 21 September 2012 01:27 Go to previous messageGo to next message
Byeongwook Kim is currently offline Byeongwook KimFriend
Messages: 8
Registered: September 2012
Junior Member
Thanks Paul.
It's work when I use IStructedSelection type.
But I have a another problem.

I want to test when popup menu appear.
But test is called when item is selected.
So I debug.
I use CommonNavigator.
When I selected item test is called at WorkbenchSourceProvider.fireSourceChanged().
How can I solve this problem.
Re: How can I test with selection at PropertyTest? [message #918470 is a reply to message #918388] Fri, 21 September 2012 03:35 Go to previous message
Byeongwook Kim is currently offline Byeongwook KimFriend
Messages: 8
Registered: September 2012
Junior Member
I seem that I solve this problem.
I use activeMenuSelection as with variable instead of selection.
Is it right?

But It has a another problem.
PropertyTester is called when application losted focus during popup menu is displaying.
Why called at that time?

[Updated on: Fri, 21 September 2012 03:38]

Report message to a moderator

Previous Topic:Installing Manually Eclipse
Next Topic:Eclipse Indigo Crash
Goto Forum:
  


Current Time: Thu Apr 25 02:11:08 GMT 2024

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

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

Back to the top