[英]How can I change the name of *.xml file in the eclipse IDE's project explorer with one of its element
[英]How can we change default label provider of eclipse ide's project explorer view to render file with customized label
我有一个包含一些xml文件以及一些系统生成名称的文件夹。 我想创建一个插件,该插件可以用xml文件本身的name属性之间存在的文件的实际名称替换系统生成的名称。 我没有找到任何方法来修改默认标签提供者,并且我是eclipse插件开发的新手。任何机构都可以告诉我实现此任务的适当方法...
we can extend eclipse decoration extension point to provide custom label.
<extension point="org.eclipse.ui.decorators">
<decorator
id="YourDecorator"
label="Decorator Label"
state="false"
class="YourDecorator.class"
objectClass="org.eclipse.core.resources.IResource"
adaptable="true">
</decorator>
</extension>
for more info visit the following link :
:https://eclipse.org/articles/Article-Decorators/decorators.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.