|
Re: Custom Style Bordernodes not allowing connections [message #1706067 is a reply to message #1705992] |
Fri, 21 August 2015 15:41 |
|
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 #1707011 is a reply to message #1706365] |
Tue, 01 September 2015 13:39 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.09057 seconds