|
Re: [EOL] Change Nodes Resize Constraint [message #1032976 is a reply to message #1032971] |
Wed, 03 April 2013 17:59 |
|
If you want to make the node not resizable, we have recently added an Eugenia annotation for just that:
@gmf.node(..., resizable="false")
class X {
...
}
It's only available on a very recent interim release. We haven't had much time to try it before making it the official interim release, but you might want to try it out. It is available at this update site for now (we'll move it to the proper interim URL in a few weeks if all goes well):
http://download.eclipse.org/epsilon/interim-very-new/
If you want to stay with Epsilon 1.0, you may want to adapt the EOL code that we use to implement this annotation:
var figureClass = node.name + 'Figure';
var figure_viewmaps = GmfGen!InnerClassViewmap.all.select(r|r.className = figureClass);
for (figure_viewmap in figure_viewmaps) {
-- Resize constraint which forbids resizing
-- NORTH (1), SOUTH (4), EAST (8) and WEST (16): all handles are not resizable
var resizeconstraint_not_resizable = new GmfGen!ResizeConstraints;
resizeconstraint_not_resizable.nonResizeHandles := 31;
figure_viewmap.attributes.add(resizeconstraint_not_resizable);
}
[Updated on: Wed, 03 April 2013 18:00] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03235 seconds