netbeans教程:NetBeans Component Palette 模块教程

  本教程演示如何创建提供拖放新文件类型代码片段 Component Palette代码片段用来加速编码过程IDE 为 JSP 文件、HTML 文件和 Form 文件提供 Component Palette在本教程中您将学习如何为区别文件类型(默认情况下 IDE 不识别文件类型)创建 Component Palette首先您使用 New File Type 向导使 IDE 能够识别新文件类型然后您实现 NetBeans Palette API 提供几个类最后您在 layer.xml 文件中注册新 Component Palette

  本教程中创建 Component Palette 将由 JBoss 部署描述符文件 (jboss-web.xml) 使用jboss-web.xml 文件通过它名称空间和所有其他 XML 文件相区别:

<!DOCTYPE jboss-web
  PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
  "http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">
  仅当具有以上名称空间文件在 IDE Source Editor 中打开时本教程中创建 Component Palette 才可见仅针对这些文件Component Palette 将在 jboss-web.xml 文件中包括 3个典型元素代码片段:“Context Root”、“Security Do”和“Resource Reference”如上所示工具提示将显示拖放代码片段时在 Source Editor 中光标位置插入标记



  通过电子邮件使其他人也可以使用该模块

  收件人可以通过使用 Update Center 来安装该模块从主菜单中选择 Tools > Update Center

Tags:  netbeans netbeans使用教程 netbeans6.5教程 netbeans教程

延伸阅读

最新评论

发表评论