I have issue with the ViewLocator for the parent View (the one that contains the embedded Swing panels) throwing me a multiple Widget found exception for the particular ViewId (I get one view and two composites with the same ID...probably some internal implementation of the SWT_AWT bridge).
- Code: Select all
com.windowtester.runtime.MultipleWidgetsFoundException: Multiple Widgets Found:
looking for
ViewLocator [com.myapp.rcp.view.ConnectionManager]
and found:
WidgetReference(ConnectionManagementView$1 {})
WidgetReference(Composite {})
WidgetReference(Composite {})
I tried to get around it to force it to find only my view, I was guessing I have to create a custom ViewLocator with a different build matcher, e.g.:
- Code: Select all
ViewLocator cmView = new ViewLocator(ConnectionManagementView.ID) {
@Override
protected IWidgetMatcher buildMatcher() {
return new ByNameClassMatcher(ConnectionManagementView.class.getName());
}
};
ui.find(cmView);
but now I get a No Widget found exception....am I on the right track here?