0
我想將屬性頁面添加到項目。在第一步中,我使用模板嚮導創建屬性頁面。我將org.eclipse.core.resources.IFile中的targetclass值更改爲org.eclipse.core.resources.IProject。但是,然後我啓動插件並單擊單個項目項目的屬性頁面不顯示。我如何將屬性頁面添加到eclipse項目(RCP /插件)
我已經測試了以下提示,但沒有工作:
- How to implement a property page to an eclipse project
- Can I add my customized property page in projects created in RCP application
我簡化了我的代碼,這plugin.xml中:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.propertyPages">
<page
name="TEST Sample Page"
nameFilter="*.*"
class="testplugin.properties.SamplePropertyPage"
id="testplugin.properties.samplePropertyPage">
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject">
<test property="org.eclipse.core.resources.projectNature"
value="org.eclipse.jdt.core.javanature"/>
</adapt>
</enabledWhen>
</page>
</extension>
</plugin>
有沒有人對我有暗示?
Thx。 Ben
謝謝!這有幫助。 :) – Ben