Esempio n. 1
0
 /**
  * Set the body position of the last label.
  *
  * @throws CModelException
  */
 private void fixupLastLabel() throws CModelException {
   if (fLastLabelEndOffset > 0) {
     SourceManipulationInfo labelInfo = fLastLabel.getSourceManipulationInfo();
     labelInfo.setPos(labelInfo.getStartPos(), fLastLabelEndOffset - labelInfo.getStartPos());
     // TLETODO set line info
     fLastLabelEndOffset = 0;
   }
 }
Esempio n. 2
0
 /**
  * Set the body position of the last global label.
  *
  * @throws CModelException
  */
 private void fixupLastGlobalLabel() throws CModelException {
   if (fLastLabel != null && fLastLabel != fLastGlobalLabel) {
     SourceManipulationInfo globalLabelInfo = fLastGlobalLabel.getSourceManipulationInfo();
     SourceManipulationInfo labelInfo = fLastLabel.getSourceManipulationInfo();
     globalLabelInfo.setPos(
         globalLabelInfo.getStartPos(),
         labelInfo.getStartPos() + labelInfo.getLength() - globalLabelInfo.getStartPos());
     // TLETODO set line info
   }
 }