Commit 96b9cd33 authored by Romain Bioteau's avatar Romain Bioteau Committed by GitHub
Browse files

feat(accessControl) handle dirty state using IFormPart (#754)

* refactor ExternalResourcesChangeListener

* use IFormPart to handle form lifecycle for dirty state
parent 1cc256e5
......@@ -76,6 +76,7 @@ public abstract class AbstractEditor<T> extends FormEditor implements IResourceC
@Override
public void doSave(IProgressMonitor monitor) {
formPage.doSave(monitor);
fSourceEditor.doSave(monitor);
}
......@@ -86,7 +87,7 @@ public abstract class AbstractEditor<T> extends FormEditor implements IResourceC
@Override
public boolean isDirty() {
return fSourceEditor.isDirty();
return fSourceEditor.isDirty() || formPage.isDirty();
}
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment