Added a new method for getting the currently selected item from a table
viewer