Openning programatically a TopComponent
Paco Barrera <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAFS-qLm2-zchKQY=N+mxq6roZ7jseQmWjrSPd2QEJPRSX7bsYQ@mail.gmail.com> |
Hi,
I am openning a TopComponent for a DataObject with this code after
performing an action:
[code]TopComponent tc = MultiViews.createMultiView("text/experiment+xml",
expDO);
tc.open();
tc.requestActive();[/code]
This works fine, but if I double click in the node of the DataObject, a new
TopComponent is opened even though a TopComponent is just opened for it.
However, if I only open a TopComponet with double click, always one and
unique TopComponent is opened for the DataObject.
This behaviour only happens when I open a TopComponent with the code above.
I suspect that the TopComponent is not registered in the
TopComponent.registry, but I don't know how to achieve this.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>