anchor.diff:          editorArea.selectFile(resource, switchesTab: true);
         });
       });
  -
  +  }
  +
  +  void initEditorArea() {
  +    editor = new AceEditor(new DivElement());
       editorArea = new EditorArea(document.getElementById('editorArea'),
  -                                editorManager,
  -                                allowsLabelBar: true);
  +        editorManager,
  +        allowsLabelBar: true);
       editorArea.onSelected.listen((EditorTab tab) {
         _filesController.selectFile(tab.file);
         localPrefs.setValue('lastFileSelection', tab.file.path);
       });
  +  }
  +
  +  void initFilesController() {
       _filesController = new FilesController(workspace, this);
  -
  -    setupSplitView();
  -    setupFileActions();
  -    setupEditorThemes();
  -
  -    // Init the bootjack library (a wrapper around bootstrap).
  -    bootjack.Bootjack.useDefault();
  -
  -    createActions();
  -    buildMenu();
  -
  -    actionManager.registerKeyListener();
  -  }
  -
  -  String get appName => i18n('app_name');
  -
  -  String get appVersion => chrome.runtime.getManifest()['version'];
  -
  -  PlatformInfo get platformInfo => _platformInfo;
  -
  -  void setupSplitView() {
  -    _splitView = new SplitView(querySelector('#splitview'));
  -    _splitView.onResized.listen((_) {
  -      editor.resize();
  -      syncPrefs.setValue('splitViewPosition', _splitView.position.toString());
  -    });
  -    syncPrefs.getValue('splitViewPosition').then((String position) {
  -      if (position != null) {
  -        int value = int.parse(position, onError: (_) => 0);
  -        if (value != 0) {
  -          _splitView.position = value;
  -        }
  -      }
  -    });
  -  }
  -
  -  void setupFileActions() {
  -    querySelector("#newFile").onClick.listen(
  -        (_) => actionManager.getAction('file-new').invoke());
  -    querySelector("#openFile").onClick.listen(
  -        (_) => actionManager.getAction('file-open').invoke());
  -  }
  -
  -  void setupEditorThemes() {
  -    syncPrefs.getValue('aceTheme').then((String theme) {
  -      if (theme != null && AceEditor.THEMES.contains(theme)) {
  -        editor.theme = theme;
  -      }
  -    });
     }
   
     void newFile() => notImplemented('Spark.newFile()');
  
positive.code:   }
  
    void createActions() {
      actionManager.registerAction(new FileNewAction(this));
      actionManager.registerAction(new FileOpenAction(this));
      actionManager.registerAction(new FileSaveAction(this));
  
negative.code:     actionManager.registerAction(new ProjectOpenAction(this));
      actionManager.registerAction(new RunTestsAction(this));
      actionManager.registerAction(new AboutSparkAction(this));
      actionManager.registerKeyListener();
    }
  
    void initToolbar() {
      querySelector("#newFile").onClick.listen(
          (_) => actionManager.getAction('file-new').invoke());
      querySelector("#openFile").onClick.listen(
          (_) => actionManager.getAction('file-open').invoke());
  
      buildMenu();
    }
  
    void buildMenu() {
  