Camel editor installation

This tutorial describes how to install the Eclipse oxygen-based Camel editor.

  • generate mwe2 flow (right-click on GenerateCamelDsl.mwe2 under src/camel/dsl and then runas->MWE2 workflow)



Running the textual editor:

  • right-click on camel.dsl project and runas -> eclipse application

  • create general project (just once) and put .camel files inside
  • copy MMS.camel, location.camel, metric.camel & unit.camel files (from camel repository->examples) to the workspace (this enables to insert meta-data-schema annotations in the CAMEL model as well as re-use metric, unit & value type elements from the three latter template models)
  • open camel file (for the first time it will ask to enable xtext nature – just agree and remember the decision)
  • after editing and saving .camel file the .xmi file should be generated under src-gen folder

Alternative Execution

Once the first execution alternative is followed, you can open the Debug view (Window→Show View→Other→Debug→Debug).

There, in the opened view, you actually see the command that is being executed. You can just right click on it and select Properties.

This will unveil the actual command string. You can then just copy and paste it, e.g., in a certain executable file like run.bat for Windows.

Then, you can just stop the previous execution and use the respective executable file to launch the editor from now on without having to run a priori any (graphical) Eclipse Environment.

This can certainly enable to save a lot of main memory space.

Note: this command is workspace-specific so this is the reason that requires first to create the right workspace and have the right Eclipse plugins installed as well as the CAMEL ones.  

Bitnami