       @setLineWidgets row, column, origin
 
 
+  setContentFromCollaborativeString: ->
+
+    {path} = @getFile()
+
+    unless string = @rtm.getFromModel path
+      return @rtm.create 'string', path, @getContent()
+
+    @setContent string.getText(), no
+
+
   listenCollaborativeStringChanges: ->
 
-    filePath = @getFile().path
-    string   = @rtm.getFromModel filePath
-
-    unless string
-      return @rtm.create 'string', filePath, @getContent()
-
-    @setContent string.getText(), no
+    return  unless string = @rtm.getFromModel @getFile().path
 
     @rtm.bindRealtimeListeners string, 'string'
 


    string = @rtm.getFromModel @getFile().path

    return  unless changedString is string
    return  if @isChangedByMe change

    @applyChange change


    file.once 'fs.delete.finished', =>
      KD.getSingleton('appManager').tell 'IDE', 'handleFileDeleted', file

    @once 'RealTimeManagerSet', @bound 'setContentFromCollaborativeString'
    @once 'RealTimeManagerSet', @bound 'listenCollaborativeStringChanges'


