IFile activeFile = null;
if (iep.getEditorInput() instanceof IFileEditorInput) {
activeFile = ((IFileEditorInput) iep.getEditorInput()).getFile();
}
Snippet snip = (Snippet)element;
startBlock = SnipVarParser.parse(snip.getStartText(),activeFile,this.getViewSite().getShell());
endBlock = SnipVarParser.parse(snip.getEndText(),activeFile,this.getViewSite().getShell());
}
if (startBlock != null && endBlock != null) {
tmpAction.setEnclosingStrings(startBlock,endBlock);