     table.unlockModifiedStatus()
 
     return table
+
+  serialize: ->
+    {@pathOptions}

        when 'small' then @getSmallTable()

  getChoiceForPath: (path) ->
    @pathsOptions?[path]?.choice

  storeChoiceForPath: (path, choice) ->
    @pathsOptions ?= {}
    @pathsOptions[path] ?= {}
    @pathsOptions[path].choice = choice

  getOptionsForPath: (path) ->
    @pathsOptions?[path]?.options

  storeOptionsForPath: (path, options) ->
    @pathsOptions ?= {}
    @pathsOptions[path] ?= {}
    @pathsOptions[path].options = options

  getSmallTable: ->
    table = new TableEditor

      type: 'integer'
      default: 2

  activate: ({@pathOptions}) ->
    TableEditor ?= require './table-editor'
    TableElement ?= require './table-element'
    TableElement.registerViewProvider()
