org.eclipse.xtext.ui.editor.model.IXtextModelListener Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.model.IXtextModelListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OutlinePage.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
protected void configureModelListener() { if (xtextDocument != null) { // possibly disposed in the meantime modelListener = new IXtextModelListener() { @Override public void modelChanged(XtextResource resource) { try { scheduleRefresh(); } catch (Throwable t) { LOG.error("Error refreshing outline", t); } } }; xtextDocument.addModelListener(modelListener); } }
Example #2
Source File: DirtyStateEditorSupportTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void addModelListener(IXtextModelListener listener) { }
Example #3
Source File: DirtyStateEditorSupportTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void removeModelListener(IXtextModelListener listener) { }
Example #4
Source File: AbstractDocumentSimulatingTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void addModelListener(IXtextModelListener listener) { fail("Unexpected call"); }
Example #5
Source File: AbstractDocumentSimulatingTest.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void removeModelListener(IXtextModelListener listener) { fail("Unexpected call"); }
Example #6
Source File: AbstractSARLQuickfixTest.java From sarl with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void addModelListener(IXtextModelListener listener) { throw new UnsupportedOperationException(); }
Example #7
Source File: AbstractSARLQuickfixTest.java From sarl with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void removeModelListener(IXtextModelListener listener) { throw new UnsupportedOperationException(); }