Hi,
I would like to test the pushed state of a contribute tool item. Unfortunately, the ContributedToolItemLocator does not support this. Is there any other possibility to do this?
Regards,
Steffen
Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund
IWidgetReference ref = (IWidgetReference)ui.find(new ContributedToolItemLocator("..."));
final ToolItem item = (ToolItem)ref.getWidget();
final boolean[] select = new boolean[1];
Display.getDefault().syncExec(
new Runnable(){
public void run() {
select[0] = item.getSelection();
}
}
);
assertTrue(select[0]);
Users browsing this forum: No registered users and 1 guest