Home » Eclipse Projects » Sirius » Unable to Resize Vertical Stacked Containers
Unable to Resize Vertical Stacked Containers [message #1731916] |
Tue, 10 May 2016 20:32  |
Eclipse User |
|
|
|
Hi,
I have a State Machine, which has States. These States can have Regions inside. and Regions can have States and so on ...
The problem is that I can't resize States that do not have inner Regions, I can only resize States which have inner Regions.
e.g. in the attached example , I can resize S0, S1 and S3, but cannot resize S2, even though it shows points to resize on the figure.

The States are Vertical Stacks and Regions are Free Form containers.
I can see in the UmlDesigner they have made it possible with some import stuffs I guess, but have no idea how they did it !
Thanks,
Bests,
Parsa
[Updated on: Tue, 10 May 2016 20:32] by Moderator
|
|
| | | | |
Re: Unable to Resize Vertical Stacked Containers [message #1734294 is a reply to message #1734229] |
Mon, 06 June 2016 16:52   |
Eclipse User |
|
|
|
Hi Maxime,
I have already raised it on BugZilla a few weeks ago:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=494594
If I provide the whole editPart, I need to write the whole code of the editPart from scratch, and I have no idea how to do it from scratch for a Container edit part.
I was wondering if there is an attribute, I just set it to true !!!! e.g. ep.SetResizable() ; !!!! editpart does not have such an attribute ! So I guess I need to wait for this bug to be fixed
Also, as an enhancement, it would be cool if by right clicking the node in the Sirius odesign file, the user could export the corresponding editpart code for that node/borderednode/container, instead of writing their own from scratch.
Thanks,
Bests,
Parsa
|
|
|
Re: Unable to Resize Vertical Stacked Containers [message #1734540 is a reply to message #1734294] |
Thu, 09 June 2016 05:33  |
Eclipse User |
|
|
|
Hi Parsa,
Le 06/06/2016 à 22:52, Parsa Pourali a écrit :
> Hi Maxime,
>
> I have already raised it on BugZilla a few weeks ago:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=494594
>
> If I provide the whole editPart, I need to write the whole code of the
> editPart from scratch, and I have no idea how to do it from scratch for
> a Container edit part.
You could provide your own edit policy to override the default resize
behavior of RegionContainers for your mapping.
> I was wondering if there is an attribute, I just set it to true !!!!
> e.g. ep.SetResizable() ; !!!! editpart does not have such an attribute !
Here, the resize is combined between a RegionContainer and its Regions,
to synchronize the changes done on compartment, its parent and its
siblings for exmeple. This is not just an attribute as we validate the
change bounds request from the current diagram/model structure and
compute a composite command to resize the RegionContainer and all its
compartments.
> So I guess I need to wait for this bug to be fixed :roll:
> Also, as an enhancement, it would be cool if by right clicking the node
> in the Sirius odesign file, the user could export the corresponding
> editpart code for that node/borderednode/container, instead of writing
> their own from scratch.
You might also inherit from the Sirius parts/policy and just overrides
the behavior you want to specialize.
Could you open a bug dealing with Developper manual enhancement: we
could document how to provide an edit part or policy for a specific
mapping (container, list, node, edge).
>
> Thanks,
> Bests,
> Parsa
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Goto Forum:
Current Time: Tue Apr 15 00:48:00 EDT 2025
Powered by FUDForum. Page generated in 0.03009 seconds
|