use of org.rstudio.core.client.FilePosition in project rstudio by rstudio.
the class Synctex method goToSourceLocation.
private void goToSourceLocation(SourceLocation location) {
FilePosition position = FilePosition.create(location.getLine(), Math.min(1, location.getColumn()));
fileTypeRegistry_.editFile(FileSystemItem.createFile(location.getFile()), position);
}
use of org.rstudio.core.client.FilePosition 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