method #open opens a viewer, method openEditor opens an editor (spec).