Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Customize edge style
Customize edge style [message #1694595] Wed, 06 May 2015 14:11 Go to next message
Julien Siega is currently offline Julien SiegaFriend
Messages: 8
Registered: September 2014
Junior Member
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 15:30]

Report message to a moderator

Re: Customize edge style from preferences [message #1694987 is a reply to message #1694595] Mon, 11 May 2015 08:48 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 267
Registered: July 2009
Senior Member
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


Laurent Redor - Obeo

Need training or 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: Sat Jan 23 05:24:58 GMT 2021

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

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

Back to the top