Move to nice tree node naming
This commit is contained in:
parent
cb7f172e7d
commit
39c388f145
|
@ -32,6 +32,7 @@ import java.util.Optional;
|
||||||
import org.x4o.fc18.cake2.FourCornerDotCake;
|
import org.x4o.fc18.cake2.FourCornerDotCake;
|
||||||
import org.x4o.fc18.cake2.FourCornerDotCakeTower;
|
import org.x4o.fc18.cake2.FourCornerDotCakeTower;
|
||||||
import org.x4o.fc18.cake2.FourCornerX00PetitVide;
|
import org.x4o.fc18.cake2.FourCornerX00PetitVide;
|
||||||
|
import org.x4o.fc18.cake2.FourCornerX18CakePointDotName;
|
||||||
import org.x4o.fc18.cake2.FourCornerX21CodePointSequence;
|
import org.x4o.fc18.cake2.FourCornerX21CodePointSequence;
|
||||||
import org.x4o.o2o.tdoc.ApiDocGenerator;
|
import org.x4o.o2o.tdoc.ApiDocGenerator;
|
||||||
import org.x4o.o2o.tdoc.DefaultPageWriterHelp;
|
import org.x4o.o2o.tdoc.DefaultPageWriterHelp;
|
||||||
|
@ -185,11 +186,15 @@ public class FCDocWriter {
|
||||||
private ApiDocNode createNodeCakeWord(FourCornerDotCake dotCake, int offset) {
|
private ApiDocNode createNodeCakeWord(FourCornerDotCake dotCake, int offset) {
|
||||||
int cakePoint = dotCake.getStart() + offset;
|
int cakePoint = dotCake.getStart() + offset;
|
||||||
String idStr = String.format("0x%06X", cakePoint);
|
String idStr = String.format("0x%06X", cakePoint);
|
||||||
String name = String.format("%s.%s", dotCake.name(), idStr);
|
String name = idStr;
|
||||||
String desc = name;
|
String desc = name;
|
||||||
FourCornerX00PetitVide[] videPoints = dotCake.getVidePoints();
|
FourCornerX00PetitVide[] videPoints = dotCake.getVidePoints();
|
||||||
if (videPoints.length != 0) {
|
if (videPoints.length != 0) {
|
||||||
FourCornerX00PetitVide videPoint = videPoints[offset];
|
FourCornerX00PetitVide videPoint = videPoints[offset];
|
||||||
|
Optional<FourCornerX18CakePointDotName> x18DotName = videPoint.kaasX18CakeDotName();
|
||||||
|
if (x18DotName.isPresent()) {
|
||||||
|
name = x18DotName.get().name();
|
||||||
|
}
|
||||||
Optional<FourCornerX21CodePointSequence> x21CodeDisplay = videPoint.kaasX21CodeSequence();
|
Optional<FourCornerX21CodePointSequence> x21CodeDisplay = videPoint.kaasX21CodeSequence();
|
||||||
if (x21CodeDisplay.isPresent()) {
|
if (x21CodeDisplay.isPresent()) {
|
||||||
StringBuilder buf = new StringBuilder();
|
StringBuilder buf = new StringBuilder();
|
||||||
|
|
Loading…
Reference in a new issue