Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Table items background color doesn't work
Table items background color doesn't work [message #485822] Tue, 15 September 2009 04:17
Eclipse UserFriend
Hey,

the backgroundColor method on AbstractSWTBot doesn't work for TableItems
as they aren't instances of Control.

SWTBotTableItem should override it with something like :


public Color backgroundColor() {
return syncExec(new Result<Color>() {
public Color run() {
return widget.getBackground(0);
}
});
}

and same behavior with foregroundColor :

public Color foregroundColor() {
return syncExec(new Result<Color>() {
public Color run() {
return widget.getForeground(0);
}
});
}




Guillaume
Previous Topic:MouseEvents with SWTBot
Next Topic:Key Press: Enter
Goto Forum:
  


Current Time: Wed Jun 18 12:00:23 EDT 2025

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

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

Back to the top