lang.equals(NATIVE_LANGUAGE);
}
private void addToTree( String s )
{
TreeNode tnew = tree.getNode( s );
if ( tnew != null ) return;
int ind = getIndexOfLast(s, "" + KEY_SEPARATOR + KEY_SEPARATOR_2 );
tnew = new TreeNode( s );
if ( ind < 0 ){
tnew.caption = s;
tree.insertRoot( s );
}
else{
String tname = s.substring( 0, ind );
addToTree( tname );
TreeNode ttpar = tree.getNode( tname );
tnew.caption = s.substring( ind + 1 );
tree.insert( tnew, ttpar, LevelTree.CHILD );
}
tree.setImages( tnew.getText(), OPEN_IMAGE, CLOSE_IMAGE );
}