2.1 Basic tutorial
2.1.1 the workbench
选择工作区workspace,即文件保存的位置。
Window > Open Perspective > Other... > Resource可以显示如下,可以看到选择的视图resource在右上角高亮。
2.1.2 Editor and view
首先要明白三个概念:editor,view和perspective。一个workbench window包含多个perspective,一个perspective又包含多个editor和view。不同的perspective可以拥有different set of views ,但是共享 same set of editors。
view是工作台内一个可视化组件。通常用来导航列表或层次结构的信息,比如workbench的resources。又或者用来显示active editor的属性。view里的修改立即保存。
editor也是工作台内的一个可视化组件。通常用来编辑或浏览 a resource。表达的方式可能是text也可能是diagram。点击view里的一个resource,就可以打开一个editor。editor里的修改要点击open-save-close才能保存。
二者都称为part,同一时刻只能有一个part显示为active,表现为title是高亮的。The active part is the target for common operations like cut, copy and paste. The active part also determines the contents of the status line.
Clicking on the Outline view causes the Outline's title bar to become highlighted and the Project Explorer's title bar to no longer be highlighted, as shown below. The Outline view is now active.
(1)editor
由下面两幅图可以知道,点击view的文件时,会自动打开相关的editor,并且title上的*表示未保存。点击view时和点击editor是,工具栏和菜单栏是不同的,有些会禁用。
(2)view
view有两个menu:一个是右键点击,一个是点击下拉键。view的显示和隐藏是通过window-show view。
2.1.3 a simple project
方法一:From the menu bar, select File > New > Project...
注意,这个advanced按钮点击后允许你在这个project位置之外的地方,新建文件夹。这叫linked folder。
方法二:Using the New button
2.1.4 新建pesperctive