Package org.netbeans.spi.debugger.jpda.EditorContext

Examples of org.netbeans.spi.debugger.jpda.EditorContext.Operation


        String stratumn
    ) {
        int lineNumber = t.getLineNumber (stratumn);
        if (lineNumber < 1) return null;
        //AST ast = t.getAST(stratumn);
        Operation operation = t.getCurrentOperation();
        String url;
        try {
            url = getURL (convertSlash (t.getSourcePath (stratumn)), true);
        } catch (AbsentInformationException e) {
            url = getURL (convertClassNameToRelativePath (t.getClassName ()), true);
View Full Code Here


        CallStackFrame csf,
        String stratumn
    ) {
        int lineNumber = csf.getLineNumber (stratumn);
        if (lineNumber < 1) return null;
        Operation operation = csf.getCurrentOperation(stratumn);
        try {
            if (operation != null) {
                int startOffset;
                int endOffset;
                if (operation.getMethodName() != null) {
                    startOffset = operation.getMethodStartPosition().getOffset();
                    endOffset = operation.getMethodEndPosition().getOffset();
                } else {
                    startOffset = operation.getStartPosition().getOffset();
                    endOffset = operation.getEndPosition().getOffset();
                }
                return EditorContextBridge.getContext().annotate (
                    getURL (convertSlash (csf.getSourcePath (stratumn)), true),
                    startOffset,
                    endOffset,
View Full Code Here

            if (annotations == null) {
                annotations = new ArrayList();
            }
            isNewLineExp = currentOperation == null;
            for (int i = 0; i < lastOperations.size(); i++) {
                Operation lastOperation = (Operation) lastOperations.get(i);
                if (currentOperation == lastOperation && i == lastOperations.size() - 1) {
                    annotations.add(createAnnotation(debugger, url,
                                                     lastOperation,
                                                     EditorContext.CURRENT_OUT_OPERATION_ANNOTATION_TYPE,
                                                     false));
                    int lineNumber = lastOperation.getEndPosition().getLine();
                    annotations.add(EditorContextBridge.getContext().annotate (
                        url,
                        lineNumber,
                        EditorContext.CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE,
                        debugger
View Full Code Here

        int lineNumber = t.getLineNumber(stratumn);
        if (lineNumber < 1) {
            return null;
        //AST ast = t.getAST(stratumn);
        }
        Operation operation = t.getCurrentOperation();
        String url;
        try {
            url = getURL(convertSlash(t.getSourcePath(stratumn)), true);
        } catch (AbsentInformationException e) {
            url = getURL(convertClassNameToRelativePath(t.getClassName()), true);
View Full Code Here

            String stratumn) {
        int lineNumber = csf.getLineNumber(stratumn);
        if (lineNumber < 1) {
            return null;
        }
        Operation operation = csf.getCurrentOperation(stratumn);
        try {
            if (operation != null) {
                int startOffset;
                int endOffset;
                if (operation.getMethodName() != null) {
                    startOffset = operation.getMethodStartPosition().getOffset();
                    endOffset = operation.getMethodEndPosition().getOffset();
                } else {
                    startOffset = operation.getStartPosition().getOffset();
                    endOffset = operation.getEndPosition().getOffset();
                }
                return EditorContextBridge.getContext().annotate(
                        getURL(convertSlash(csf.getSourcePath(stratumn)), true),
                        startOffset,
                        endOffset,
View Full Code Here

            if (annotations == null) {
                annotations = new ArrayList();
            }
            isNewLineExp = currentOperation == null;
            for (int i = 0; i < lastOperations.size(); i++) {
                Operation lastOperation = (Operation) lastOperations.get(i);
                if (currentOperation == lastOperation && i == lastOperations.size() - 1) {
                    annotations.add(createAnnotation(debugger, url,
                            lastOperation,
                            EditorContext.CURRENT_OUT_OPERATION_ANNOTATION_TYPE,
                            false));
                    int lineNumber = lastOperation.getEndPosition().getLine();
                    annotations.add(EditorContextBridge.getContext().annotate(
                            url,
                            lineNumber,
                            EditorContext.CURRENT_EXPRESSION_CURRENT_LINE_ANNOTATION_TYPE,
                            debugger));
View Full Code Here

TOP

Related Classes of org.netbeans.spi.debugger.jpda.EditorContext.Operation

Copyright © 2018 www.massapicom. 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.