This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In external editor, we need a way to listen for Open requests (for fronting the buffer when the file is already open). With the default editor, when a file is already opened, if one double-clicks on that filename in the Explorer, the file gets fronted. This happens in org.openide.text.ClonableEditor:requestFocus. I need to get notified when that fronting happens, basically when the OpenAction is performed. As it is, there is no way to do it. Summary: The API needs to be extended such that we can somehow register a listener to the Node for OpenAction to get notified each time one double-clicks on the filename in Explorer window.
Needs discussion. I'm not convinced the suggested request is actually desirable, there may be some completely different solution.
As long as there is a way to get notified every time the default openAction is invoked, I am fine with it. But this solution should not depend on UI features such as focus requests.
Double-click in explorer is not related to opening a document. What you really want is to be able to be informed when somebody calls CloneableEditorSupport.open ()
Set target milestone to TBD
Melih, wasn't this issue solved the way you provide your component as custom editor, and when it is called requestFocus on it you are informed about the change, was it?
Peter, You are right, implementing NBDocument.CustomEditor gave me a workaround to solve that problem. I am closing this bug as fixed. Thanx.
Ok, closed, thanks.