* @param e The CFML editor to get the test case from
* @return The test case currently in the editor.
*/
private String retrieveTestCase(CFMLEditor e) {
ICFDocument icfd = null;
CFDocument cfd = null;
if (e.getDocumentProvider().getDocument(e.getEditorInput()) instanceof ICFDocument) {
icfd = (ICFDocument)e.getDocumentProvider().getDocument(e.getEditorInput());
cfd = icfd.getCFDocument();
}
org.cfeclipse.cfml.parser.docitems.DocItem docRoot = cfd.getDocumentRoot();
CFNodeList nodes = docRoot.selectNodes("//cfcomponent");
// Check if this document is a CFC (contains a <cfcomponent> tag)
if(nodes.size() > 0) {
CfmlTagItem tag = (CfmlTagItem)nodes.get(0);