Skip to content
Closed
Show file tree
Hide file tree
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 @@ -7,6 +7,6 @@ object RobotResourceFileType : LanguageFileType(RobotFrameworkLanguage), OSFileI
override fun getName() = "ROBOT_FRAMEWORK_RESOURCE"
override fun getDisplayName() = "Robot Framework Resource"
override fun getDescription() = "Robot Framework resource files"
override fun getDefaultExtension() = "robot"
override fun getDefaultExtension() = "resource"
override fun getIcon() = RobotIcons.Resource
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ package dev.robotcode.robotcode4ij.debugging.breakpoints
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.xdebugger.breakpoints.XLineBreakpointType
import dev.robotcode.robotcode4ij.RobotResourceFileType
import dev.robotcode.robotcode4ij.RobotSuiteFileType

class RobotCodeLineBreakpointType : XLineBreakpointType<RobotCodeLineBreakpointProperties>(ID, NAME) {
companion object {
private const val ID = "robotcode-line"
private const val NAME = "Robot Framework Line Breakpoint"
}

override fun createBreakpointProperties(file: VirtualFile, line: Int): RobotCodeLineBreakpointProperties? {
override fun createBreakpointProperties(file: VirtualFile, line: Int): RobotCodeLineBreakpointProperties {
return RobotCodeLineBreakpointProperties()
}

override fun canPutAt(file: VirtualFile, line: Int, project: Project): Boolean {
return true
return file == RobotSuiteFileType || file == RobotResourceFileType
}
}