Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to set Avoid obstructions and Closest distance on my connections by default.
How to set Avoid obstructions and Closest distance on my connections by default. [message #233014] Mon, 08 June 2009 18:27 Go to next message
Eclipse UserFriend
How can I set Avoid obstructions and Closest distance on my connections
to be true or enabled by default when the connection is drawn.

Thanks
Brian Jakubik
Re: How to set Avoid obstructions and Closest distance on my connections by default. [message #233022 is a reply to message #233014] Mon, 08 June 2009 19:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

In your connection view factory override decorateView(...) method and set
avoid obstruction to true on the RotuingStyle

Cheers,
Alex
Re: How to set Avoid obstructions and Closest distance on my connections by default. [message #233105 is a reply to message #233022] Tue, 09 June 2009 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Alex Boyko wrote:
> Hi,
>
> In your connection view factory override decorateView(...) method and
> set avoid obstruction to true on the RotuingStyle
>
> Cheers,
> Alex
>

Thanks Alex, but I don't seem to have a *ConnectionViewFactory any more
as of M6 I believe. At least they are no longer generated for me. Is
that something I should still have?
Re: How to set Avoid obstructions and Closest distance on my connections by default. [message #233113 is a reply to message #233105] Tue, 09 June 2009 11:18 Go to previous messageGo to next message
Eclipse UserFriend
You are wright the ViewFactorys are deprecated but you can use a
ViewProvider. A ViewProvider is generated with the name
<Diagramname>ViewProvider. Inside this you have creation methods for all
all view elements. Here you call the same stuff you could in the
ViewFactorys. You can either overwrite the stuff in the generated code or
provide you own ViewProvider via the
org.eclipse.gmf.runtime.diagram.core.viewProviders extension.
Re: How to set Avoid obstructions and Closest distance on my connections by default. [message #233160 is a reply to message #233113] Tue, 09 June 2009 14:48 Go to previous message
Eclipse UserFriend
Awesome, works great, thanks.

Tobias Neef wrote:
> You are wright the ViewFactorys are deprecated but you can use a
> ViewProvider. A ViewProvider is generated with the name
> <Diagramname>ViewProvider. Inside this you have creation methods for all
> all view elements. Here you call the same stuff you could in the
> ViewFactorys. You can either overwrite the stuff in the generated code
> or provide you own ViewProvider via the
> org.eclipse.gmf.runtime.diagram.core.viewProviders extension.
>
Previous Topic:How to make a Compartment become invisible when it is empty?
Next Topic:cast exception for an EAttribute
Goto Forum:
  


Current Time: Wed Jul 23 03:58:47 EDT 2025

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

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

Back to the top