You have to add these dependencies:
{code:xml}
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-explorer-core</artifactId>
<version>1.4</version>
</dependency>
{code}
Version 1.4 is compliant with 1.4.X versions of EasyVIPER.
Then the following code allows to add any SCA component (EasyVIPER core for instance) into the Frascati Explorer GUI:
{code:title=extract|borderStyle=solid}
...
import org.objectweb.util.explorer.api.Tree;
import org.ow2.frascati.FraSCAti;
import org.ow2.frascati.explorer.api.FraSCAtiExplorer;
import org.ow2.frascati.util.FrascatiException;
...
System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, "org.ow2.frascati.bootstrap.FraSCAtiFractal");
// Start FraSCAti and its Explorer.
FraSCAti frascati = FraSCAti.newFraSCAti();
Tree explorerTree = FraSCAtiExplorer.SINGLETON.get().getFraSCAtiExplorerService(Tree.class);
// Add the EasyVIPER core component.
explorerTree.addEntry("EasyVIPER", core.getComponent());
{code}
Beware of the {{FrascatiException}} you have to catch.
This will launch Frascati Explorer at runtime.
{code:xml}
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-explorer-core</artifactId>
<version>1.4</version>
</dependency>
{code}
Version 1.4 is compliant with 1.4.X versions of EasyVIPER.
Then the following code allows to add any SCA component (EasyVIPER core for instance) into the Frascati Explorer GUI:
{code:title=extract|borderStyle=solid}
...
import org.objectweb.util.explorer.api.Tree;
import org.ow2.frascati.FraSCAti;
import org.ow2.frascati.explorer.api.FraSCAtiExplorer;
import org.ow2.frascati.util.FrascatiException;
...
System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, "org.ow2.frascati.bootstrap.FraSCAtiFractal");
// Start FraSCAti and its Explorer.
FraSCAti frascati = FraSCAti.newFraSCAti();
Tree explorerTree = FraSCAtiExplorer.SINGLETON.get().getFraSCAtiExplorerService(Tree.class);
// Add the EasyVIPER core component.
explorerTree.addEntry("EasyVIPER", core.getComponent());
{code}
Beware of the {{FrascatiException}} you have to catch.
This will launch Frascati Explorer at runtime.