[ 
https://issues.apache.org/jira/browse/CAMEL-25256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121834#comment-18121834
 ] 

Claus Ibsen commented on CAMEL-25256:
-------------------------------------

Merged: https://github.com/apache/camel/pull/27253

_Claude Code on behalf of davsclaus_

> camel-jbang - source editor: refactorings (Ctrl+R) for Java and XML routes
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-25256
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25256
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.23.0
>
>
> The refactorings of the source editor of camel-jbang (Ctrl+R in edit mode) 
> work only in YAML routes: extract a step to a new route file, replace the URI 
> of the line, extract a value to a property.
> Bring them to Java and XML routes:
> * Replace URI: the endpoint URI of the line (the string given to from, to, 
> toD, wireTap, enrich, pollEnrich, poll in Java; the uri attribute in XML);
> * Extract to property: the string literal (Java) or attribute value (XML) at 
> the cursor becomes a {{key}} placeholder, the value written to 
> application.properties (src/main/resources for a Maven layout);
> * Extract to new file (XML): the element block at the cursor goes to a new 
> route (from direct:name) in its own XML file, replaced by a to direct:name.
> Java has no extract to file: a step of a fluent chain is no block with clear 
> edges.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to