/** * Gets all the parameter definitions indexed by their names in the surrounding stored procedure * * @param document * @param offset * @return key: String; value: IASTSQLParam */ public HashMap getCursors(IDocument document, int offset) { HashMap map = new HashMap(); SimpleNode context = (SimpleNode) findContainingDeployable(document, offset, _rootNode); // only SP can have parameters if (context != null && context instanceof IASTDeployable) { map = findCursors(document, offset, context); } return map; }