Skip to main content



      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 01:16 Go to next message
Eclipse UserFriend
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 09:54 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 20 September 2012 21:27 Go to previous messageGo to next message
Eclipse UserFriend
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] Thu, 20 September 2012 23:35 Go to previous message
Eclipse UserFriend
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: Thu, 20 September 2012 23:38] by Moderator

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


Current Time: Tue Jul 22 20:03:03 EDT 2025

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

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

Back to the top