assignmentPos = search.find(sel.getOffset() + cfcInstance.length(), cfcInstance + "[\\s]?=[\\s]?entityNew", false,
false, false, true);
}
if (assignmentPos != null) {
//MappingManager mappingManager = new MappingManager();
CFDocument cfdoc = ((ICFDocument) doc).getCFDocument();
String CFCName = AssistUtils.getCFCName(cfcInstance, cfdoc);
IFile foundCFC = AssistUtils.findCFC(CFCName);
if (foundCFC == null) {
foundCFC = AssistUtils.findCFC(functionName);
}
if (foundCFC != null) {
OpenAtMethodAction openAction = new OpenAtMethodAction(foundCFC, "");
openAction.run();
}
}
}
startPos = search.find(sel.getOffset() + functionName.length(), functionName + "[\\s]?=[^=]", true, false, false, true);
}
if (startPos != null) {
startPos = search.find(startPos.getOffset(), functionName, true, true, false, true);
editor.getSelectionProvider().setSelection(CFDocUtils.selectWord(doc, startPos.getOffset()));
}
if (startPos == null || sel.getOffset() == startPos.getOffset()) {
DocItem st = ((CFMLEditor) editor).getSelectionCursorListener().getSelectedTag();
if (st.getName().equals("ASTComponent") || st.getName().equals("FunctionCall")) {
CFDocument cfdoc = ((ICFDocument) doc).getCFDocument();
String CFCName = AssistUtils.getCFCName(functionName, cfdoc);
IFile foundCFC = AssistUtils.findCFC(CFCName);
if (foundCFC == null) {
foundCFC = AssistUtils.findCFC(functionName);
}