Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:27 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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 23:29 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
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 15:03 Go to previous messageGo to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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 15:18 Go to previous messageGo to next message
Tobias Neef is currently offline Tobias NeefFriend
Messages: 17
Registered: July 2009
Junior Member
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 18:48 Go to previous message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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: Sat Apr 20 00:45:19 GMT 2024

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

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

Back to the top