[
https://issues.apache.org/jira/browse/NETBEANS-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17287162#comment-17287162
]
Eric Bresie commented on NETBEANS-188:
--------------------------------------
>From Matthias on mailing list
the starting point for the code completion is in SQLCompletionProvider (module
SQL Editor). The provider is registered in the layer (layer.xml, line 56). if I
understand the sequence correctly, first #getAutoQueryTypes is invoced to check
whether a popup with suggestions should be shown without the user explicitly
asking for it.
If either #getAutoQueryTypes return a non-zero value or the user explicitly
asks for completion, #createTask is invoked with the requested type. In case of
SQL it is org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.
I see options to provide quick completion based on SQL grammer, with additional
completion when a db connection is established.
> Please add support for code completion while typing
> ---------------------------------------------------
>
> Key: NETBEANS-188
> URL: https://issues.apache.org/jira/browse/NETBEANS-188
> Project: NetBeans
> Issue Type: Improvement
> Components: db - SQL Editor
> Affects Versions: Next
> Reporter: Christian Lenz
> Priority: Major
> Labels: pull-request-available
> Attachments: screenshot-1.png, sqlCodeCompletion.gif
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> Afaik, the SQL Editor, is the only one, where you don't have code completion,
> while typing. It only appears after you hit ctrl + space, which is weird. It
> should be there per default. If not, there should be an option that code
> completion should always be possible, in any cases and you can deactivate it,
> if you don't want it.
> For each keyword, table, view whatever, I have to type a character and hit
> ctrl + space. It would be very nice to have the same code completion feature
> as in java or other languages, that the code completion comes up, while
> typing. For example:
> Type "S" -> code completion should come immediately and should show you the
> results. Same for everything like tables, views, databases, aliases and
> columns.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists