Skip to main content



      Home
Home » Eclipse Projects » Sirius » Customize edge style
Customize edge style [message #1694595] Wed, 06 May 2015 10:11 Go to next message
Eclipse UserFriend
Hi everyone,

I want to change the default style of edge to "avoid obstruction", there is any existing extension point to do this ? or i need to do it with a listener on Edge ?

I see that there is a preference page for the rooting style, maybe it would be interesting to have the same things for the "closest distance" and "avoid obstruction" in the preference or the odesign. I don't know if there is any easier way to do this and if someone already ask for something like that. But if we do something maybe the community will be interested by our works.

Thanks

Julien

[Updated on: Wed, 06 May 2015 11:30] by Moderator

Re: Customize edge style from preferences [message #1694987 is a reply to message #1694595] Mon, 11 May 2015 04:48 Go to previous message
Eclipse UserFriend
Le 06/05/2015 16:11, Julien Siega a écrit :
> Hi everyone,
>

Hi,

> I want to change the default style of edge to "avoid obstruction", there
> is any existing extension point to do this ? or i need to do it with a
> listener on Edge ?

There is not extension point to do this.

> I see that there is a preference page for the rooting style,maybe it
> would be interesting to have the same things for the "closest distance"
> and "avoid obstruction" in the preference or the odesign.

The preference page for routing style override a style property
available in the VSM (odesign file). So it is not really the same for
"closest distance", "avoid obstruction" and "jump links" properties (not
currently exposed in VSM).

> I don't know
> if there is any easier way to do this and if someone already ask for
> something like that. But if we do something maybe the community will be
> interested by our works.

Indeed, we can imagine to complete the connections preference page for
default values for all these properties.
You can create a bugzilla for this feature. This looks like an
interesting area to explore. Make sure you state your intent to explore
it on the sirius-dev mailling list.

Technical information for implementation: The above properties can be
set here in Sirius:
org.eclipse.sirius.diagram.ui.internal.view.factories.DEdgeViewFactory.decorateView(View,
View, IAdaptable, String, int, boolean):
*
org.eclipse.gmf.runtime.notation.RoutingStyle.setAvoidObstructions(boolean)
* org.eclipse.gmf.runtime.notation.RoutingStyle.setClosestDistance(boolean)
* org.eclipse.gmf.runtime.notation.RoutingStyle.set...

>
> Thanks
>
> Julien

Regards,

Laurent

--
Laurent Redor - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:How to export specified diagram programmatically
Next Topic:examples for tables
Goto Forum:
  


Current Time: Thu May 22 19:03:41 EDT 2025

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

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

Back to the top