added logic to check whether setting the tree for editing or viewing
added logic to check whether setting the tree for editing or viewing


SVN-Revision: 1667

NCIP/cananolab,NCIP/cananolab,NCIP/cananolab