Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to build a simple flow editor?
How to build a simple flow editor? [message #182909] Mon, 30 May 2005 16:02 Go to next message
Eclipse UserFriend
Originally posted by: alexey.m.softage.com.ua

Hello!

We need to build a very simple editor. I should be able to drag-n-drop
single component. Components should be laid out in a vertical row.
I have started with the 'Shapes' sample bundled with GEF. It works fine
but controls are laid out using absolute coordinates. I have tried to change
body of the DiagramEditPart's createFigure() method like this:

Figure f = new FreeformLayer();
f.setBorder(new MarginBorder(3));
f.setLayoutManager(new FlowLayout());
...

but Eclipse hangs after dropping the very first component.

Thank you very much in advance.

--

Regards,
Alexey Maslov
Re: How to build a simple flow editor? [message #182972 is a reply to message #182909] Tue, 31 May 2005 00:37 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Check out the flow example.

"Alexey Maslov" <alexey.m@softage.com.ua> wrote in message
news:d7fdnm$mpe$1@news.eclipse.org...
> Hello!
>
> We need to build a very simple editor. I should be able to drag-n-drop
> single component. Components should be laid out in a vertical row.
> I have started with the 'Shapes' sample bundled with GEF. It works fine
> but controls are laid out using absolute coordinates. I have tried to
change
> body of the DiagramEditPart's createFigure() method like this:
>
> Figure f = new FreeformLayer();
> f.setBorder(new MarginBorder(3));
> f.setLayoutManager(new FlowLayout());
> ...
>
> but Eclipse hangs after dropping the very first component.
>
> Thank you very much in advance.
>
> --
>
> Regards,
> Alexey Maslov
>
>
Previous Topic:how to add a popup menu?
Next Topic:About SWT AND JFace
Goto Forum:
  


Current Time: Fri Dec 13 02:37:07 GMT 2024

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

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

Back to the top