Netbeans平台中, .shadow文件主要用于系统文件系统的配置数据上. .shadow文件在功能上和Unix的软连接很像. 实际上就是一个文件的指针. .shadow文件通常在只需要一个对象实例,但是必须在多个目录下存在的情况下使用. 例如, 一个动作通常在系统文件系统中Action目录下声明,但是这个动作也必须在菜单和工具栏中出现. 我们不能创建这个动作的多个实例来解决上面的问题. 一个.instance文件在模块的层文件layer.xml中的Actions目录中创建. 然后在其他需要这个对象的地方创建对应的.shadow文件指向这个.instance文件. 在系统文件系统中声明一个.shadow文件:
- <folder name="A">
- <file name="com-foo-mymodule-MyClass.instance"/>
- <!---->folder>
-
- <folder name="B">
- <file name="Shadow1.shadow">
- <attr name="originalFile" stringvalue="A/com-foo-mymodule-MyClass.instance"/>
- <!---->file>
- <!---->folder>
-
- <folder name="C">
- <file name="anotherShadow.shadow">
- <attr name="originalFile" stringvalue="A/com-foo-mymodule-MyClass.instance"/>
- <!---->file>
- <!---->folder>
<folder name="A"><folder name="B"><folder name="C"><file name="anotherShadow.shadow">
</file></folder></folder></folder>
.shadow文件可以指向系统文件的任何文件, 也可以指向磁盘上的真实文件. 例如在Netbeans IDE中Favorite Tab面板上,使用.shadow文件指向磁盘上的真实目录.
分享到:
相关推荐
netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体...
NetBeans.Platform.6.9.Developers.Guide
语言程序设计资料:NetBeans使用教程.doc
org.netbeans.lib.axtextra absolutelayout absoluteconstains
语言程序设计资料:第13章_开发工具:NetBeans的使用.ppt
语言程序设计资料:netbeans基础教程.doc
语言程序设计资料:NetBeans学习笔记.doc
语言程序设计资料:NetBeans使用文档.doc
NetBeans.IDE.7使用,常见问题解决方法
NetBeans.Platform.6.9.Developers.Guide中的代码。
Netbeans.教程.doc
一共分两卷,这是第二部分。... you'll find what you need in this book to get started with the more vibrant, more productive extensible NetBeans platform project found on netbeans.org.
Apress,.Pro.Netbeans.IDE.6.Rich.Client.Platform.Edition.(2008)
NetBeans使用手册.pdf,有兴趣的朋可以参考一下,很有用的。
Building.SOA.Based.Composite.Applications.Using.NetBeans.IDE.6
Packt.Building.SOA-Based.Composite.Applications.Using.NetBeans.IDE.6
Netbeans操作数据库.pdf
[The.Definitive.Guide.to.NetBeans.Platform.7].Heiko.Böck.文字版.pdf