The new workbench differs from old KCML editors in that it allows you to edit multiple source files simultaneously. Also the views within the editor are always based on the source files themselves. The source files are components of Libraries. The Libraries are used for the executing code. The workbench opens each source file in a different pane in the editor window. You can click on each tab ear to switch between the source files.
For JIT to work the workbench must have been started in a service/system based environment. That system must have been defined in kconf.xml. And must be build able with KMake.
If you have edited a source file you will have to recompile the dependent library. This is so executing code matches the source files you can see. To do this without having to quit the workbench we use Just-In-Time compiling. This means just before we go to execute code we check that all the source files and libraries are up-to-date. If we find that a libraries need recompiling then it is done there and then by the workbench. After all libraries are up-to-date we proceed with executing.
The mechanism works by first saving all open source files. Then it checks the timestamp on every library and every source file component of that library to see if there have been any changes. If components are out of date the workbench runs KMake using the current service name.
When the workbench is compiling the user will be presented with a dialog box displaying the progress.
If any errors occurs in the compilation process then they will be presented in the Error window.