使用Eclipse向导进行快速开发

豆豆网   技术应用频道   2007年08月18日    社区交流

内容摘要:Eclipse 框架和集成开发环境 (IDE) 的最优秀特性之一是可扩展性。在本文中,您将了解如何快速构建用于自动完成添加新文件过程的向导。由于可以预定义文件的内容,因此向导通过提供一致性和自动化使您可以更好地进行开发。

  清单 7. index-xhtml-template.resource 文件<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>This is an Example.com Web page</title>
 <link rel="stylesheet" href=
 "http://www.example.com/enterprise/styles/main.css" type=
 "text/css" />
 <script type="text/javascript" language="JavaScript" src=
 "http://www.example.com/scripts/main.js">
</script>
</head>
<body>
 <div id="search">
  <form id="searchForm" name="searchForm" action=
  "http://www.example.com/search.jsp">
   <input type="text" name="searchText" /> <input type="button"
   value="Search Example.com" />
  </form>
 </div>
 <div id="mainMenu">
  <p class="menu">Main menu</p>
  <ul class="mainMenu">
   <li><a href="http://cms.ddvip.com/index.php#home">Home</a></li>
   <li><a href="http://cms.ddvip.com/index.php#item1">Item 1</a></li>
  </ul>
 </div><!-- Put the body of your page here -->
 <div id="body"></div>
</body>
</html>

来源:ibm    作者:Nathan A. Good    责编:豆豆技术应用

正在加载评论...