public MappingClassColumn getMappingClassColumn( EObject theTreeNode, MappingClass theMappingClass) { CoreArgCheck.isNotNull(theTreeNode); MappingClassColumn result = mappingLocator.getMappingClassColumn(theTreeNode, theMappingClass); return result; }
/** * Obtains the <code>MappingClassColumn</code> where the specified tree node is mapped. * * @param theTreeNode the tree node whose <code>MappingClassColumn</code> is being requested * @return the <code>MappingClassColumn</code> or <code>null</code> if not mapped */ public MappingClassColumn getMappingClassColumn(EObject theTreeNode) { /* * jh Lyra enh: * * This is a linear search, and the MCs are not necessarily in any * optimal order. Let's replace this with a HashMap. * * jhTODO * Major question: This map is created in the constructor of this class; * Should it be recreated any other times prior to * recreating this class (TreeMappingAdapter)? * Yes: on NewMappingLinkAction and DeleteMappingLinksAction * [fixed 2/1/2006] */ CoreArgCheck.isNotNull(theTreeNode); MappingClassColumn result = mappingLocator.getMappingClassColumn(theTreeNode); // // result = (MappingClassColumn)getTreeNodesToMappingClassColumnsMap( false ).get( // theTreeNode ); // return result; }