|A few questions regarding the more basic stuff [message #724173]
||Sun, 11 September 2011 04:24
| Just Mike
Registered: June 2011
1) Can somebody please explain what is a site? i can't seem to find anywhere a proper definition of this term?
2) What is the purpose of the IViewSite interface?...it does not have any children (class or interface, as specified in the docs, this interface is not supposed to be extende); why define those two methods if there isn't a single class that implements them? what is the purpose of an IViewSite variable since that variable will not have any properties and it has only pure virtual methods? and there's no point in adapting to it either
I already looked through the docs but i can 't seem to find a concrete explanation..
Ok upon further documenting i think i may have found out what a site is: an object that gets associated with a workbench part (view or editor) by means of the init() method.. but what exactly happens to that reference of the site i dont know since Viewpart for example does not have a property that stores the reference to the site object..a link to a diagram or something would be much appreciated
LE: Is the reference to the site object stored in some kind of register along with the reference to the object that created it?
" The IViewPart.init method is called to initialize the context for the view. An IViewSite object is passed, and contains methods to get the containing page, window, and other services is passed. " What is the use since there is no implementing class?..
[Updated on: Sun, 11 September 2011 19:31]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02455 seconds