Well. I'll explain better... and thanks for answer :-D
My app has 3 view modes: 2 tables and 1 gallery.
I have a button that rotates between these 3 views.
When the user push a button, the program rotates between these views, as
i said before. The program fill the view perfectly, but when the
selected view is populated, i want to show the first elements (if not
empty). The order is "selectItem(int itemNumber);"
Then, the code for tables is this:
public void selectItemNumber(int item) {
if (GlobalSettings.moviesList.size() > 0) {
moviesTable.setFocus();
moviesTable.setSelection(item);
moviesTable.notifyListeners(SWT.Selection, new Event());
return;
} else {
return;
}
}
This works for the tables, but with the gallery don't.
I've tried the same for gallery but it's impossible.