When does AbstractUIPlugin instantiate ViewPart? [message #149154] |
Fri, 24 October 2003 13:12  |
Eclipse User |
|
|
|
Originally posted by: tcn.spamgourmet.com
Hi!
I want to esthablish some MVC-like structure in my plugin.
So, I create a Controller in AbstractUIPlugin, but it need to know about the
View(Part). Where do I need to hook in?
Timo
|
|
|
|
|
|
|
|
|
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149272 is a reply to message #149270] |
Sat, 25 October 2003 05:44   |
Eclipse User |
|
|
|
Originally posted by: tcn.spamgourmet.com
Jiøí Walek wrote:
>
> "Jirí Walek" <walekj@dev.disnet.cz> pí¹e v diskusním pøíspìvku
> news:bnd61n$296$1@eclipse.org...
>>
>> "Timo Nentwig" <tcn@spamgourmet.com> píse v diskusním príspevku
>> news:bnd569$1qd$1@eclipse.org...
>> > Daniel Megert wrote:
>> > > Happens either on user action (Window > Show View) or because the
>> > > view is part of a perspective which is opened.
>> >
>> > But it must be some method of the AbstractUIPlugin which is invoked...
>>
>> No, it isn't.
>> T
>> he only connection between the plugin class and View is, that if the view
>> comes from the plugin A (the view class is in the same plugin (jar) as
>> plugin class) , than the plugin A is started and so the plugin class is
>> instantiated and startup method is called.
>
> More correct: Before the view (or any other class from plugin) class can
> be loaded and instantiated -- i.e. because the view is going to be opened
> -- the plugin where the class is whould be started and so the plugin class
> instantiated and startup method called.
So, what you mean is (W=Workbench[?], P=Plugin, V=View):
+-+
|W|
+-+
|
1 +-+-+ 2 // 1: eclipse startup, 2: Show View
| |
+-+ +-+
|P| |V|
+-+ +-+
and not
W -> P -> V
?
So, there is actually no point where I can hook in, is there?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05140 seconds