final IWorkbench instance = PlatformUI.getWorkbench();
final IWorkbenchWindow activeWorkbenchWindow = instance
.getActiveWorkbenchWindow();
editor = activeWorkbenchWindow.getActivePage().getActiveEditor();
wranglerSelection = new ErlTextMemberSelection(
(ITextSelection) selection, (ITextEditor) editor);
} else if (selection instanceof ITreeSelection) {
final Object firstElement = ((ITreeSelection) selection)
.getFirstElement();
if (firstElement instanceof IErlElement) {