Eclipse plugin Eclipse插件:PropertyPage的nameFilter产生了一种奇怪的效果
我使用EclipseSDKMars.1(4.5.1)。我创建了一个propertyPages插件。 在plugin.xml中: 如果我将“nameFilter”的值改为“.txt”,那么只有当我选择.txt文件时,propertyPage项才能出现在properties对话框的左侧; 如果我将“nameFilter”的值更改为“.java”或“.xml”甚至“*”,则仍然只有在选择.txt文件时,才能显示propertyPage项。 这是我的plugin.xml:Eclipse plugin Eclipse插件:PropertyPage的nameFilter产生了一种奇怪的效果,eclipse-plugin,Eclipse Plugin,我使用EclipseSDKMars.1(4.5.1)。我创建了一个propertyPages插件。 在plugin.xml中: 如果我将“nameFilter”的值改为“.txt”,那么只有当我选择.txt文件时,propertyPage项才能出现在properties对话框的左侧; 如果我将“nameFilter”的值更改为“.java”或“.xml”甚至“*”,则仍然只有在选择.txt文件时,才能显示propertyPage项。 这是我的plugin.xml: <?xml versio
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.propertyPages">
<page
id="com.def.btp_property_3.properties.BTPPropertyPage"
name="BTP Page"
class="com.def.btp_property_3.properties.BTPPropertyPage"
nameFilter="*.java">
<enabledWhen>
<instanceof
value="org.eclipse.core.resources.IFile">
</instanceof>
</enabledWhen>
</page>
</extension>
</plugin>
有谁能告诉我原因并给我一个解决方案。使用时启用:
视图中的用户界面元素通常不是
IFile
的实例,而是可以“调整”到IFile
的其他对象。处理此情况时启用此功能。对于使用时启用的功能:
视图中的用户界面元素通常不是IFile
的实例,而是可以“调整”到IFile
的其他对象。这是在处理该案件时启用的