NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Raffael Maio Posted via mailing list.
|
Posted: Fri Oct 24, 2008 4:19 pm Post subject: TopComponentGroup |
|
|
Hi all,
Does anyone already figure out the problem of TopComponentGroup with dynamic component? In fact, in the blog of Greertjan (http://blogs.sun.com/geertjan/entry/creating_a_window_group) he mention that :
The value of the tc-id element must match the value of the PREFERRED_ID String that was generated in your TopComponent, when you finished the Window Component wizard. Have a look, and notice that the two match.
However, our TopComponent PREFERRED_ID is generated dynamically. Is there another way to insert a TopComponent to a group?
Regards,
Raffael |
|
| Back to top |
|
 |
Raffael Maio Posted via mailing list.
|
Posted: Sun Oct 26, 2008 9:45 am Post subject: TopComponentGroup |
|
|
Hi all,
Does anyone already figure out the problem of TopComponentGroup with dynamic component? In fact, in the blog of Greertjan (http://blogs.sun.com/geertjan/entry/creating_a_window_group) he mention that :
The value of the tc-id element must match the value of the PREFERRED_ID String that was generated in your TopComponent, when you finished the Window Component wizard. Have a look, and notice that the two match.
However, our TopComponent PREFERRED_ID is generated dynamically. Is there another way to insert a TopComponent to a group?
Regards,
Raffael |
|
| Back to top |
|
 |
Marek Slama Posted via mailing list.
|
Posted: Sun Oct 26, 2008 2:08 pm Post subject: TopComponentGroup |
|
|
Raffael Maio wrote:
| Quote: |
Hi all,
Does anyone already figure out the problem of TopComponentGroup with
dynamic component? In fact, in the blog of Greertjan
(http://blogs.sun.com/geertjan/entry/creating_a_window_group) he
mention that :
/The value of the //tc-id// element must match the value of the
//PREFERRED_ID// String that was generated in your TopComponent, when
you finished the Window Component wizard. Have a look, and notice that
the two match./
However, our TopComponent /PREFERRED_ID/ is generated dynamically. Is
there another way to insert a TopComponent to a group?
Regards,
Raffael
| Group is designed to handle persistent TC (singletons) difined in module
layer which has
defined ID. If you TC are created at runtime there is no guarantee that
TC ID has predefined
value because ID must be unique.
Marek |
|
| Back to top |
|
 |
Wade Chandler Posted via mailing list.
|
Posted: Sun Oct 26, 2008 2:16 pm Post subject: TopComponentGroup |
|
|
If you really need a *dynamic* group the easiest thing to do would be to some kind of a listener or action and have it open and close a set of components and not try to use the static grouping mechanism. You can have that coding in minutes. Then, you can use what ever mechanism you need to register them whether it be the file system (layer/user directory) or preferences which you can persist.
Wade
==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org
From: Raffael Maio <address-removed>
To: address-removed
Sent: Sunday, October 26, 2008 4:45:22 AM
Subject: [openide-dev] TopComponentGroup
Hi all,
Does anyone already figure out the problem of TopComponentGroup with dynamic component? In fact, in the blog of Greertjan (http://blogs.sun.com/geertjan/entry/creating_a_window_group) he mention that :
The value of the tc-id element must match the value of the PREFERRED_ID String that was generated in your TopComponent, when you finished the Window Component wizard. Have a look, and notice that the two match.
However, our TopComponent PREFERRED_ID is generated dynamically. Is there another way to insert a TopComponent to a group?
Regards,
Raffael |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|