Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-1367

Source content is lost after switch to Design tab (Camel Blueprint XML)

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      1) Inside a Fuse Project: create a new Blueprint 'Camel XML File'
      2) In the Camel Editor open the Source tab
      3) Define a new xmlns prefix, like

      ...
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
             xmlns:camel="http://camel.apache.org/schema/blueprint"
      ...
      

      4) change the camelContext element content to use the 'camel' prefix.

      ...
        <camel:camelContext trace="true" xmlns="http://camel.apache.org/schema/blueprint">
        <camel:route>
          <camel:from uri="direct:input"/>
          <camel:log message="Body: ${body}" />
      ...
      

      5) switch to Desing tab view. So far so good!
      6) back to Source tab and...
      where is my code?

      Show
      1) Inside a Fuse Project: create a new Blueprint 'Camel XML File' 2) In the Camel Editor open the Source tab 3) Define a new xmlns prefix, like ... <blueprint xmlns= "http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:camel = "http://camel.apache.org/schema/blueprint" ... 4) change the camelContext element content to use the 'camel' prefix. ... <camel:camelContext trace= "true" xmlns= "http://camel.apache.org/schema/blueprint" > <camel:route> <camel:from uri= "direct:input" /> <camel:log message= "Body: ${body}" /> ... 5) switch to Desing tab view. So far so good! 6) back to Source tab and... where is my code?

      Description

      In order to enable the code completion for Camel context in Camel Source editor I have to declare a Namespace for camel in Blueprint xml. For example:

      I usually add a ns prefix 'camel' as follows:

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
             xmlns:camel="http://camel.apache.org/schema/blueprint"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
             http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
      ...
      

      Thus I can benefit from editor's code completion inside 'camelContext' element:
      But, if I use that 'camel' prefix namespace I can't open the Design tab view. If I do that the editor completely erases the source content. It's possible to rollback the erased code using 'Ctrl+z'.
      I think is a bug. Isn't it?

        Attachments

          Activity

            People

            Assignee:
            lhein Lars Heinemann
            Reporter:
            rafaelcba Rafael Soares
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: