I want to validate the content of the property view (advanced tab) of my rcp application. My application provides a custom property view where user could edit the property items. Moreover, the property view provides different kind of editors for each property.
Here is my problem:
When I click on a property row of the view, an editor is automatically created and opened as in the following figure. However, I'm not able to get a reference to the editor using WindowTester. I tried with many different combo locators type but it always failed.
For example, in the previous image, how could i get a reference to the selected combobox used to modify the "action on overruns" property.
I tried different methods, but here are some:
1- Using a standard combolocator without the parent argument.
ComboLocator locator = new ComboLocator()
In this case, it returns the fMultipleWidgetsFoundException exception and shows the control I'm looking for...
2- Using a combobox locator with the property view parent argument.
ComboLocator locator = new ComboLocator(new ViewLocator(Messages.getString("Message.PropertyViewId")));
In this case, it returns that the widget is not found.
How should I do? What should be the parent of the locator?
- property view editor
- propertyview.JPG (29.23 KiB) Viewed 355 times