From 350d69f48150a73b6ad4b0064acf9cd63c9cf9d1 Mon Sep 17 00:00:00 2001 From: cmzmasek Date: Mon, 18 Nov 2013 05:31:27 +0000 Subject: [PATCH] in progress --- .../src/org/forester/applications/simple_node_processor.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/forester_applications/src/org/forester/applications/simple_node_processor.java b/forester_applications/src/org/forester/applications/simple_node_processor.java index 8ecbe86..c3d7d28 100644 --- a/forester_applications/src/org/forester/applications/simple_node_processor.java +++ b/forester_applications/src/org/forester/applications/simple_node_processor.java @@ -53,6 +53,7 @@ public class simple_node_processor { CommandLineArguments cla = null; cla = new CommandLineArguments( args ); in = cla.getFile( 0 ); + // in = new File( ""); //out = cla.getFile( 1 ); // if ( out.exists() ) { // System.out.println( out + " already exists" ); @@ -121,7 +122,12 @@ public class simple_node_processor { if ( node.getNodeData().isHasTaxonomy() ) { final Taxonomy t = node.getNodeData().getTaxonomy(); if ( !ForesterUtil.isEmpty( t.getTaxonomyCode() ) ) { - SurfacingUtil.obtainHexColorStringDependingOnTaxonomyGroup( t.getTaxonomyCode(), phy ); + final String c = t.getTaxonomyCode(); + if ( c.indexOf( "XX" ) == 3 ) { + System.out.println( "FAKE_CODE_TO_ID_MAP.put( \"" + c + "\", "+ t.getIdentifier().getValue() + ");" ); + } + + // SurfacingUtil.obtainHexColorStringDependingOnTaxonomyGroup( t.getTaxonomyCode(), phy ); } } } -- 1.7.10.2