 import mx.utils.ObjectUtil;
 import mx.utils.StringUtil;
 
-import spark.components.TextSelectionHighlighting;
+import spark.components.supportClasses.RichEditableTextContainerManager;
+import spark.components.supportClasses.RichEditableTextEditManager;
 import spark.core.CSSTextLayoutFormat;
 import spark.core.IViewport;
 import spark.core.NavigationUnit;
 import spark.events.TextOperationEvent;
-import spark.components.supportClasses.RichEditableTextContainerManager;
-import spark.components.supportClasses.RichEditableTextEditManager;
 import spark.utils.TextUtil;
 
 use namespace mx_internal;

        if (textChanged || textFlowChanged || contentChanged)
        {
            lastGeneration = _textFlow ? _textFlow.generation : 0;
            
            // If the text, textFlow or content changed, there is no selection.
            // If we already have focus, set the selection to 0,0 so there is
            // an insertion point.  Since the text was changed programatically
            // the caller should set the selection to the desired position.
            if (getFocus() == this && editingMode != EditingMode.READ_ONLY)
            {
                var selectionManager:ISelectionManager = getSelectionManager();
                selectionManager.selectRange(0, 0);        
                if (!selectionManager.focused)
                    selectionManager.focusInHandler(null);
                releaseSelectionManager();            
            }
                
            // Handle the case where the initial text, textFlow or content 
            // is displayed as a password.
            if (displayAsPassword)

            // Otherwise the StringTextLineFactory will put
            // all of the lines into a single paragraph
            // and FTE performance will degrade on a large paragraph.
            if (_text.indexOf("\n") != -1 || _text.indexOf("\r") != -1)
            {
                _textFlow = staticPlainTextImporter.importToFlow(_text);
                _textContainerManager.setTextFlow(_textFlow);
