I'm making an editor that manipulates the information of a file through tags.
I made some logic to detect editing these tags, but after a lot of research, I still haven't found a way to manually handle the dirty state of my editor.
With this I can get the reference of my editor:
IEditorReference[] ed = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
for (IEditorReference iEditorReference : ed) {
if (iEditorReference.getId().equals(*my editor's id*)) {
??? what to do here? ???
}
}