Eclipse – 整合开发工具
基础篇
raw.doc 第 1 頁,共 329 頁
Jacky Lee
2005/03/01
raw.doc 第 2 頁,共 329 頁
目录
0.环境说明...........................................................................................................................................8
1.Eclipse 简介.......................................................................................................................................9
1.1 历史背景................................................................................................................................9
1.2 开发原始码软件..................................................................................................................10
1.3 Eclipse 版本介绍..................................................................................................................11
1.4 跨语言、跨平台..................................................................................................................12
2. Eclipse Platform.............................................................................................................................14
2.1 概观......................................................................................................................................14
2.2 架构......................................................................................................................................15
2.3 项目与资料夹......................................................................................................................15
2.4 平台核心..............................................................................................................................16
2.5 工作区(workspace)...............................................................................................................17
2.6 工作台(workbench)..............................................................................................................18
2.6.1 视图(View)................................................................................................................19
2.6.2 编辑器(Editor)...........................................................................................................22
2.6.3 视景(Perspective)......................................................................................................26
2.7 重新排列视图和编辑器......................................................................................................27
2.7.1 放置游标...................................................................................................................27
2.7.2 重新排列视图...........................................................................................................28
2.7.3 并列编辑器...............................................................................................................29
2.7.4 重新排列附加标签的视图.......................................................................................31
2.7.5 最大化.......................................................................................................................32
2.8 菜单和工具列......................................................................................................................33
2.8.1 菜单...........................................................................................................................34
2.8.2 图标和按钮...............................................................................................................50
2.9 视景......................................................................................................................................56
2.9.1 新视景.......................................................................................................................56
2.9.2 新窗口.......................................................................................................................58
2.9.3 储存视景...................................................................................................................59
2.9.4 配置视景...................................................................................................................62
2.10 作业和标记........................................................................................................................64
2.10.1 不相关的作业.........................................................................................................64
2.10.2 相关的作业.............................................................................................................65
2.10.3 开启档案.................................................................................................................67
raw.doc 第 3 頁,共 329 頁
2.11 书签....................................................................................................................................68
2.11.1 新增和检视书签.....................................................................................................68
2.11.2 使用书签.................................................................................................................70
2.11.3 移除书签.................................................................................................................71
2.12 快速视图(Fast View)..........................................................................................................73
2.12.1 建立快速视图.........................................................................................................74
2.12.2 使用快速视图.........................................................................................................75
2.13 比较....................................................................................................................................77
2.13.1 简单比较.................................................................................................................78
2.13.2 了解比较.................................................................................................................79
2.13.3 使用比较.................................................................................................................81
2.14 历史纪录............................................................................................................................84
2.15 回应 UI...............................................................................................................................86
3.喜好设定(Preferences)....................................................................................................................90
3.1 工作台(Workbench).............................................................................................................91
3.1.1 外观(Appearance)......................................................................................................93
3.1.2 功能(Capabilities)......................................................................................................95
3.1.3 颜色和字型(Colors and Fonts).................................................................................97
3.1.4 比较/修正(Compare/Patch).......................................................................................99
3.1.5 编辑器(Editors).......................................................................................................102
3.1.6 档案关联(File Associations)...................................................................................103
3.1.7 按键(Keys)..............................................................................................................106
3.1.8 标签装饰(Label Decorations).................................................................................117
3.1.9 链接资源(Linked Resources)..................................................................................118
3.1.10 历史纪录(Local History).......................................................................................120
3.1.11 视景.......................................................................................................................121
3.1.12 搜寻(Search)..........................................................................................................123
3.1.13 启动和关闭(Startup and Shutdown).....................................................................125
3.2 Ant......................................................................................................................................126
3.2.1 Ant 编辑器(Ant Editor)...........................................................................................127
3.2.2 Ant 执行时期(Ant Runtime)...................................................................................129
3.3 建置次序(Build Order)......................................................................................................132
3.4 说明(Help)..........................................................................................................................134
3.4.1 说明服务器(Help Server).......................................................................................136
3.5 自动更新(Install/Update)...................................................................................................138
3.6 Java.....................................................................................................................................138
3.6.1 外观(Appearance)....................................................................................................139
3.6.2 类别路径变量(Classpath variables)........................................................................141
raw.doc 第 4 頁,共 329 頁
3.6.3 程序代码格式制作器(Code Formatter).................................................................142
3.6.4 程序代码产生(Code generation)............................................................................144
3.6.5 编译器(Compiler)....................................................................................................147
3.6.6 Java 编辑器(Java editor).........................................................................................153
3.6.7 JRE 安装(JRE installations)....................................................................................162
3.6.8 JUnit........................................................................................................................163
3.6.9 新专案(New project)...............................................................................................164
3.6.10 组织汇入(Organize imports).................................................................................165
3.6.11「重构」喜好设定(Refactoring preferences).......................................................166
3.6.12 作业标示(Task Tags).............................................................................................167
3.7 团队(Team).........................................................................................................................168
3.7.1 CVS.........................................................................................................................169
3.7.2 忽略的资源(Ignored Resources).............................................................................174
3.7.3 档案内容(File Content)...........................................................................................175
4. Java 程序开发..............................................................................................................................177
4.1 建立 Java 项目....................................................................................................................178
4.2 建立 Java 类别....................................................................................................................179
4.3 程序代码完成功能............................................................................................................182
4.3.1 Code Completion.....................................................................................................182
4.3.2 Code Assist..............................................................................................................182
4.4 执行 Java 程序....................................................................................................................184
4.5 Java 实时运算簿页面(Java Scrapbook Page)....................................................................187
4.6 自订开发环境....................................................................................................................194
4.6.1 程序代码格式.........................................................................................................194
4.6.2 程序代码产生模板.................................................................................................196
4.6.3 Javadoc 批注...........................................................................................................199
4.7 产生 getter 与 setter...........................................................................................................204
4.8 建立 JAR 档案...................................................................................................................206
4.8.1 建立新的 JAR 档案................................................................................................206
4.8.2 设定进阶选项.........................................................................................................208
4.8.3 定义 JAR 檔的 manifest.........................................................................................210
4.8.4 重新产生 JAR 檔....................................................................................................214
4.9.建立 Javadoc 文件.............................................................................................................216
4.9.1 选取产生 Javadoc 用的类型..................................................................................216
4.9.2 为标准 doclet 配置 Javadoc 自变量......................................................................217
4.9.3 配置 Javadoc 自变量..............................................................................................219
4.10 工作集(Working Sets)......................................................................................................220
4.10.1 新增工作集...........................................................................................................221
raw.doc 第 5 頁,共 329 頁
评论0