创建属性视图rcp

时间:2014-06-19 14:34:13

标签: eclipse view properties rcp

您好我是Eclipse rcp的新手。我正在开发一个小应用程序。在这个应用程序中,我想显示与所选文件相对应的属性视图。 我提到了这篇文章:http://www.eclipse.org/articles/article.php?file=Article-Adapters/index.html 但是,我无法找到如何创建属性视图并在我的应用程序透视图中显示它。如下所示:http://www.eclipsepluginsite.com/properties-2.html

因此,应该是我的应用程序,导航器视图和我的属性视图,而不是eclipse应用程序。

1 个答案:

答案 0 :(得分:0)

“属性”视图的标识为org.eclipse.ui.views.PropertySheet,此值IPageLayout.ID_PROP_SHEET有一个常量。

因此,如果您正在为RCP使用Perspective工厂,则需要addView IPageLayout.ID_PROP_SHEET IPageLayoutIFolderLayout或{{1}}。