我仍然没有得到两者之间的区别.eclipse文档只是说一个窗口可以有很多页面,但什么时候会发生?在什么情况下页数不止一个?
在eclipse插件中,我想在编辑器中打开一个文件.我知道完整的包和类名,如何从中确定java文件的路径?
我正在努力渲染一些分层数据TableViewer
(这TreeViewer
不太合适 - 相信我:-).因此,我需要使用行跨度> 1来渲染父单元格.
据我所知,目前普通的JFace TableViewer
或Table
下面的SWT 是不可能的.
谁能告诉我我错了?
M.
我最近几天一直在尝试扩展默认编辑器(java,xml,所有这些)的功能,
我想要做的是在每个编辑器的侧面添加一个带有文本的大标尺.
示例:默认编辑器页面如下所示:
|-----------|
|source |
|code |
| |
|-----------|
Run Code Online (Sandbox Code Playgroud)
但我希望它像这样
|------|----|
|source| |
|code |line|
| |text|
|------|----|
Run Code Online (Sandbox Code Playgroud)
我也不能使用视图,因为我的标尺中的文本对应于某一行,并且必须与源代码一起滚动.
我试图通过实现IEditorActionDelegate来实现这一点,因为我不想要新的编辑器,但是要添加功能,但我找不到任何解决方案.
想要提一下,为了实现我的解决方案,我扩展了AbstractContributedRulerColumn
public class MyRuler extends AbstractContributedRulerColumn {
....
}
Run Code Online (Sandbox Code Playgroud) 我知道"阻止访问"应该是什么意思:你正在使用内部库,不在公共API中的东西,而你根本就不应该使用它.
现在,据我所知,包"org.eclipse.osgi.util"中的类EclipseStarter是公共API的一部分.我引用:
This package specifies API to start the platform.
Clients may use the EclipseStarter loader class to start the platform.
The EclipseStarter class is the only defined API in this package.
Run Code Online (Sandbox Code Playgroud)
来源:http://help.eclipse.org/helios/index.jsp?topic =%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fosgi%2Futil%2Fpackage-summary.html
EclipseStarter类的详细信息页面指出:
Special startup class for the Eclipse Platform. This class cannot be instantiated;
all functionality is provided by static methods.
Note that the fields on this class are not API.
Run Code Online (Sandbox Code Playgroud)
我读过:方法是开放的吗?
我的代码:
import org.eclipse.core.runtime.adaptor.EclipseStarter;
Run Code Online (Sandbox Code Playgroud)
这个已经发出警告"不鼓励访问:由于对所需库[path-to-eclipse]\plugins\org.eclipse.osgi_3.7.2.v20120110-1415.jar的限制,EclipseStarter类型无法访问"
我使用该类的代码:
try {
EclipseStarter.shutdown();
EclipseStarter.startup(null, null);
} catch …
Run Code Online (Sandbox Code Playgroud) 我想使用PDE无头构建来构建Eclipse RCP应用程序。当我运行构建的Ant脚本时,它失败并显示以下错误消息:
failed to create task or type eclipse.generateFeature
Cause: The name is undefined.
Run Code Online (Sandbox Code Playgroud) 我正在为Eclipse创建一个小插件来(重新)以编程方式启动LaunchConfigurations.
我可以启动配置,但是我希望增强以下代码,以便在启动之前首先关闭具有给定名称的所有正在运行的配置.
public void restartLaunchConfiguration(String configurationName) throws Exception {
final ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
for(final ILaunchConfiguration cfg : manager.getLaunchConfigurations()){
final String cfgName = cfg.getName();
if(!configurationName.equals(cfgName)) continue;
cfg.launch("debug", null);
break;
}
}
Run Code Online (Sandbox Code Playgroud)
如何获取所有正在运行的配置?
如何停止正在运行的配置?