use of org.rstudio.core.client.DebugFilePosition in project rstudio by rstudio.
the class DebugCommander method highlightDebugPosition.
// Private methods ---------------------------------------------------------
private void highlightDebugPosition(LineData lineData, boolean finished) {
FileSystemItem sourceFile = FileSystemItem.createFile(debugFile_);
DebugFilePosition position = DebugFilePosition.create(lineData.getLineNumber(), lineData.getEndLineNumber(), lineData.getCharacterNumber(), lineData.getEndCharacterNumber());
eventBus_.fireEvent(new OpenSourceFileEvent(sourceFile, (FilePosition) position.cast(), FileTypeRegistry.R, finished ? NavigationMethods.DEBUG_END : NavigationMethods.DEBUG_STEP));
}
Aggregations