Maybe this one:

https://github.com/apache/netbeans/blob/d4c991929ac33daf2c8733b0f700e00e0f70acb7/platform/openide.text/src/org/openide/text/CloneableEditorSupport.java#L1701 ?

On 6/9/22 16:48, Ernie Rael wrote:
Thanks Laszlo,

If I new where it was...

Now that I'll pull my head out of my DataObject, and look at the FileObject, I might have a better clue as to what to look for. I was hoping someone could point to the editor files where the action is happening.

-ernie

On 6/9/22 6:52 AM, Laszlo Kishalmi wrote:
You might also check how the editor handles the reload, and try to improve the caret persistence situation.

On 6/7/22 18:17, Ernie Rael 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




---------------------------------------------------------------------
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






---------------------------------------------------------------------
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




---------------------------------------------------------------------
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



Reply via email to