Hallo Ernie. Are you aware of the FileObject <https://bits.netbeans.org/dev/javadoc/org-openide-filesystems/org/openide/filesystems/FileObject.html> class and its FileChageListener <https://bits.netbeans.org/dev/javadoc/org-openide-filesystems/org/openide/filesystems/FileChangeListener.html> s?
On Tue, Jun 7, 2022 at 7:17 PM Ernie Rael <err...@raelity.com> wrote: > Hi all, > > When NetBeans detects that a file has been changed externally, it > updates the file. When this happens, my plugin usually /looses/ its > javax.swing.text.Positions; they go to offset 0. > > How can I get notified or detect that this is about to happen so I can > try to preserve the marks. Notification that it just happened would be > better than nothing. > > Any hints on how to do this, or suggestions on where to look? > > Thanks, > -ernie > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >