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.

Bug 20442 - We need a way to listen for Open requests
Summary: We need a way to listen for Open requests
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: Other Other
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: API
Depends on:
Blocks: 16137
  Show dependency tree
 
Reported: 2002-02-11 22:18 UTC by Melih Ovadya
Modified: 2008-12-22 19:46 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Melih Ovadya 2002-02-11 22:18:52 UTC
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.
Comment 1 Jesse Glick 2002-02-13 13:23:09 UTC
Needs discussion. I'm not convinced the suggested request is actually
desirable, there may be some completely different solution.
Comment 2 Melih Ovadya 2002-02-13 20:28:54 UTC
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.
Comment 3 Jaroslav Tulach 2002-03-01 09:38:57 UTC
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 ()

Comment 4 Marek Grummich 2002-07-22 11:29:34 UTC
Set target milestone to TBD
Comment 5 Marek Grummich 2002-07-22 11:31:36 UTC
Set target milestone to TBD
Comment 6 Peter Zavadsky 2002-07-25 16:08:02 UTC
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?
Comment 7 Melih Ovadya 2002-07-25 22:12:30 UTC
Peter,

You are right, implementing NBDocument.CustomEditor gave 
me a workaround to solve that problem. I am closing this 
bug as fixed. Thanx.
Comment 8 Marian Mirilovic 2002-07-26 10:35:44 UTC
Ok, closed, thanks.