void setEditor(ASDEditor newEditor) {
   editor = newEditor;
   setContext(newEditor.getNetPanel());
 }