Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:17
No real name is currently offline No real nameFriend
Messages: 18
Registered: July 2009
Junior Member
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: Fri Apr 26 00:27:51 GMT 2024

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

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

Back to the top