How can i say that my file just got modified from some other thread?

I have set from: Settings/Editor(IDE Settings)/Editor Tabs: Check "Mark modified tabs with asterisk"
How can a 'fire' from an external thread  to change the state of the editor(tab), to show or not the astersk?

public class MyEditor implements FileEditor, FileEditorManagerListener { ....

@Override
  public boolean isModified() {
         return isDirty;
  }

//How can i force from the external thread to recalculate "isModified" state ?

public void changeIsModifiedState(newDirtyState) {
     if (isDirty != newDirtyState) {
          isDirty = newDirtyState;
          ..... ...... //code to neede to fire the change
     }
}

---
Original message URL: http://devnet.jetbrains.net/message/5506812#5506812

Please sign in to leave a comment.