Line | |
---|
1 | package gdl.isidor.us.TopicMaps; |
---|
2 | |
---|
3 | |
---|
4 | public 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.