Java 类org.eclipse.xtext.ui.editor.model.IXtextModelListener 实例源码

项目:bts    文件:OutlinePage.java   
protected void configureModelListener() {
    modelListener = new IXtextModelListener() {
        public void modelChanged(XtextResource resource) {
            try {
                scheduleRefresh();
            } catch (Throwable t) {
                LOG.error("Error refreshing outline", t);
            }
        }

    };
    xtextDocument.addModelListener(modelListener);
}