I have a tableviewer and I created a contextual menu and now on right click on the row I have the option: Color the selected row. The menu command is linked to a class inside my plugin project. I want to select the row then right-click and click on contextual menu option: Color the selected row and then this command to color all the text contained in every cell of the row, in red for example.
public class ShowSelected extends AbstractHandler {
@SuppressWarnings("unchecked")
public Object execute(ExecutionEvent event) throws ExecutionException {
//here should be my piece of code
return null;
}
}
How to select the row and color the text in every cell of that row ? I have 5 cells for every row.