}
public ISelection getSelection(final TreeViewer viewer,
final ISelection selection)
{
final IContentProvider contentProvider = viewer.getContentProvider();
if (contentProvider instanceof PHPOutlineContentProvider) {
if (MODE_TWIG == mode) {
if (selection instanceof IStructuredSelection
&& selection instanceof TextSelection) {
IEditorPart activeEditor = PHPUiPlugin.getActiveEditor();