Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » When does AbstractUIPlugin instantiate ViewPart?
When does AbstractUIPlugin instantiate ViewPart? [message #149154] Fri, 24 October 2003 17:12 Go to next message
Eclipse UserFriend
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 #149175 is a reply to message #149154] Fri, 24 October 2003 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

See for how Views work in Eclipse:

http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l


--
Thanks, Rich Kulp

Re: When does AbstractUIPlugin instantiate ViewPart? [message #149182 is a reply to message #149175] Fri, 24 October 2003 18:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tcn.spamgourmet.com

Rich Kulp wrote:

> See for how Views work in Eclipse:
>
> http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l

There's no information about my question in this article.

I know that the View is declared in plugin.xml and that it is instantiated
by the plugin but I don't know how or when.
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149224 is a reply to message #149182] Fri, 24 October 2003 20:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Timo Nentwig wrote:

>Rich Kulp wrote:
>
>
>
>>See for how Views work in Eclipse:
>>
>> http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l
>>
>>
>
>There's no information about my question in this article.
>
>I know that the View is declared in plugin.xml and that it is instantiated
>by the plugin but I don't know how or when.
>
>
Happens either on user action (Window > Show View) or because the view
is part of a perspective which is opened.

Dani
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149261 is a reply to message #149224] Sat, 25 October 2003 06:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tcn.spamgourmet.com

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...
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149265 is a reply to message #149261] Sat, 25 October 2003 06:43 Go to previous messageGo to next message
Jiri Walek is currently offline Jiri WalekFriend
Messages: 14
Registered: July 2009
Junior Member
"Timo Nentwig" <tcn@spamgourmet.com> p
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149270 is a reply to message #149265] Sat, 25 October 2003 06:47 Go to previous messageGo to next message
Jiri Walek is currently offline Jiri WalekFriend
Messages: 14
Registered: July 2009
Junior Member
"Jir
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149272 is a reply to message #149270] Sat, 25 October 2003 09:44 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149275 is a reply to message #149272] Sat, 25 October 2003 12:57 Go to previous messageGo to next message
Jiri Walek is currently offline Jiri WalekFriend
Messages: 14
Registered: July 2009
Junior Member
"Timo Nentwig" <tcn@spamgourmet.com> p
Re: When does AbstractUIPlugin instantiate ViewPart? [message #149281 is a reply to message #149272] Sat, 25 October 2003 13:02 Go to previous message
Jiri Walek is currently offline Jiri WalekFriend
Messages: 14
Registered: July 2009
Junior Member
Please have a look at:

http://www.eclipse.org/articles/Article-Plug-in-architecture /plugin_architecture.html

JW
Previous Topic:Property View - Always Alphabetical
Next Topic:Is creating threads in a view not legal?
Goto Forum:
  


Current Time: Sat Jul 13 19:21:59 GMT 2024

Powered by FUDForum. Page generated in 0.04423 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top