RCP:ISourceLocator翻译

简介: org.eclipse.debug.core.model.ISourceLocator   A source locator locates source elements for stack frames.
org.eclipse.debug.core.model.ISourceLocator

 

A source locator locates source elements for stack frames. A launch (optionally) specifies a source locator which is used to locate source for that debug session. If a launch does not provide a source locator, source cannot be displayed. Abstraction of source lookup allows clients to hide implementation details of source location and representation.

 

资源定位器用于为stack frames找到源码元素。加载器会指定一个用于为debug session提供定位源的资源定位器,如果加载器没有提供,则元素不会显示。对源查找的抽象化,将允许客户端隐藏源码定位的具体实现和表达(换言之,调用者只需要知道接口)。

 

Generally, an implementor of a debug model will also implement launch configuration types, delegates, and source locators that work together as a whole. That is, the implementation of a source locator will have knowledge of how to locate a source element for a stack frame. For example, a Java stack frame could define API which specifies a source file name. A Java source locator would use this information to locate the associated file in the workspace.

 

一般来说,debug model的实现会同时伴随着launch configuration类型、授权以及源定位的实现,这些工作是一个整体。资源定位器的实现需要知道如何为一个stack frame定位它的源元素。例如,一个java stack frame会定义制定源文件名的API,一个java source locator将会使用该信息去在工作空间里定位相关的文件。

 

Source is displayed by the debug UI plug-in. The debug UI uses a source locator to resolve an object representing the source for a stack frame, and then uses a debug model presentation to determine the editor and editor input to use to display the actual source in an editor.

Clients may implement this interface.

 

源由debug UI插件显示。debug UI使用source locator来为stack frame提供一个对象来表示源,然后使用一个debug model表达来决定编辑器和编辑器输入用于展示实际的源。

 

See Also:
org.eclipse.debug.core.ILaunch
org.eclipse.debug.core.model.IStackFrame
org.eclipse.debug.core.model.IPersistableSourceLocator
目录
相关文章
|
存储 机器学习/深度学习 人工智能
存储越买越不够用?AI来教你精打细算!
存储越买越不够用?AI来教你精打细算!
559 4
|
云安全 运维 安全
阿里云安全体检功能使用评测
阿里云安全体检功能使用评测
431 3
Funcode实现黄金矿工
Funcode实现黄金矿工
|
机器学习/深度学习 算法
机器学习之——神经网络模型
之前我们了解了神经网络模型(Nerual Network),这一次,我们来具体讨论一下神经网络模型的表达。 我们知道,神经网络模型是许多逻辑单元(Logistics Unit)按照不同的层级组织起来的网络,每一层的输出变量作为下一层的输入变量。如下图,是一个三层的神经网络,第一层为输入层(Input Layer),最后一层为输出层(Output Layer),中间的一层为隐藏层(Hi
3306 0
|
7天前
|
域名解析 人工智能 Linux
|
18天前
|
Linux Go 开发工具
手机上跑 DeepSeek 智能体:开源安卓客户端 DSH Go 安装与使用指南
DSH Go 是一款开源安卓客户端,将 DeepSeek Harness 智能体引擎装进手机:免 Root、免 Termux,一键安装即用;支持本机运行(内置 Ubuntu+Node.js)或远程接管电脑会话;具备插话打断、过程折叠、屏幕操控、端到端加密分享等特色功能,真正实现智能体“口袋化”。
16765 62
|
16天前
|
人工智能
Google 提示「所在地区不可用」?进不去 Antigravity 或 Gemini,先查账号这个设置
进不去 Antigravity 或 Gemini,提示所在地区不可用?三步查清 Google 账号关联地区、官方更正表单理由选法与改区注意事项。
Google 提示「所在地区不可用」?进不去 Antigravity 或 Gemini,先查账号这个设置
|
1天前
|
人工智能 安全 网络安全
|
5天前
|
云安全 数据采集 人工智能
|
6天前
|
Linux API iOS开发
【DSH】DeepSeek Harness新手保姆教程(下载+安装+配置+使用,2026最新实测)
DeepSeek Harness(dsh)是 DeepSeek AI 开源的智能体框架,秉持“一切皆插件”理念,支持读文件、改代码、执行命令、处理表格等自动化任务;免费开源,兼容 Win/macOS,需配 API 密钥使用。(239字)
1199 2