Examples of MVELStackFrame


Examples of org.drools.eclipse.debug.core.MVELStackFrame

        //do nothing
    }

    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};
            }
View Full Code Here

Examples of org.drools.eclipse.debug.core.MVELStackFrame

        return null;
    }

    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 );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.