Search in sources :

Example 1 with DebugFilePosition

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));
}
Also used : FileSystemItem(org.rstudio.core.client.files.FileSystemItem) OpenSourceFileEvent(org.rstudio.studio.client.common.filetypes.events.OpenSourceFileEvent) FilePosition(org.rstudio.core.client.FilePosition) DebugFilePosition(org.rstudio.core.client.DebugFilePosition) DebugFilePosition(org.rstudio.core.client.DebugFilePosition)

Aggregations

DebugFilePosition (org.rstudio.core.client.DebugFilePosition)1 FilePosition (org.rstudio.core.client.FilePosition)1 FileSystemItem (org.rstudio.core.client.files.FileSystemItem)1 OpenSourceFileEvent (org.rstudio.studio.client.common.filetypes.events.OpenSourceFileEvent)1