This section describes the way to configure SmartTools and to start SmartTools over OSGi.
The World file is the first configuration read by SmartTools. It is alike a initialization script environment.
You want to get an environment where component A is connected to component B. This is the step you need to do.
You need to have a bundle that will set the world file to the Components Manager and starts the Components Manager. This bundle can be one of your component or a specificated bundle for that purpose.
inria.smarttools.componentsmanager.World.getInstance().loadWorld(
getClass().getResourceAsStream("/st.world"));
for (int i = 0; i < context.getBundles().length; i++) {
if (context.getBundles()[i].equals("componentsManager")) {
context.getBundles()[i].start();
}
}
There is two types of components: Simple components and documents components.
As you may use mainly simple components, documents components offer a structured model of your data.
You have to define only one thing: a CDML, which a description of your component.
It has the same structure as the simple component, and it defines more concepts:
SmartTools generates automatically every parsers needed to the abstract grammar and every concrete syntaxes.
Every syntaxes are binded to the same data structure, so that you can translate from a syntaxe to an another syntax.
SmartTools offers out of the box Outline and XML views of your document. View it!
You can get more information on the wiki.
Next: Examples
Last modified: $Date: 2008-08-25 11:25:14 +0200 (Mon, 25 Aug 2008) $