   
 doImport = ->
   try
-    data = parseFieldData E('import').value
-    application.cells = importField data 
+    application.importData E('import').value
     updatePopulation()
     redraw()
     E('import-dialog').style.display = 'none'

    updateCanvasSize()
    if found > 0
      @navigator.navigateToResult 0
    

updateCanvasSize = ->
  return if canvasSizeUpdateBlocked

context = canvas.getContext "2d"

application = new Application
application.initialize new UriConfig

dragHandler = null

