try
{
tree.writeToXml(new File("word"));
- copyFileToJar(jout, "word", tree.getTreeName());
- jms.addExtTreeViewer(treeView);
+ copyFileToJar(jout, "word", "aptx-test");
+
} catch (IOException e)
{
private void loadExternalTrees(jarInputStreamProvider jprovider,
JalviewModelSequence jms, AlignViewport av)
{
- for (TreeFrameI externalTreeViewer: jms.getExtTreeViewer()) {
- // String treeFile = copyJarEntry(jprovider, errorMessage, "aptx", null);
- TreeViewerUtils.addTreeViewFrameToJalview(externalTreeViewer);
-
+ String treeFile = copyJarEntry(jprovider, "aptx-test", "aptx", null);
+ try
+ {
+ AptxInit.createInstancesFromFile(treeFile, av);
+ } catch (IOException e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
}
}
this._treeList.add(index, vTree);
}
+ /**
+ * Unused.
+ *
+ * @param treeViewer
+ */
public void addExtTreeViewer(jalview.ext.treeviewer.TreeFrameI treeViewer)
{
this._extTreeList.add(treeViewer);
}
+ /**
+ * Unused.
+ *
+ * @param index
+ * @param treeViewer
+ */
public void addExtTreeViewer(final int index,
jalview.ext.treeviewer.TreeFrameI treeViewer)
{
return this._treeList.size();
}
+ /**
+ * Unused.
+ *
+ * @param index
+ * @return
+ * @throws java.lang.IndexOutOfBoundsException
+ */
public jalview.ext.treeviewer.TreeFrameI getExtTreeViewer(final int index)
throws java.lang.IndexOutOfBoundsException
{
return _extTreeList.get(index);
}
+ /**
+ * Unused.
+ *
+ * @return
+ */
public jalview.ext.treeviewer.TreeFrameI[] getExtTreeViewer()
{
jalview.ext.treeviewer.TreeFrameI[] array = new jalview.ext.treeviewer.TreeFrameI[0];
return this._extTreeList.toArray(array);
}
+ /**
+ * Unused.
+ *
+ * @return
+ */
public int getExtTreeViewerCount()
{
return this._extTreeList.size();