public class ImportExportPlugin extends PluginActivator
Modifier and Type | Field and Description |
---|---|
private FilesService |
filesService |
private Logger |
log |
private TopicmapsService |
topicmapsService |
bundle, dms
Constructor and Description |
---|
ImportExportPlugin() |
Modifier and Type | Method and Description |
---|---|
private String |
color(String typeUri) |
Topic |
exportTopicmapToJSON(long topicmapId) |
String |
exportTopicmapToSVG(long topicmapId) |
private String |
prefix()
private void createTopic(JSONObject topic, Map
|
private String |
typeIconDataUri(String typeUri)
### Make this work for custom icons too, this works currently just with icons included in the standard
distribution.
|
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
private TopicmapsService topicmapsService
private FilesService filesService
public ImportExportPlugin()
public Topic exportTopicmapToJSON(long topicmapId)
public String exportTopicmapToSVG(long topicmapId) throws XMLStreamException
XMLStreamException
private String typeIconDataUri(String typeUri) throws IOException
IOException
private String prefix()
Copyright © 2015. All Rights Reserved.