As I already said, you can use Notation model API to perform nearly all the
checks/modifications you need (without openning an editor).
Another option (if you really need EditParts) is to open diagram in a viewer
without actual UI. This is a GEF-related question and AFAIK GEF allows it.