Problem: replacing root edit part gives blank white editor [message #228859] |
Thu, 11 January 2007 12:38 |
Steinar Bang Messages: 108 Registered: July 2009 |
Senior Member |
|
|
Platform: Intel Pentium M, Ubuntu Dapper
eclipse 3.2, eclipse GEF SDK 3.2
I'm trying to adapt the code for enabling zoom commands in the logic
editor GEF example to my GEF editor.
One problem I'm seeing now, is that when I try to replace the root
edit part (which according to the debugger by default is a
ScalableRootEditPart) with the ScalableFreeFormEditorPart of the
example, ie. in the editor use:
protected void configureGraphicalViewer() {
super.configureGraphicalViewer();
ScalableFreeformRootEditPart root = new ScalableFreeformRootEditPart();
getGraphicalViewer().setRootEditPart(root);
getGraphicalViewer().setEditPartFactory(this);
}
then the editor frame becomes blank.
I'm deriving from GraphicalEditor, while the logic editor derives from
GraphicalEditorWithFlyoutPalette, but that shouldn't matter...?
The logic example wizard is able to create a four bit adder in the
same workspace where my editor fails, so it shouldn't be a version
number? (...unless the example source is out of sync with the actual
example plugin, that is...).
Any idea what the problem might be? Is there somewhere else I have to
register the root edit part? Can't ScalableFreeformRootEditPart be
used by a GEF editor? (but if so, why does it work for LogicEditor?)
Thanx!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04031 seconds