Skip to main content



      Home
Home » Eclipse Projects » GEF » PaletteCustomizer. save implementation
PaletteCustomizer. save implementation [message #156614] Tue, 02 November 2004 16:35 Go to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

I have a PaletteCustomizer with which it is possible to add nodes and =

connections to the palette. Now I have to implement the =

PaletteCustomizer.save() method.

How do i access the palette`s model? I have no idea how the palette is =
=

implemented internally...

I guess I have to pass to my Customizer the paletteroot or the =

paletteviewer and then acces the palette`s model somehow from there.

Any tips? pointers to the right classes to look at?
Re: PaletteCustomizer. save implementation [message #156682 is a reply to message #156614] Wed, 03 November 2004 19:20 Go to previous messageGo to next message
Eclipse UserFriend
The palette root IS the model. Or rather, the children of the palette root
are the model.

"Frank Dyck" <dyx@gmx.net> wrote in message news:opsguwxznq0i05et@celeron...
I have a PaletteCustomizer with which it is possible to add nodes and
connections to the palette. Now I have to implement the
PaletteCustomizer.save() method.

How do i access the palette`s model? I have no idea how the palette is
implemented internally...

I guess I have to pass to my Customizer the paletteroot or the
paletteviewer and then acces the palette`s model somehow from there.

Any tips? pointers to the right classes to look at?
Re: PaletteCustomizer. save implementation [message #156728 is a reply to message #156682] Thu, 04 November 2004 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

I see. Thanks. Dumb question.
The PaletteRoot has all the PaletteEntry items.
What i needed was to access the regular Model classes that are passed to=
=

the Entries via the factories. But i already found a solution by =

subclassing PaletteEntry.



> The palette root IS the model. Or rather, the children of the palette=
=

> root
> are the model.
>
> "Frank Dyck" <dyx@gmx.net> wrote in message =

> news:opsguwxznq0i05et@celeron...
> I have a PaletteCustomizer with which it is possible to add nodes and
> connections to the palette. Now I have to implement the
> PaletteCustomizer.save() method.
>
> How do i access the palette`s model? I have no idea how the palette i=
s
> implemented internally...
>
> I guess I have to pass to my Customizer the paletteroot or the
> paletteviewer and then acces the palette`s model somehow from there.
>
> Any tips? pointers to the right classes to look at?
>
>
Re: PaletteCustomizer. save implementation [message #156921 is a reply to message #156728] Thu, 04 November 2004 22:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Do you have to subclass the entry, or can't you write your own factory
types? I'm not sure I understand what you were trying to access. Our
factory implementation returns the class in getObjectType().

"Frank Dyck" <dyx@gmx.net> wrote in message news:opsgxnqrsx0i05et@celeron...

I see. Thanks. Dumb question.
The PaletteRoot has all the PaletteEntry items.
What i needed was to access the regular Model classes that are passed to
the Entries via the factories. But i already found a solution by
subclassing PaletteEntry.



> The palette root IS the model. Or rather, the children of the palette
> root
> are the model.
>
> "Frank Dyck" <dyx@gmx.net> wrote in message
> news:opsguwxznq0i05et@celeron...
> I have a PaletteCustomizer with which it is possible to add nodes and
> connections to the palette. Now I have to implement the
> PaletteCustomizer.save() method.
>
> How do i access the palette`s model? I have no idea how the palette is
> implemented internally...
>
> I guess I have to pass to my Customizer the paletteroot or the
> paletteviewer and then acces the palette`s model somehow from there.
>
> Any tips? pointers to the right classes to look at?
>
>
Re: PaletteCustomizer. save implementation [message #156961 is a reply to message #156921] Fri, 05 November 2004 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dyx.gmx.net

I have a generic NodeModel which is passed parameters in its factory.
In the palette i want the palette-entry and the parameters for the model=
=

that it creates to be editable. I.e. you can change the parameters of t=
he =

model that the entry creates in the palette customizer.

So i subclass the ToolEntry with MyNodeToolEntry and provide access to t=
he =

parameters that are given to the NodeModels factory.


> Do you have to subclass the entry, or can't you write your own factory=

> types? I'm not sure I understand what you were trying to access. Our=

> factory implementation returns the class in getObjectType().
>
> "Frank Dyck" <dyx@gmx.net> wrote in message =

> news:opsgxnqrsx0i05et@celeron...
>
> I see. Thanks. Dumb question.
> The PaletteRoot has all the PaletteEntry items.
> What i needed was to access the regular Model classes that are passed =
to
> the Entries via the factories. But i already found a solution by
> subclassing PaletteEntry.
>
>
>
>> The palette root IS the model. Or rather, the children of the palett=
e
>> root
>> are the model.
>>
>> "Frank Dyck" <dyx@gmx.net> wrote in message
>> news:opsguwxznq0i05et@celeron...
>> I have a PaletteCustomizer with which it is possible to add nodes and=

>> connections to the palette. Now I have to implement the
>> PaletteCustomizer.save() method.
>>
>> How do i access the palette`s model? I have no idea how the palette =
is
>> implemented internally...
>>
>> I guess I have to pass to my Customizer the paletteroot or the
>> paletteviewer and then acces the palette`s model somehow from there.
>>
>> Any tips? pointers to the right classes to look at?
>>
>>
>
>



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: PaletteCustomizer. save implementation [message #157292 is a reply to message #156961] Mon, 08 November 2004 10:37 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Ok. That makes sense when you bring the customizer into the picture. Of
course, you might implement save() by inspecting the entries and their
factory's parameters. But it's all the same.

"Frank Dyck" <dyx@gmx.net> wrote in message news:opsgzqowb00i05et@celeron...
I have a generic NodeModel which is passed parameters in its factory.
In the palette i want the palette-entry and the parameters for the model
that it creates to be editable. I.e. you can change the parameters of the
model that the entry creates in the palette customizer.

So i subclass the ToolEntry with MyNodeToolEntry and provide access to the
parameters that are given to the NodeModels factory.


> Do you have to subclass the entry, or can't you write your own factory
> types? I'm not sure I understand what you were trying to access. Our
> factory implementation returns the class in getObjectType().
>
> "Frank Dyck" <dyx@gmx.net> wrote in message
> news:opsgxnqrsx0i05et@celeron...
>
> I see. Thanks. Dumb question.
> The PaletteRoot has all the PaletteEntry items.
> What i needed was to access the regular Model classes that are passed to
> the Entries via the factories. But i already found a solution by
> subclassing PaletteEntry.
>
>
>
>> The palette root IS the model. Or rather, the children of the palette
>> root
>> are the model.
>>
>> "Frank Dyck" <dyx@gmx.net> wrote in message
>> news:opsguwxznq0i05et@celeron...
>> I have a PaletteCustomizer with which it is possible to add nodes and
>> connections to the palette. Now I have to implement the
>> PaletteCustomizer.save() method.
>>
>> How do i access the palette`s model? I have no idea how the palette is
>> implemented internally...
>>
>> I guess I have to pass to my Customizer the paletteroot or the
>> paletteviewer and then acces the palette`s model somehow from there.
>>
>> Any tips? pointers to the right classes to look at?
>>
>>
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Previous Topic:Centering graphicalViewer focus
Next Topic:Hide and Show Figure on the fly
Goto Forum:
  


Current Time: Sat Jul 05 17:59:47 EDT 2025

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

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

Back to the top