Package org.eclipse.wst.sse.core.internal.provisional.text

Examples of org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer


        try {
            ITextRegion tRegion = sdRegion.getRegionAtCharacterOffset(offset);
            int regionStart = sdRegion.getStartOffset(tRegion);
            // in case of container we have the extract the PhpScriptRegion
            if (tRegion instanceof ITextRegionContainer) {
                ITextRegionContainer container = (ITextRegionContainer) tRegion;
                tRegion = container.getRegionAtCharacterOffset(offset);
                regionStart += tRegion.getStart();
            }

            if (tRegion instanceof ITwigScriptRegion) {
                ITwigScriptRegion scriptRegion = (ITwigScriptRegion) tRegion;
View Full Code Here


                }

                int regionStart = sdRegion.getStartOffset(tRegion);
                // in case of container we have the extract the PhpScriptRegion
                if (tRegion instanceof ITextRegionContainer) {
                    ITextRegionContainer container = (ITextRegionContainer) tRegion;
                    tRegion = container.getRegionAtCharacterOffset(currOffset);
                    regionStart += tRegion.getStart();
                }

                if (tRegion instanceof ITwigScriptRegion) {
View Full Code Here

                }

                int regionStart = sdRegion.getStartOffset(tRegion);
                // in case of container we have the extract the PhpScriptRegion
                if (tRegion instanceof ITextRegionContainer) {
                    ITextRegionContainer container = (ITextRegionContainer) tRegion;
                    tRegion = container.getRegionAtCharacterOffset(currOffset);
                    regionStart += tRegion.getStart();
                }

                if (tRegion instanceof ITwigScriptRegion) {
View Full Code Here

        try {
            ITextRegion tRegion = sdRegion.getRegionAtCharacterOffset(offset);

            // in case of container we have the extract the PhpScriptRegion
            if (tRegion instanceof ITextRegionContainer) {
                ITextRegionContainer container = (ITextRegionContainer) tRegion;
                tRegion = container.getRegionAtCharacterOffset(offset);
            }

            if (tRegion instanceof ITwigScriptRegion) {
                ITwigScriptRegion scriptRegion = (ITwigScriptRegion) tRegion;
                tRegion = scriptRegion.getTwigToken(offset
View Full Code Here

            // this is extremely rare, but valid
            else if (type == DOMRegionContext.WHITE_SPACE) {
                ITextRegion lastRegion = currentNode.getLastRegion();
                // pack the embedded container with this region
                if (lastRegion instanceof ITextRegionContainer) {
                    ITextRegionContainer container = (ITextRegionContainer) lastRegion;
                    container.getRegions().add(region);
                    // containers must have parent set ...
                    // setting for EACH subregion is redundent, but not sure
                    // where else to do, so will do here for now.
                    container.setParent(currentNode);
                    // DW 4/16/2003 regions no longer have parents
                    // region.setParent(container);
                    if (region instanceof ITextRegionContainer) {
                        ((ITextRegionContainer) region).setParent(currentNode);
                    }
                    region.adjustStart(container.getLength()
                            - region.getStart());
                }
                currentNode.getLastRegion().adjustLength(region.getLength());
                currentNode.adjustLength(region.getLength());
            } else if (type == DOMRegionContext.UNDEFINED
View Full Code Here

                    .getRegionAtCharacterOffset(formattedLineStart);
            ITextRegion firstTokenInLine = sdRegion
                    .getRegionAtCharacterOffset(formattedLineStart);
            int regionStart = sdRegion.getStartOffset(firstTokenInLine);
            if (firstTokenInLine instanceof ITextRegionContainer) {
                ITextRegionContainer container = (ITextRegionContainer) firstTokenInLine;
                firstTokenInLine = container
                        .getRegionAtCharacterOffset(formattedLineStart);
                regionStart += firstTokenInLine.getStart();
            }

            if (firstTokenInLine instanceof ITwigScriptRegion) {
View Full Code Here

        }
        int regionStart = sdRegion.getStartOffset(tRegion);

        // in case of container we have the extract the PhpScriptRegion
        if (tRegion instanceof ITextRegionContainer) {
            ITextRegionContainer container = (ITextRegionContainer) tRegion;
            tRegion = container.getRegionAtCharacterOffset(offset);
            regionStart += tRegion.getStart();
        }
        do {
            if (tRegion instanceof ITwigScriptRegion) {
                ITwigScriptRegion scriptRegion = (ITwigScriptRegion) tRegion;
View Full Code Here

            int regionStart = sdRegion.getStartOffset(tRegion);

            // in case of container we have the extract the TwigScriptRegion
            if (tRegion != null && tRegion instanceof ITextRegionContainer) {
                ITextRegionContainer container = (ITextRegionContainer) tRegion;
                tRegion = container.getRegionAtCharacterOffset(offset);
                regionStart += tRegion.getStart();
            }

            if (tRegion != null && tRegion instanceof ITwigScriptRegion) {
                ITwigScriptRegion scriptRegion = (ITwigScriptRegion) tRegion;
View Full Code Here

            int regionStart = sdRegion.getStartOffset(tRegion);

            // in case of container we have the extract the PhpScriptRegion
            if (tRegion != null && tRegion instanceof ITextRegionContainer) {
                ITextRegionContainer container = (ITextRegionContainer) tRegion;
                tRegion = container.getRegionAtCharacterOffset(offset);
                regionStart += tRegion.getStart();
            }

            if (tRegion != null && tRegion instanceof ITwigScriptRegion) {
                ITwigScriptRegion scriptRegion = (ITwigScriptRegion) tRegion;
View Full Code Here

        }
        int regionStart = sdRegion.getStartOffset(tRegion);

        // in case of container we have the extract the PhpScriptRegion
        if (tRegion instanceof ITextRegionContainer) {
            ITextRegionContainer container = (ITextRegionContainer) tRegion;
            tRegion = container.getRegionAtCharacterOffset(offset);
            regionStart += tRegion.getStart();
        }

        if (tRegion instanceof ITwigScriptRegion) {
            ITwigScriptRegion scriptRegion = (ITwigScriptRegion) tRegion;
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer

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.