Open TopComponent with MultiViewElements programmatically
Paco Barrera <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAFS-qLk03UKSaA0TLztofZsd2XfpsADHeD9LCAQyVh2gn=bdQA@mail.gmail.com> |
Hi team,
I have 3 MultiViewElement for a custom file type and I need to open a
TopComponent for a DataObject programmatically.
The problem is that I haven't any class for a TopComponent, only the
MultiViewElement's registered in SFS via annotations for the custom file
type mime-type.
I will need something like this, but I don't know how to reference the
TopComponent class:
TopComponent tc = new MyTopComponent(myDataObject);
tc.open();
tc.requestActive();
Related to this issue, in all 3 MultiViewElement's I have initialization
code that I would to centralize in the TopComponent.
Is possible achieve this?
Thanks in advance.