Refreshing the palette after programmatically deselect a layer [message #1371408] |
Wed, 21 May 2014 11:02 |
|
Hi Sirius folks!
I'm struggling at refreshing my Sirius editor after programmatically disabling one of its layer:
diagram.getActivatedLayers().remove(myLayer);
Then, I refresh the representation with refreshrepresentationcommand, but the tool palette isn't updated (there are always the tools that were added by the previously deactivated layer).
Have you any clue on this?
Best regards, and kiss from Paris.
Charlie
|
|
|
Re: Refreshing the palette after programmatically deselect a layer [message #1371827 is a reply to message #1371408] |
Wed, 21 May 2014 15:01 |
|
Hi Charlie,
Take a look on
org.eclipse.sirius.diagram.ui.tools.internal.commands.ChangeLayerActivationCommand.
This command change the layer activation and performs next a refresh of
the representation.
Regards,
Florian
On 05/21/2014 01:02 PM, Charlie Mordant wrote:
> Hi Sirius folks!
>
> I'm struggling at refreshing my
> http://fr.wikipedia.org/wiki/Sirius#Sirius_A_et_Sirius_B editor after
> programmatically disabling one of its layer:
>
> diagram.getActivatedLayers().remove(myLayer);
>
> Then, I refresh the representation with refreshrepresentationcommand,
> but the tool palette isn't updated (there are always the tools that were
> added by the previously deactivated layer).
>
> Have you any clue on this?
>
> Best regards, and kiss from Paris.
>
> Charlie
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds