Re: Properties window not reacting to a TopComponent getting focus
Casqueiro Gilles <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <46731A37FFC5D047B3FAAD3558D349B7587E73D8@BMI-2K8-MS03.emea.bracco.priv> |
Hi Boris, I successfully implemented the CloneableOpenSupport. Thus I removed my custom “open” action. Your advices helped a lot. Thanks again. Gilles From: Boris Heithecker [mailto:[email protected]] Sent: vendredi 27 novembre 2015 18:08 To: [email protected] Subject: [platform-dev] Re: Properties window not reacting to a TopComponent getting focus Hello, in your editor TopComponent, you have to call TopComponent.setActivatedNodes(). Putting the node into the TC's lookup won't do. Put everythink else that needs to be activated when the TC is selected into the node's lookup. Also, consider using a subclass of CloneableOpenSupport in your DataObject to provide open, close etc. actions. Boris 2015-11-27 16:16 GMT+01:00 Casqueiro Gilles <[email protected]<mailto:[email protected]>>: Hi Geertjan, Here is the github url: https://github.com/gil-c/DemoPropertiesWindowNotWorking.git. The steps to reproduce the problem are described in the README.md file. Thanks for your help. Gilles From: geertjan wielenga [mailto:[email protected]<mailto:[email protected]>] Sent: vendredi 27 novembre 2015 11:59 To: [email protected]<mailto:[email protected]> Subject: [platform-dev] Re: Properties window not reacting to a TopComponent getting focus Make a small sample reproducing the problem, put it on GitHub, and send the link to GitHub here, so someone can take a look at the code and help you. Gj On 27-11-2015 11:50, Casqueiro Gilles wrote: Hi, I try to refactor a MultiViewElement to a simple TopComponent. Behind this I have a DataObject and a DataNode with an overridden createSheet method. Both with the MultiViewElement and the TopComponent implementations, when I select a node (i.e. a file) in the Favorite window, the Properties window displays the correct info. The problem is that when I select a tab in the editor mode, the Properties window is updated accordingly only with the MultiViewElement implementation. Selecting a tab of the TopComponent implementation has no effect on the Properties window, which just keeps the info from the previous node. I checked that the DataNode is in the lookup of my TopComponent, and that it’s getLookup method is called. Does anyone have an idea? Thanks, Gilles ----------------------------------------------------------------------- Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione. The information contained in this e-mail and any attachments is confidential and may also be privileged. If you are not the named recipient please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. ----------------------------------------------------------------------- ----------------------------------------------------------------------- Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione. The information contained in this e-mail and any attachments is confidential and may also be privileged. If you are not the named recipient please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. ----------------------------------------------------------------------- ----------------------------------------------------------------------- Le informazioni contenute in questo messaggio di posta elettronica e relativi allegati sono riservate e confidenziali e ne è vietata la diffusione in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene gentile comunicazione. The information contained in this e-mail and any attachments is confidential and may also be privileged. If you are not the named recipient please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. -----------------------------------------------------------------------