You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/10/02 06:18:00 UTC
[jira] [Assigned] (CAMEL-25256) camel-jbang - source editor: refactorings (Ctrl+R) for Java and XML routes
[ https://issues.apache.org/jira/browse/CAMEL-25256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-25256:
-----------------------------------
Assignee: Claus Ibsen
> 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
>
> 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)