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 name
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: Thu Oct 30 13:51:44 GMT 2014

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

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