Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » disappearing control
disappearing control [message #161739] Wed, 21 November 2007 09:18 Go to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
sorry if the title is not very precise, but here's what happens and I
don't know how to workaround, maybe you can give me an hint.

I'm working on a project that allows to draw all our nodes and gmf
thingies and deploy with Jet in an ajax html page. So in between of all my
palette tools, I have a "Table" container node and a "TableColumn"
to-be-contained item.
When I place a table node, I get the classic rectangle, resizable,
moveable etc..
as soon as I add a TableColumn in it, this is draw to the maximum extents
of the Table node (and I want it to be draw, let's say at 20% of the Table
node width so there is space to add more tablecolumn nodes), furthermore,
the controls for resizing and moving are not being shown (then I cannot
neither resize with the mouse), nor the container controls, nor the
contained node ones.
If I delete this contained element, the Table container is draw with the
controls again.
I should work on the TableEditPart or TableColumEditPart? I use GMF2 so
almost every info on overrides or implementations does not fit very well.
What can I do to make my contained element to be draw not to the maximum
extents of its parent but to a prefixed percentage?
Thank you very much for every suggestion.

Regards
Paolo
Re: disappearing control [message #161775 is a reply to message #161739] Wed, 21 November 2007 10:25 Go to previous messageGo to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
my class (generated code) is being auto generated that way:

public class HtmlTableEditPart extends AbstractBorderedShapeEditPart [...]

while in the same project, under obsolete GMF1 was generated by:

public class HtmlTableEditPart extends ShapeNodeEditPart [...]

each of them implementing and requesting some really different methods, am
I looking in the right place at least?
Re: disappearing control [message #161821 is a reply to message #161739] Wed, 21 November 2007 13:23 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Paolo,

I suggest you to check a layout of your container figure. In addition each
GenCompartment element has "listLayout" property so you can try it.

-----------------
Alex Shatalin
Re: disappearing control [message #161868 is a reply to message #161821] Wed, 21 November 2007 15:23 Go to previous messageGo to next message
paolo russian is currently offline paolo russianFriend
Messages: 81
Registered: July 2009
Member
what should I look for more precisely? I've got a real mess of classes
(it's a large distributed project) to port from gmf1 to gmf2, 60% are not
copy'n paste compatible (make the stacktrace boom), another 30% are not
even used any more (I put some systemouts and never gets called) so I do
not know what to delete because is obsolete, what to keep because critical
and needs to be migrated by hand, what maybe I need to create from scratch.
Re: disappearing control [message #161914 is a reply to message #161868] Wed, 21 November 2007 18:34 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Paolo,

I suggest you to investigate each particular problem and fix it. I think,
you have a lot of problems but most of then are similar and could be fixed
by correcting some property(ies) in the gen model or patching a template...

Concerning this very problem I suggest you to create simple small model +
diagram and check if it works. Then you get it working you'll be able to
compare your sample model with one you are having a problems with and correct
all tehse problems.

-----------------
Alex Shatalin
Previous Topic:Rotation of EditParts possible?
Next Topic:How to add a name to a connection in the diagram?
Goto Forum:
  


Current Time: Thu Apr 25 13:47:57 GMT 2024

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

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

Back to the top