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
 @Override
 public void getHandleMemento(StringBuilder buff) {
   super.getHandleMemento(buff);
   for (int i = 0; i < fParameterTypes.length; i++) {
     buff.append(CEM_PARAMETER);
     escapeMementoName(buff, fParameterTypes[i]);
   }
 }
Esempio n. 3
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
   }
 }