NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

TopComponentGroup

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Raffael Maio
Posted via mailing list.





PostPosted: Fri Oct 24, 2008 4:19 pm    Post subject: TopComponentGroup Reply with 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
Back to top
Raffael Maio
Posted via mailing list.





PostPosted: Sun Oct 26, 2008 9:45 am    Post subject: TopComponentGroup Reply with 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
Back to top
Marek Slama
Posted via mailing list.





PostPosted: Sun Oct 26, 2008 2:08 pm    Post subject: TopComponentGroup Reply with quote

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.





PostPosted: Sun Oct 26, 2008 2:16 pm    Post subject: TopComponentGroup Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo