[
https://issues.apache.org/jira/browse/CAMEL-25241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-25241 started by Claus Ibsen.
-------------------------------------------
> camel-jbang - source editor completion for the Java DSL route chain
> -------------------------------------------------------------------
>
> Key: CAMEL-25241
> URL: https://issues.apache.org/jira/browse/CAMEL-25241
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.23.0
>
>
> Sibling of CAMEL-25240 (XML element and attribute completion).
> The source editor of camel-jbang completes endpoint uris in the strings of
> Java routes (CAMEL-25208) and simple expressions (CAMEL-25219), but not the
> Java DSL itself: Tab after a . in a route chain offers nothing, while YAML
> routes complete EIP names and options from the catalog.
> Add Tab completion for the Java DSL route chain, kept to Camel (not general
> Java completion, which an IDE does):
> * after . in a route chain: the EIPs from the catalog, by their Java DSL
> method names (mostly the model names: setBody, split, choice, when; the few
> that differ taken from the model classes);
> * after an EIP call: that EIP's options as the fluent methods that follow it
> (.split(body()).parallelProcessing(), .streaming()...);
> * the documentation of each in the details panel, as for YAML.
> Read the position in the chain from the lines above the cursor, so it works
> while the file does not parse; when it parses, the Java DSL parser
> (LwJavaParser / RouteNodes) can tell which EIP the chain is on.
> Useful mostly for writing routes in the source editor without an IDE, by
> people and local models.
> Tests in camel-jbang-plugin-tui; help (source.md) and the source editor doc
> page updated.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)