|
What OTrunk displays depends on what is returned in the getComponent()
method in the view associated with an OTObject. OTrunk will
automatically call getComponent() on the first child of the otrunk/root
element in the otml. It is up to that element's view to render/ignore
any children OTObjects. The view <-> object relationships are defined in the otml -- in this case, since the root OTObject is an OTPasProject, the view that will be displayed is the OTPasProjectView. It looks like this view is set to instantiate the PasProject object via the controller, and then display a new JLabel("Loading Pas project, " + pasProject.getTitle())... which is what you're seeing. I just checked in a change to the view to where it grabs the frame from the PasProject, calls showFrame(), and then hides the frame that pops up. It then grabs the main contentPane from the frame and returns that. This seems to work, but it seems kludgey to have to render/hide the PasFrame (it wouldn't show anything without doing that). It will give you a starting point at least. Update your pas-otrunk project and give it a shot. :-) -- Aaron Geoffrey Kwan wrote: Awesome, I've made a little bit of progress using your help. I now run the code below and the popup window displays and the text within it says "Loading Pas project, Project Title". The window just stays like that and never changes though. Clicking in the window does nothing. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SAIL-Dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SAIL-Dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [SAIL-Dev] Re: Preview project not working Geoffrey Kwan
- [SAIL-Dev] Re: Preview project not working Scott Cytacki
- [SAIL-Dev] Re: Preview project not working Geoffrey Kwan
- [SAIL-Dev] Re: Preview project not working Aaron Unger
- [SAIL-Dev] Re: Preview project not working Geoffrey Kwan
