* @return the currently selected connection
*/
private Connection getSelectedConnection()
{
// Getting the connections view
ConnectionView connectionView = ( ConnectionView ) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage().findView( ConnectionView.getId() );
if ( connectionView != null )
{
// Getting the selection of the connections view
StructuredSelection selection = ( StructuredSelection ) connectionView.getMainWidget().getViewer()
.getSelection();
// Checking if only one object is selected
if ( selection.size() == 1 )
{