Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:29 Go to next message
Josh Knauer is currently offline Josh KnauerFriend
Messages: 12
Registered: July 2009
Junior Member
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 18: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: Tue Dec 03 08:55:48 GMT 2024

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

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

Back to the top