IStructuredSelection selection = (IStructuredSelection)treeViewer.getSelection();
File selectedfile = (File)selection.getFirstElement();
Shell shell = getSite().getShell();
SnippetToSnipExWizard wizard = new SnippetToSnipExWizard(selectedfile); //TODO: pass in the object we have selected
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.open();
//Run the wizard