void () { myProject.getMessageBus().connect().subscribe(ChangeListListener.TOPIC, new MyChangeListListener()); EditorFactory.getInstance().getEventMulticaster().addDocumentListener(new MyDocumentListener(), myProject); }