Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Multiple view but using the same View-class (RCP)
Multiple view but using the same View-class (RCP) [message #220206] Thu, 01 April 2004 14:35 Go to next message
Eclipse UserFriend
Originally posted by: news.vadalus.com

Hi all,

Can anyone tell me whether it is possible to use multiple instances of
the same view class? I have a view which is repeated numerous times in
my perspective, this view is always the same class just showing
different information depending on the values passed to it (imagine a
directory viewer, for example, showing differnet dir views in the same
perspective).

However, I am not sure how I would represent this in the plugin.xml.

Has anyone else done this?

Thanks
Re: Multiple view but using the same View-class (RCP) [message #220237 is a reply to message #220206] Thu, 01 April 2004 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: news.vadalus.com

Just to clarify, I am not talking about something which would be solved
using

allowMultiple=true

in the plugin.xml.

I want each view to be initialized differently.

Liam


> Hi all,
>
> Can anyone tell me whether it is possible to use multiple instances of
> the same view class? I have a view which is repeated numerous times in
> my perspective, this view is always the same class just showing
> different information depending on the values passed to it (imagine a
> directory viewer, for example, showing differnet dir views in the same
> perspective).
>
> However, I am not sure how I would represent this in the plugin.xml.
>
> Has anyone else done this?
>
> Thanks
Re: Multiple view but using the same View-class (RCP) [message #222403 is a reply to message #220237] Tue, 06 April 2004 06:36 Go to previous message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Vadalus wrote:
> Just to clarify, I am not talking about something which would be solved
> using
>
> allowMultiple=true
>
> in the plugin.xml.
>
> I want each view to be initialized differently.
>
> Liam
>
>
>> Hi all,
>>
>> Can anyone tell me whether it is possible to use multiple instances of
>> the same view class? I have a view which is repeated numerous times in
>> my perspective, this view is always the same class just showing
>> different information depending on the values passed to it (imagine a
>> directory viewer, for example, showing differnet dir views in the same
>> perspective).
>>
>> However, I am not sure how I would represent this in the plugin.xml.
>>
>> Has anyone else done this?
>>
>> Thanks

You can use EditorPart which has an init method.

http://www.coconut-palm-software.com/the_visual_editor/eclip se_rcp
Previous Topic:linking editors with perspectives
Next Topic:Incorrect value from system property "java.io.tmpdir"
Goto Forum:
  


Current Time: Fri Jun 06 01:56:43 EDT 2025

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

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

Back to the top