source: trunk/playground/GWT-Examples/GWT-JSNI-example/src/gdl/isidor/us/TopicMaps/TmEngine.java

Last change on this file was 484, checked in by lgiessmann, 13 years ago

gdl-frontend: fixed ticket #112

File size: 480 bytes
Line 
1package gdl.isidor.us.TopicMaps;
2
3
4public class TmEngine {
5        public native TopicMap createTM(String itemIdentifier) /*-{
6                try{
7                        var factory, sys, tmid, tm;
8            factory = $wnd.TopicMapSystemFactory.newInstance();
9                factory.setProperty('com.semanticheadache.tmjs.backend', 'memory');
10                sys = factory.newTopicMapSystem();
11                tmid = sys.createLocator(itemIdentifier);
12                tm = sys.createTopicMap(tmid);
13                return tm;
14                }catch(e){
15                        $wnd.alert(e);
16                }
17        }-*/;
18}
Note: See TracBrowser for help on using the repository browser.