Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » how to implement autocompletion in editor
how to implement autocompletion in editor [message #250453] Fri, 04 January 2008 16:45 Go to next message
Eclipse UserFriend
Does anyone know how auto completion is implemented in JDT? For example,
when typing quote or brace, they are automatically closed with cursor in
the middle? Thanks,

Lisa
Re: how to implement autocompletion in editor [message #250505 is a reply to message #250453] Tue, 08 January 2008 06:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: valere.fedronic.ext.streamezzo.com

Hi,

This is not auto completion, it is called smart typing/auto Edit.
It may be implemented using an IAutoEditStrategy, that you can register
through your source viewer configuration (@see
org.eclipse.jdt.internal.ui.text.java.SmartSemicolonAutoEdit Strategy ,
JavaStringAutoIndentStrategy).
Or it may be implemented using a VerifyKeyListener connected to the
styledText (@see org.eclipse.jdt.internal.ui.javaeditor.BracketInserter)

Valère.

Lisa a écrit :
> Does anyone know how auto completion is implemented in JDT? For example,
> when typing quote or brace, they are automatically closed with cursor in
> the middle? Thanks,
>
> Lisa
>
>
Re: how to implement autocompletion in editor [message #250597 is a reply to message #250505] Fri, 11 January 2008 13:30 Go to previous message
Eclipse UserFriend
Thanks a lot. That really helps.
"valere fedronic" <valere.fedronic.ext@streamezzo.com> wrote in message
news:flvlkn$df4$2@build.eclipse.org...
> Hi,
>
> This is not auto completion, it is called smart typing/auto Edit.
> It may be implemented using an IAutoEditStrategy, that you can register
> through your source viewer configuration (@see
> org.eclipse.jdt.internal.ui.text.java.SmartSemicolonAutoEdit Strategy ,
> JavaStringAutoIndentStrategy).
> Or it may be implemented using a VerifyKeyListener connected to the
> styledText (@see org.eclipse.jdt.internal.ui.javaeditor.BracketInserter)
>
> Val
Previous Topic:Extending the Rename Refactoring
Next Topic:Using org.eclipse.jdt.debug.eval / IEvaluationEngine?
Goto Forum:
  


Current Time: Thu Apr 24 10:58:07 EDT 2025

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

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

Back to the top