Trigger 'Arrange All' [message #1834378] |
Mon, 09 November 2020 06:45  |
Eclipse User |
|
|
|
Hello,
Is there a way in which 'Arrange All' can be automatically triggered after activating a layer/using a filter?
Thank you!
Kind Regards,
Alexandra
|
|
|
|
Re: Trigger 'Arrange All' [message #1836659 is a reply to message #1834460] |
Mon, 11 January 2021 08:13   |
Eclipse User |
|
|
|
Hi Florian,
I have a question related with your suggestion to filter notifications concerning the layer activation. I was able to create a custom NotificationFilter, something like:
@Override
public NotificationFilter getFilter() {
NotificationFilter filter = new NotificationFilter.Custom() {
@Override
public boolean matches(Notification notification) {
Object oldValue = notification.getOldValue();
Object newValue = notification.getNewValue();
if(oldValue instanceof AdditionalLayerSpec || newValue instanceof AdditionalLayerSpec) {
return true;
}
return false;
}
};
return filter;
}
The problem is that, when I return the filter and I am going to trigger arrange all, I am getting the current elements from the editor, not the elements after the layer activation. Is there a way to get the notification after the layer changed the diagram? So, not to trigger the arrange all with the current diagram elements, but, with the elements after the layer activation?
Kind Regards,
Razvan
|
|
|
Re: Trigger 'Arrange All' [message #1839052 is a reply to message #1836659] |
Thu, 11 March 2021 18:18  |
Eclipse User |
|
|
|
Hi Florian Barbin
I have made mine eclipse Sirius project and install the ELK for it to make auto layout of it.
But we I click on the arrange all button nothing is happening.
|
|
|
Powered by
FUDForum. Page generated in 0.04368 seconds