Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Update the Palette from source code(Update the Palette from source code)
Update the Palette from source code [message #1705450] Sat, 15 August 2015 20:22 Go to next message
Tcaciuc Mugurel is currently offline Tcaciuc MugurelFriend
Messages: 2
Registered: April 2015
Junior Member
Hello,

Is there any method to update the Palette (to refresh the Palette's elements of a diagram representation) directly from source code?

index.php/fa/22910/0/

Thanks.
  • Attachment: Palette.png
    (Size: 7.30KB, Downloaded 210 times)

[Updated on: Mon, 17 August 2015 20:32]

Report message to a moderator

Re: Update the Palette from source code [message #1705652 is a reply to message #1705450] Tue, 18 August 2015 07:31 Go to previous message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 253
Registered: August 2010
Senior Member
On 08/15/2015 10:22 PM, Tcaciuc Mugurel wrote:
> Hello,
Hello,

I'm not sure about what you want to do exactly. If you are looking for a
way to refresh programmatically the palette (which is done
automatically), you can take a look on the
org.eclipse.sirius.diagram.ui.tools.api.graphical.edit.palette.PaletteManager.update(Diagram,
boolean). If you want to add new elements programmatically, that will be
a problem since at the next automatic refresh, your elements will disappear.

Regards,

Florian
>
> Is there any method to update the Palette (to refresh the Palette's elements of a diagram representation) directly from source code?
>
> Thanks.
>


--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Create representation error
Next Topic:Problem in edge ceration of an element based edge
Goto Forum:
  


Current Time: Sat Jan 23 04:58:09 GMT 2021

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

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

Back to the top