如何将属性页面实现到Eclipse项目 [英] How to implement a property page to an eclipse project

查看:81
本文介绍了如何将属性页面实现到Eclipse项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是交易。我以编程方式在eclipse rcp中创建一个项目。然后,我向其中添加一些持久性属性。现在,我想右键单击项目浏览器视图中的项目,然后单击属性选项卡。应该有我的财产页面。
这是我所拥有的:

Here is the deal. I create a project in eclipse rcp programmatically. Then i add some persistant properties to it. Now i want to right click on the project in the project explorer view and then click on the properties tab. There should be my property page. Here is what i have:

<extension
         point="org.eclipse.ui.propertyPages">
      <page
            adaptable="false"
            class="bg.bulsi.rcp.first.properties.SamplePropertyPage"
            id="bg.bulsi.rcp.first.properties.samplePropertyPage"
            name="Sample Page"
            nameFilter="*.*"
            objectClass="org.eclipse.core.resources.IProject"
            selectionFilter="single">
         <enabledWhen>
            <instanceof
                  value="org.eclipse.core.resources.IProject">
            </instanceof>
         </enabledWhen>
      </page>
   </extension>

为什么此页面未显示在项目的属性中?

why doesnt this page show up in the properties of the project?

推荐答案

尝试从页面标记中删除 nameFilter属性。除非您的项目名称中有一个点,否则可能是阻止您的属性页显示的原因。

Try removing the "nameFilter" attribute from the page tag. Unless you have a dot in your project name, that is probably what is preventing your properties page from showing up.

这篇关于如何将属性页面实现到Eclipse项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆