}
}
private void exportButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportButtonActionPerformed
// find an exporter for the selected cell
ContentExporterSPI exporter =
ContentExportManager.INSTANCE.getContentExporter(selectedCell.getClass());
// find the origin, which is the same as the location we would use to
// go to the given cell
CellTransform origin = getGotoLocation(selectedCell);
// adjust the height so the export is relative to the avatar's current
// height
Vector3f translation = origin.getTranslation(null);
CellTransform avatarTransform = ViewManager.getViewManager().getPrimaryViewCell().getWorldTransform();
translation.y = avatarTransform.getTranslation(null).getY();
origin.setTranslation(translation);
exporter.exportCells(new Cell[] { selectedCell }, origin);
}//GEN-LAST:event_exportButtonActionPerformed