org.eclipse.ui.texteditor.IElementStateListener Java Examples
The following examples show how to use
org.eclipse.ui.texteditor.IElementStateListener.
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: DocumentProviderStub.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void addElementStateListener(IElementStateListener listener) { throw new UnsupportedOperationException(); }
Example #2
Source File: DocumentProviderStub.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void removeElementStateListener(IElementStateListener listener) { throw new UnsupportedOperationException(); }
Example #3
Source File: CasDocumentProvider.java From uima-uimaj with Apache License 2.0 | 4 votes |
/** * Fire element deleted. * * @param element the element */ protected void fireElementDeleted(Object element) { for (IElementStateListener listener : elementStateListeners) { listener.elementDeleted(element); } }
Example #4
Source File: CasDocumentProvider.java From uima-uimaj with Apache License 2.0 | 4 votes |
/** * Fire element changed. * * @param element the element */ protected void fireElementChanged(Object element) { for (IElementStateListener listener : elementStateListeners) { listener.elementContentReplaced(element); } }
Example #5
Source File: CasDocumentProvider.java From uima-uimaj with Apache License 2.0 | 2 votes |
/** * Adds the element state listener. * * @param listener the listener */ public void addElementStateListener(IElementStateListener listener) { elementStateListeners.add(listener); }
Example #6
Source File: CasDocumentProvider.java From uima-uimaj with Apache License 2.0 | 2 votes |
/** * Removes the element state listener. * * @param listener the listener */ public void removeElementStateListener(IElementStateListener listener) { elementStateListeners.remove(listener); }
Example #7
Source File: CasDocumentProvider.java From uima-uimaj with Apache License 2.0 | 2 votes |
/** * Fire element dirty state changed. * * @param element the element * @param isDirty the is dirty */ protected void fireElementDirtyStateChanged(Object element, boolean isDirty) { for (IElementStateListener listener : elementStateListeners) { listener.elementDirtyStateChanged(element, isDirty); } }