コード例 #1
0
 private int getCharEnd(org.eclipse.emf.ecore.EObject element) {
   org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextLocationMap locationMap =
       getLocationMap(element);
   if (locationMap != null) {
     return locationMap.getCharEnd(element) + 1;
   }
   return -1;
 }
コード例 #2
0
 private int getLine(org.eclipse.emf.ecore.EObject element) {
   int line = -1;
   org.feature.multi.perspective.mapping.viewmapping.resource.mtext.IMtextLocationMap locationMap =
       getLocationMap(element);
   if (locationMap != null) {
     line = locationMap.getLine(element);
   }
   return line;
 }