Skip to main content



      Home
Home » Eclipse Projects » GEF » Creating new paragraphs while editing in the GEF sample text editor
Creating new paragraphs while editing in the GEF sample text editor [message #189822] Fri, 29 July 2005 13:29 Go to next message
Eclipse UserFriend
Hi,

In the GEF Sample text editor, the command that handles the user pressing
"Enter" uses a SubdivideElement to create two new text runs. Is that the
correct behaviour? Pressing the enter key should create a new paragraph
should it not? Should the command also create a new container for the
second run after the split? I'm just wondering if this is an oversite in
the sample or if the behaviour was intentional and am I'm missing something
here ...

Thanks,

Josh
Re: Creating new paragraphs while editing in the GEF sample text editor [message #189835 is a reply to message #189822] Fri, 29 July 2005 14:21 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

It is a simplification that only works in certain cases. If you are editing
an import statement, then ENTER causes it to be split into two "paragraphs".
It also works in the code section of our example.

For some reason the "javadoc" area is doing something dumb that doesn't
cause a newline.

"Joshua Knauer" <joshua.knauer@businessobjects.com> wrote in message
news:dcdp15$dsf$1@news.eclipse.org...
> Hi,
>
> In the GEF Sample text editor, the command that handles the user pressing
> "Enter" uses a SubdivideElement to create two new text runs. Is that the
> correct behaviour? Pressing the enter key should create a new paragraph
> should it not? Should the command also create a new container for the
> second run after the split? I'm just wondering if this is an oversite in
> the sample or if the behaviour was intentional and am I'm missing
> something
> here ...
>
> Thanks,
>
> Josh
>
>
Previous Topic:SWITCH SELECTION PROVIDER PROBLEM
Next Topic:Rendering tabs in text with Draw2d
Goto Forum:
  


Current Time: Sat Jul 12 15:32:53 EDT 2025

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

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

Back to the top