Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Custom Style Bordernodes not allowing connections
Custom Style Bordernodes not allowing connections [message #1705992] Thu, 20 August 2015 18:41 Go to next message
Bailey Trenton is currently offline Bailey TrentonFriend
Messages: 31
Registered: May 2015
Member
Hello,
I am working with Bordernodes with a custom style so I can define their shape.
I have a connection tool that connects the bordernodes.
If I specify the nodes as one of the default styles(Lozenge) the connection works fine. However, if I use my custom style the connection doesn't work at all.
The Mouse decorations say you can't connect and no connections can be made.

I am not sure if I am missing some interface or extension point.

Any help would be appreciated.
Thanks,
Bailey
Re: Custom Style Bordernodes not allowing connections [message #1706067 is a reply to message #1705992] Fri, 21 August 2015 15:41 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
On 08/20/2015 08:41 PM, Bailey Trenton wrote:
> Hello,

Hello,

> I am working with Bordernodes with a custom style so I can define
> their shape.
> I have a connection tool that connects the bordernodes. If I specify the
> nodes as one of the default styles(Lozenge) the connection works fine.
> However, if I use my custom style the connection doesn't work at all.
> The Mouse decorations say you can't connect and no connections can be made.
>
The node style should not have any impact on the connection ability. Is
the custom style applied from an import mapping ?


> I am not sure if I am missing some interface or extension point.
> Any help would be appreciated.
> Thanks,
> Bailey


--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Custom Style Bordernodes not allowing connections [message #1706068 is a reply to message #1706067] Fri, 21 August 2015 16:09 Go to previous messageGo to next message
Bailey Trenton is currently offline Bailey TrentonFriend
Messages: 31
Registered: May 2015
Member
I currently have an imported Node defined in another diagram. I defined Bordered Nodes inside a diagram extension representing my ports inside that imported node. I define a custom style that uses an EditPart Provider that supplies my new edit part shapes. As soon as I select the custom style for the border nodes, the connection features don't work.

Thanks

Re: Custom Style Bordernodes not allowing connections [message #1706234 is a reply to message #1706068] Tue, 25 August 2015 07:53 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

Which release of Sirius do you use and can you provide a minimal example
of your not working case?

Best Regards.

Le 21/08/2015 18:09, Bailey Trenton a écrit :
> I currently have an imported Node defined in another diagram. I defined
> Bordered Nodes inside a diagram extension representing my ports inside
> that imported node. I define a custom style that uses an EditPart
> Provider that supplies my new edit part shapes. As soon as I select the
> custom style for the border nodes, the connection features don't work.
> Thanks
>
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Custom Style Bordernodes not allowing connections [message #1706317 is a reply to message #1706234] Tue, 25 August 2015 15:40 Go to previous messageGo to next message
Bailey Trenton is currently offline Bailey TrentonFriend
Messages: 31
Registered: May 2015
Member
We are using Sirius 2.0.5. Upgrading to 3 in the near future.

Here is what we are trying to do with custom shaped border nodes.

We need custom shapes for our border nodes. These represent different types of ports for us. We define custom Editparts and EditpartProviders that provides these custom shapes. We register the provider with editPartProvider extension point.
It draws the new shapes just fine on our Sirius diagram. We have a connection tool that connects two of these custom shaped Bordernodes together. However the connection tool does not work when we use these custom Editparts as our bordernode. If we change the shapes to one of the Sirius provided shapes(Ellipse, Square, Lozenge) the connections work fine, without changing any of the connection logic.

The feedback icons that decorates the cursor says that the connection is not allowed even from the start if we hover it over the custom border node.

I followed the directions from the "Sirus how to provide a custom style" document to create my editpart and provider. Do I have to do something else to get my editPart to work with connections?

Thanks
Re: Custom Style Bordernodes not allowing connections [message #1706365 is a reply to message #1706317] Wed, 26 August 2015 09:51 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

You can take a look at UML Designer sample [1] which use custom style.
Perhaps you have discovered a bug about connection tool on custom border
nodes, in this case you can raise a bugzilla with a reproduction case.

[1] https://github.com/ObeoNetwork/UML-Designer

Best Regards.


Le 25/08/2015 17:40, Bailey Trenton a écrit :
> We are using Sirius 2.0.5. Upgrading to 3 in the near future.
>
> Here is what we are trying to do with custom shaped border nodes.
>
> We need custom shapes for our border nodes. These represent different
> types of ports for us. We define custom Editparts and EditpartProviders
> that provides these custom shapes. We register the provider with
> editPartProvider extension point.
> It draws the new shapes just fine on our Sirius diagram. We have a
> connection tool that connects two of these custom shaped Bordernodes
> together. However the connection tool does not work when we use these
> custom Editparts as our bordernode. If we change the shapes to one of
> the Sirius provided shapes(Ellipse, Square, Lozenge) the connections
> work fine, without changing any of the connection logic.
> The feedback icons that decorates the cursor says that the connection
> is not allowed even from the start if we hover it over the custom border
> node.
>
> I followed the directions from the "Sirus how to provide a custom style"
> document to create my editpart and provider. Do I have to do something
> else to get my editPart to work with connections?
>
> Thanks



--
Esteban Dugueperoux - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Custom Style Bordernodes not allowing connections [message #1707011 is a reply to message #1706365] Tue, 01 September 2015 13:39 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Bailey,

I put an answer on the bugzilla you have created
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=476114)

You have to overrides your syle edit part createDefaultEditPolicies() to
do nothing as the behavior is not controlled by the style edit part but
by its parent node edit part.


Regards,

Maxime


Le 26/08/2015 11:51, Esteban Dugueperoux a écrit :
> Hi,
>
> You can take a look at UML Designer sample [1] which use custom style.
> Perhaps you have discovered a bug about connection tool on custom border
> nodes, in this case you can raise a bugzilla with a reproduction case.
>
> [1] https://github.com/ObeoNetwork/UML-Designer
>
> Best Regards.
>
>
> Le 25/08/2015 17:40, Bailey Trenton a écrit :
>> We are using Sirius 2.0.5. Upgrading to 3 in the near future.
>>
>> Here is what we are trying to do with custom shaped border nodes.
>>
>> We need custom shapes for our border nodes. These represent different
>> types of ports for us. We define custom Editparts and EditpartProviders
>> that provides these custom shapes. We register the provider with
>> editPartProvider extension point.
>> It draws the new shapes just fine on our Sirius diagram. We have a
>> connection tool that connects two of these custom shaped Bordernodes
>> together. However the connection tool does not work when we use these
>> custom Editparts as our bordernode. If we change the shapes to one of
>> the Sirius provided shapes(Ellipse, Square, Lozenge) the connections
>> work fine, without changing any of the connection logic.
>> The feedback icons that decorates the cursor says that the connection
>> is not allowed even from the start if we hover it over the custom border
>> node.
>>
>> I followed the directions from the "Sirus how to provide a custom style"
>> document to create my editpart and provider. Do I have to do something
>> else to get my editPart to work with connections?
>>
>> Thanks
>
>
>


--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Custom Style Bordernodes not allowing connections [message #1707013 is a reply to message #1707011] Tue, 01 September 2015 13:45 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Bailey,


Note that in the emtpy createDefaultPolicies() methods is shown in the
sample style edit part of the custom style documentation [1] but we
should add some comments about this before the sample class.

Regards,


Le 01/09/2015 15:39, Maxime Porhel a écrit :
> Hi Bailey,
>
> I put an answer on the bugzilla you have created
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=476114)
>
> You have to overrides your syle edit part createDefaultEditPolicies() to
> do nothing as the behavior is not controlled by the style edit part but
> by its parent node edit part.
>
>
> Regards,
>
> Maxime
>
>
> Le 26/08/2015 11:51, Esteban Dugueperoux a écrit :
>> Hi,
>>
>> You can take a look at UML Designer sample [1] which use custom style.
>> Perhaps you have discovered a bug about connection tool on custom border
>> nodes, in this case you can raise a bugzilla with a reproduction case.
>>
>> [1] https://github.com/ObeoNetwork/UML-Designer
>>
>> Best Regards.
>>
>>
>> Le 25/08/2015 17:40, Bailey Trenton a écrit :
>>> We are using Sirius 2.0.5. Upgrading to 3 in the near future.
>>>
>>> Here is what we are trying to do with custom shaped border nodes.
>>>
>>> We need custom shapes for our border nodes. These represent different
>>> types of ports for us. We define custom Editparts and EditpartProviders
>>> that provides these custom shapes. We register the provider with
>>> editPartProvider extension point.
>>> It draws the new shapes just fine on our Sirius diagram. We have a
>>> connection tool that connects two of these custom shaped Bordernodes
>>> together. However the connection tool does not work when we use these
>>> custom Editparts as our bordernode. If we change the shapes to one of
>>> the Sirius provided shapes(Ellipse, Square, Lozenge) the connections
>>> work fine, without changing any of the connection logic.
>>> The feedback icons that decorates the cursor says that the connection
>>> is not allowed even from the start if we hover it over the custom border
>>> node.
>>>
>>> I followed the directions from the "Sirus how to provide a custom style"
>>> document to create my editpart and provider. Do I have to do something
>>> else to get my editPart to work with connections?
>>>
>>> Thanks
>>
>>
>>
>
>


--
Maxime - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1]
https://www.eclipse.org/sirius/doc/developer/extensions-provide_custom_style.html


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Table representation
Next Topic:Problem of Edge in Container
Goto Forum:
  


Current Time: Thu Mar 28 12:03:54 GMT 2024

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

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

Back to the top