use of org.erlide.engine.model.root.IErlElementDelta in project erlide_eclipse by erlang.
the class DefaultErlangFoldingStructureProvider method elementChanged.
@Override
public void elementChanged(final IErlElement element) {
if (fEditor == null) {
return;
}
final IDocumentProvider provider = fEditor.getDocumentProvider();
if (provider == null) {
return;
}
final IEditorInput input = fEditor.getEditorInput();
if (input == null) {
return;
}
fCachedDocument = provider.getDocument(input);
if (fCachedDocument == null) {
return;
}
// fHasHeaderComment = false;
try {
final ProjectionAnnotationModel model = fEditor.getAdapter(ProjectionAnnotationModel.class);
if (model == null) {
return;
}
fCachedModel = model;
if (element instanceof IErlModule && element != fModule) {
return;
}
final IErlElementDelta d = ErlangEngine.getInstance().getModel().createElementDelta(IErlElementDelta.CHANGED, IErlElementDelta.F_CONTENT, fModule);
processDelta(d);
} finally {
fCachedDocument = null;
fCachedModel = null;
}
}
Aggregations