private Template getSelectedTemplate ( ) { Template template = null ; IStructuredSelection selection = ( IStructuredSelection ) fTableViewer . getSelection ( ) ; if ( selection . size ( ) == 1 ) { template = ( Template ) selection . getFirstElement ( ) ; } return template ; }
Get the currently selected template .