throws BadLocationException {
IRegion line = document.getLineInformationOfOffset(lineOffset);
- ITypedRegion[] linePartitioning = document.computePartitioning(
- lineOffset, line.getLength());
+ ITypedRegion[] linePartitioning = document.computePartitioning (lineOffset, line.getLength());
List segmentation = new ArrayList();
+
for (int i = 0; i < linePartitioning.length; i++) {
- if (IPHPPartitions.PHP_STRING_DQ.equals(linePartitioning[i]
- .getType())) {
- segmentation.add(linePartitioning[i]);
- } else if (IPHPPartitions.PHP_STRING_HEREDOC
- .equals(linePartitioning[i].getType())) {
- segmentation.add(linePartitioning[i]);
+ if (IPHPPartitions.PHP_STRING_DQ.equals (linePartitioning[i].getType())) {
+ segmentation.add (linePartitioning[i]);
+ }
+ else if (IPHPPartitions.PHP_STRING_HEREDOC.equals (linePartitioning[i].getType())) {
+ segmentation.add (linePartitioning[i]);
}
}