Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » dynamically fill the palette contents(PaletteProvider)?
dynamically fill the palette contents(PaletteProvider)? [message #93500] Tue, 16 January 2007 22:13 Go to next message
Eclipse UserFriend
Originally posted by: imrannawaz.softtrans.net

Hello Alex,

I didn't find DiagramEditor.createPaletteRoot() in Diagram Editor.
From where should i get this file. to change the content of the palette.

Thanks
Imran
Re: dynamically fill the palette contents(PaletteProvider)? [message #93611 is a reply to message #93500] Wed, 17 January 2007 10:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi I'm not sure why do you need the createPaletteRoot, usually we
add/remove elements to the palette using the plugin XML.
but any way; if you need this method it is in

DiagramEditorWithFlyOutPalette


IMRAN wrote:
> Hello Alex,
>
> I didn't find DiagramEditor.createPaletteRoot() in Diagram Editor.
> From where should i get this file. to change the content of the palette.
>
> Thanks
> Imran
>
>
Re: dynamically fill the palette contents(PaletteProvider)? [message #93625 is a reply to message #93611] Wed, 17 January 2007 10:43 Go to previous messageGo to next message
Eclipse UserFriend
Mohammed Mostafa wrote:

Hi ;
One more thing; if you want to repopulate the palette you can call
PaletteService#updatePalette; we do something similar in the
ActivityManagerListener which is an inner class in the
DiagramEditorWithFlyOutPalette, where we need to re-populate the palette
because an activity/capability had changed

> Hi I'm not sure why do you need the createPaletteRoot, usually we
> add/remove elements to the palette using the plugin XML.
> but any way; if you need this method it is in
>
> DiagramEditorWithFlyOutPalette
>
>
> IMRAN wrote:
>> Hello Alex,
>>
>> I didn't find DiagramEditor.createPaletteRoot() in Diagram Editor.
>> From where should i get this file. to change the content of the palette.
>>
>> Thanks
>> Imran
>>
>>
Re: dynamically fill the palette contents(PaletteProvider)? [message #93758 is a reply to message #93611] Wed, 17 January 2007 14:54 Go to previous message
Eclipse UserFriend
One Last point;
My Previous answer was form the runtime point of view, if you are using
the code generation

the method you are looking for will be
xxxDiagramEditor#createPaletteRoot and it will be calling
xxxPaletteFactory().fillPalette(root)

where xxxDiagramEditor is your generated Diagram editor and
xxxPaletteFactory is your generated PaletteFactory

Mohammed Mostafa wrote:
> Hi I'm not sure why do you need the createPaletteRoot, usually we
> add/remove elements to the palette using the plugin XML.
> but any way; if you need this method it is in
>
> DiagramEditorWithFlyOutPalette
>
>
> IMRAN wrote:
>> Hello Alex,
>>
>> I didn't find DiagramEditor.createPaletteRoot() in Diagram Editor.
>> From where should i get this file. to change the content of the palette.
>>
>> Thanks
>> Imran
>>
>>
Previous Topic:Purpose of CanvasMapping.domainModel in GMFMapping Model
Next Topic:Location of code for tool functions
Goto Forum:
  


Current Time: Fri May 09 12:21:18 EDT 2025

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

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

Back to the top