palette entry creation trouble [message #151921] |
Fri, 24 September 2004 08:40  |
Eclipse User |
|
|
|
Originally posted by: jojo.virtutech.se
Hi!
I'm wondering how the 'template' and 'factory' parameters of the
CombinedTemplateCreationEntry class constructor interact. I'm trying to
create a number of such palette entries which are supposed to create
objects in the data model of the same class but I need to be able to pass
parameters to them.
I have, say, a list of names
String[] names = { "joe", "alice", "bob" }
and I want to create a CombinedTemplateCreationEntry for each of these. I
don't want to have a separate class for each of the entries (I don't know
them on beforehand), but I want to pass the name to the data model as a
parameter.
How to I accomplish this?
|
|
|
|
|
|
Re: palette entry creation trouble [message #152487 is a reply to message #152470] |
Thu, 30 September 2004 15:03  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The template is used by the Template Drop target listener. Similar to the
creation tool, it will turn a native drop into a CreateRequest.
"Jesper Eskilson" <jojo@virtutech.se> wrote in message
news:cjh1r0$pi6$1@eclipse.org...
> Randy Hudson wrote:
>
> > A template can be anything, including a creation factory if you want.
>
> Yes, but what do you do with the template? How do you use it if you
> subclass your own CreationFactory?
>
> /Jesper
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.10700 seconds