[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Nested Rectangles and Layout

This appears to be a bug. Looks like support for child nodes with 
parent-assigned viewmaps has been overlooked. Could you please file a 
bugzilla?
To workaround the issue, try to pull rect2 (with associated gridlayout data) 
out from rect1.

Artem

"exquisitus" <me@xxxxxxx> wrote in message 
news:88274b89b65de4123c440759da4fc0ea$1@xxxxxxxxxxxxxxxxxx
> hello Artem
>
> My GMF is version 2.0 (all plugins are M4).
>
> The error is on Generate Diagram Editor:
>
> Exception occurred while generating code
> Unknown viewmap: 
> org.eclipse.gmf.codegen.gmfgen.impl.ParentAssignedViewmapImpl@18501fd 
> (requiredPluginIDs: null, layoutType: UNKNOWN) (getterName: 
> getFigureRect2, setterName: null, figureQualifiedClassName: 
> org.eclipse.draw2d.RectangleFigure)
>
>
> I had another idea to try to use FigureRef and nest that into Rect1 and 
> set GridLayoutData on that FigureRef. Like in this screenshot:
>
> http://img145.imageshack.us/img145/6734/scr2qc7.gif
>
> This generates diagram code without errors, but on runtime when I try to 
> add Box2 inside Box1 (with GridLayout) I get this error:
>
> Unhandled event loop exception.
>
> in Error Log.
>
> What are FigureRefs useful for (am I using them wrong here)?
>
>