我正在开发一个具有可分离视图的Eclipse RCP项目。我希望能够在分离后围绕视图的窗口边框放置一些文本。有人对这个有经验么?开发环境是Windows上的Eclipse 3.4。 感谢。
答案 0 :(得分:0)
我不确定是否可以通过传统更新触发updateTitle()
:
如果您查看org.eclipse.ui.internal.DetachedWindow
的代码,您会看到令人不安的方法updateTitle()
:
private void updateTitle() {
if (activePart != null) {
// Uncomment to set the shell title to match the title of the active part
// String text = activePart.getTitle();
//
// if (!text.equals(s.getText())) {
// s.setText(text);
// }
}
}
所有评论!
答案 1 :(得分:0)
你做不到。分离的是工具窗口而不是主窗口,因此在其上标题是不好的