public String getSourceName(Object object) throws CoreException { if (object instanceof MVELStackFrame) { MVELStackFrame frame = (MVELStackFrame) object; RuleInfo ruleInfo = frame.getExecutingRuleInfo(); if (ruleInfo != null) { String sourcePath = ruleInfo.getSourcePathName(); return sourcePath; } FunctionInfo functionInfo = frame.getExecutingFunctionInfo(); if (functionInfo != null) { return functionInfo.getSourcePathName(); } } return super.getSourceName(object); }
public Object[] findSourceElements(Object object) throws CoreException { if (object instanceof MVELStackFrame) { MVELStackFrame frame = (MVELStackFrame) object; // int lineNumber = frame.getBreakpointLineNumber(); String mvelName = frame.getMVELName(); IDebugTarget target = frame.getDebugTarget(); if (target instanceof DroolsDebugTarget) { DroolsDebugTarget droolsTarget = (DroolsDebugTarget) target; Object bpoint = droolsTarget.getDroolsBreakpoint(mvelName); return new Object[] {bpoint}; } } return null; }