Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Automatic code completion
Automatic code completion [message #557599] Wed, 08 September 2010 09:06 Go to next message
duanf  is currently offline duanf Friend
Messages: 7
Registered: August 2010
Junior Member
I want to implement this function:

when I write java code,I write the "Start" in one line.
When I push "Enter" key,I want the "End" will be written
in the next line.

How can I finish this function?
Re: Automatic code completion [message #558807 is a reply to message #557599] Tue, 14 September 2010 14:02 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
duanf wrote:
> I want to implement this function:
>
> when I write java code,I write the "Start" in one line.
> When I push "Enter" key,I want the "End" will be written
> in the next line.
>
> How can I finish this function?
Take a look at org.eclipse.jface.text.IAutoEditStrategy.

Dani
Previous Topic:SWT Table with fixed rows
Next Topic:Adding custom view to the Common Navigator
Goto Forum:
  


Current Time: Mon Nov 24 08:35:53 GMT 2014

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

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