Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package org.eclipse.jface.text.source;



import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
Expand Down Expand Up @@ -262,12 +263,12 @@
// determine the character width separately, because the getTextBounds above
// will also include any in-line annotations (e.g. codemining annotations) in the width
final String matchingCharacter= fTextWidget.getText(offset, offset);
final int width= gc.textExtent(matchingCharacter).x;
final Point sizePoints= gc.textExtent(matchingCharacter);

final int height= fTextWidget.getCaret().getSize().y;
Rectangle rectangleOfFloat= Rectangle.of(new Point(bounds.x, bounds.y), sizePoints);

Check warning on line 268 in bundles/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Member

ERROR: The method of(Point, int, int) in the type Rectangle is not applicable for the arguments (Point, Point)

// draw box around line segment
gc.drawRectangle(bounds.x, bounds.y + bounds.height - height, width, height - 1);
gc.drawRectangle(rectangleOfFloat);
} else {
fTextWidget.redrawRange(offset, 1, true);
}
Expand Down Expand Up @@ -473,4 +474,4 @@
return false;
}
}
}
}
Loading