2.1 Basic tutorial

 2.1.1 the workbench

选择工作区workspace,即文件保存的位置。

command link Window > Open Perspective > Other... > Resource可以显示如下,可以看到选择的视图resource在右上角高亮。

Workbench

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.

Workbench

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.

Welcome page selected

(1)editor

由下面两幅图可以知道,点击view的文件时,会自动打开相关的editor,并且title上的*表示未保存。点击view时和点击editor是,工具栏和菜单栏是不同的,有些会禁用。

Eclipse Workbench, one editor

Eclipse Workbench, two editors

(2)view

view有两个menu:一个是右键点击,一个是点击下拉键。view的显示和隐藏是通过window-show view。

Project Explorer view menu, top left     

 

Project Explorer view menu, arrow pulldown

Show View menu

 2.1.3 a simple project

方法一:From the menu bar, select File > New > Project...

New Project Wizard

 
New Project Wizard

 

New Folder Wizard

 注意,这个advanced按钮点击后允许你在这个project位置之外的地方,新建文件夹。这叫linked folder。

 方法二:Using the New button

New Wizard Pulldown

2.1.4 新建pesperctive

 

 

 

posted @ 2014-10-16 16:15  behappylee  阅读(143)  评论(0编辑  收藏  举报