锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
錛?/SPAN>1錛夊垱寤哄伐紼?/SPAN>
l 鍦?/SPAN>Eclipse涓垱寤哄涓嬪浘鐨勭畝鍗曞伐紼?/SPAN>
錛?/SPAN>2錛夋寚瀹?/SPAN>Repository浣嶇疆
l Windows -> Open Perspective -> Other
l 閫夋嫨CVS Repository Exploring欏癸紝鎵撳紑CVS Repository Exploring
l 鍦?/SPAN>CVS Repositories瑙嗗浘涓彸鍑伙紝閫夋嫨New -> Repository Location
l 鎸囧畾CVS涓繪満鍚嶅拰Repository璺緞錛堝甫/鐨?/SPAN>Repository鍚嶏級
l 鎸囧畾鐢ㄦ埛鍚嶅拰瀵嗙爜
l 鎸囧畾閫氫俊鍗忚錛岄氬父浣跨敤pserver
l 鐐瑰嚮Finish鍒涘緩Repository浣嶇疆淇℃伅
錛?/SPAN>3錛夊叡浜伐紼?/SPAN>
l 鍦?/SPAN>Navigator瑙嗗浘涓彸鍑誨伐紼嬪悕錛岄夋嫨Team -> Share Project
l 閫夋嫨宸插垱寤虹殑Repository浣嶇疆錛堜篃鍙互鍦ㄦ澶勬柊寤猴級
l 緙虹渷浣跨敤宸ョ▼鍚嶄綔涓烘ā鍧楀悕
l 鍚戝鐨勬渶鍚庝竴欏墊樉紺哄伐紼嬩腑灝嗚琚彁浜ゅ拰榪藉姞鐨勬枃浠?BR>
l
l 鍏變韓鍚庣殑宸ョ▼濡備笅鍥炬墍紺?BR>
錛?/SPAN>1錛夌畝榪?/SPAN>
l CVS 錛?/SPAN>Concurrent Versions System錛夌郴緇熷湪鍥㈤槦寮鍙戦」鐩椂榪涜鐗堟湰鎺у埗錛岄噰鐢ㄧ殑鏄?/SPAN>C/S鏋舵瀯
l Eclipse鍐呭緩浜?/SPAN>CVS瀹㈡埛绔紝鏂逛究鍥㈤槦CVS鎺у埗
l 鐩墠Unix騫沖彴閮藉甫CVS鏈嶅姟鍣紝Windows騫沖彴姣旇緝嫻佽鐨勬槸CVSNT錛?/SPAN>http://www.cvsnt.com/cvspro/錛?/SPAN>
l 鍏堣瀹夎CVSNT錛堟垜鐨勬槸鍦?/SPAN>Windows 2003 Server涓婏級
l 瀹夎瀹屽悗鍚姩CVSNT Control Panel錛屽彲浠ュ湪Service Status欏典腑鐪嬪埌榪愯涓殑鏈嶅姟
錛?/SPAN>2錛夊垱寤?/SPAN>CVS Repository
l 閫夋嫨Repositories欏碉紝鐐瑰嚮Add鎸夐挳鍒涘緩鏂扮殑CVS Repository
l Location閮ㄥ垎鎸囧畾淇濆瓨Repository鐨勭洰褰曪紙鍙互鏂板緩錛?/SPAN>
l Name閮ㄥ垎鎸囧畾Repository鍚嶏紙浠?/SPAN>/寮濮嬶級
l 紜繚Publish Repository閫変腑
l 鍦ㄧ‘璁ゅ垵濮嬪寲Repository灝卞垱寤哄ソ浜?/SPAN>Repository
錛?/SPAN>3錛夐厤緗夐」
l 涓轟簡浣?/SPAN>Eclipse鑳藉姝e父鍜?/SPAN>CVSNT閫氫俊錛岃繕瑕佸皢Compatibility欏典腑鐨?/SPAN>Respond as cvs 1.11.2 to version request欏歸変腑
錛?/SPAN>4錛夌敤鎴風鐞?/SPAN>
l CVSNT鏈綆鍗曠殑鐢ㄦ埛綆$悊鏂瑰紡灝辨槸鍜?/SPAN>NT楠岃瘉緇撳悎錛岃繖鏍鳳紝鍒涘緩涓涓?/SPAN>NT鐢ㄦ埛涔熷氨鍒涘緩浜嗕竴涓?/SPAN>CVS鐢ㄦ埛
l 閫氳繃緋葷粺綆$悊鍛樿緗敤鎴風殑璁塊棶鏉冮檺鏉ユ帶鍒剁敤鎴峰CVS鐨勮闂紝渚嬪錛屼負浜嗕嬌鐢ㄦ埛鑳藉鍚?/SPAN>CVS鎻愪氦鏇存柊鐨勬枃浠訛紝灝卞繀欏葷粰璇ョ敤鎴峰彉鏇寸殑鏉冮檺
錛?錛?/FONT> ExpandableComposite
l Web欏甸潰涓竴涓氱敤鐨勪富棰樻槸鍏鋒湁鏀剁緝涓閮ㄥ垎欏甸潰鍐呭鐨勮兘鍔?
l Eclipse Form涔熸彁渚涗簡榪欐牱涓涓帶浠訛細ExpandableComposite
l 涓嬮潰鐨勪唬鐮佺墖鏂槸浣跨敤ExpandableComposite鐨勪竴涓緥瀛愶細
ExpandableComposite ec = toolkit.createExpandableComposite(body,
ExpandableComposite.TREE_NODE
| ExpandableComposite.CLIENT_INDENT);
ec.setText("Expandable Composite title");
String ctext = "We will now create a somewhat long text so that "
+ "we can use it as content for the expandable composite. "
+ "Expandable composite is used to hide or show the text using the "
+ "toggle control";
Label client = toolkit.createLabel(ec, ctext, SWT.WRAP);
ec.setClient(client);
td = new TableWrapData();
td.colspan = 2;
ec.setLayoutData(td);
ec.addExpansionListener(new ExpansionAdapter() {
public void expansionStateChanged(ExpansionEvent e) {
form.reflow(true);
}
});
l 榪欎釜鎺т歡鏈夊緢澶氶鏍鹼紝TREE_NODE浣垮緱璇ユ帶浠跺叿鏈夋爲鍨嬭妭鐐圭殑灞曞紑銆佹敹緙╁姛鑳斤紱鑰?/SPAN>TWISTIE浣垮緱鎺т歡鍏鋒湁涓夎綆ご椋庢牸
l EXPANDED浣垮緱鍒濆灞曞紑鏄劇ず
l CLIENT_INDENT浣垮緱Client鍐呭緙╄繘瀵歸綈
l ExpandableComposite鍛堢幇涓烘縺媧繪帶浠跺拰鏍囬錛岃屽彲浠ュ睍寮銆佹敹緙╃殑鍐呭縐頒負Client
l Client蹇呴』鏄彲灞曞紑鐨?/SPAN>composite錛堜笂渚嬫槸Label鎺т歡錛?/SPAN>
l 鏈鍚庨渶瑕佹坊鍔?SPAN lang=EN-US>Expansion鐩戝惉鍣ㄥ湪鐘舵佸彉鍖栨椂錛宺eflow Form錛堝嵆鏍規(guī)嵁鎺т歡鐨勬柊鐨勫ぇ灝忛噸鏂板畾浣嶅拰鏇存柊婊氬姩鏉★級
l 涓嬮潰鏄笂渚嬬殑榪愯緇撴灉錛?BR>
錛?SPAN lang=EN-US>2錛塖ection
l Eclipse Form涓渶甯哥敤鐨勫畾鍒舵帶浠跺氨鏄?/SPAN>Section錛堝湪PDE涓埌澶勫彲瑙侊級
l Section鎵╁睍ExpandableComposite錛屼絾鍏鋒湁涓嬮潰鐨勬柊鐗規(guī)э細
n 鍦ㄦ爣棰樹笅闈㈡湁涓涓垎闅旀帶浠?SPAN lang=EN-US>
n 鍦ㄥ垎闅旀帶浠朵笅闈㈠彲浠ユ湁涓涓弿榪版枃鏈?SPAN lang=EN-US>
l 涓嬮潰鐨勪唬鐮佺墖鏂槸浣跨敤Section鐨勪竴涓緥瀛愶紝浠g爜鍜?/SPAN>ExpandableComposite娌℃湁澶ぇ宸埆錛岃繖閲屾槸鐢ㄤ簡TWISTIE椋庢牸錛?/SPAN>
Section section = toolkit.createSection(body, Section.DESCRIPTION
| Section.TWISTIE | Section.EXPANDED);
td = new TableWrapData(TableWrapData.FILL);
td.colspan = 2;
section.setLayoutData(td);
section.addExpansionListener(new ExpansionAdapter() {
public void expansionStateChanged(ExpansionEvent e) {
form.reflow(true);
}
});
section.setText("Section title");
toolkit.createCompositeSeparator(section);
section
.setDescription("This is the description that goes below the title");
Composite sectionClient = toolkit.createComposite(section);
sectionClient.setLayout(new GridLayout());
button = toolkit.createButton(sectionClient, "Radio 1", SWT.RADIO);
button = toolkit.createButton(sectionClient, "Radio 2", SWT.RADIO);
section.setClient(sectionClient);
l 涓嬮潰鏄笂渚嬬殑榪愯緇撴灉錛?/FONT>
Eclipse Form鎻愪緵浜?/SPAN>2涓柊鐨勫竷灞
錛?/SPAN>1錛?/SPAN>TableWrapLayout
l 闂錛氬鏋滃皢涓婁緥涓秴閾炬帴鐨勬枃鏈緗殑瓚沖闀?/SPAN>
link.setText("This is an example of a form that is much longer and will need to wrap.");
鍗充嬌璁劇疆浜?/SPAN>SWT.WRAP錛屾枃鏈唴瀹逛笉浼氳嚜鍔?/SPAN>WRAP錛岃繖鏄洜涓轟綋鍐呭鐨勫竷灞鏄?/SPAN>GridLayout
l Eclipse Form鎻愪緵鏇夸唬鐨勫竷灞TableWrapLayout錛氱被浼間簬GridLayout錛屼絾鏄叿鏈夎薄HTML琛ㄦ牸涓鏍瘋嚜鍔?/SPAN>WRAP鍔熻兘
l 涓嬮潰鏄В鍐寵秴閾炬帴鏂囨湰鑷姩WRAP鐨勪緥瀛愶細
public void createPartControl(Composite parent) {
toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createScrolledForm(parent);
form.setText("Hello, Eclipse Forms");
Composite body = form.getBody();
TableWrapLayout layout = new TableWrapLayout();
body.setLayout(layout);
Hyperlink link = toolkit.createHyperlink(body, "Click here.", SWT.WRAP);
link.addHyperlinkListener(new HyperlinkAdapter() {
public void linkActivated(HyperlinkEvent e) {
System.out.println("Link activated!");
}
});
layout.numColumns = 2;
link.setText("This is an example of a form that is much longer and will need to wrap.");
TableWrapData td = new TableWrapData();
td.colspan = 2;
link.setLayoutData(td);
Label label = toolkit.createLabel(body, "Text field label:");
Text text = toolkit.createText(body, "");
td = new TableWrapData(TableWrapData.FILL_GRAB);
text.setLayoutData(td);
text.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
Button button = toolkit.createButton(body,
"An example of a checkbox in a form", SWT.CHECK);
td = new TableWrapData();
td.colspan = 2;
button.setLayoutData(td);
toolkit.paintBordersFor(body);
}
l 涓嬮潰鏄▼搴忓彉鍖栫殑鍦版柟錛?/SPAN>
n TableWrapLayout鏇夸唬GridLayout
n 浣跨敤TableWrapData鏉ユ彁渚涘竷灞鏁版嵁淇℃伅
n 璁劇疆鐨勫睘鎬т嬌鐢?/SPAN>colspan銆?/SPAN>rowspan絳夋潵婧愪簬HTML琛ㄦ牸鍗曞厓鐨勫睘鎬?/SPAN>
l 瑕佹敞鎰忕殑鏄細闇瑕佽嚜鍔?SPAN lang=EN-US style="COLOR: black">WRAP鐨勬帶浠訛紝闇瑕佽緗垚SWT.WRAP椋庢牸
錛?SPAN lang=EN-US>2錛?/SPAN>ColumnLayout
l ColumnLayout鏄?/SPAN>Eclipse Form鎻愪緵鐨勫彟涓涓畾鍒跺竷灞
l ColumnLayout鐨勫竷灞鏂瑰紡鏄粠涓婂埌涓嬶紝浠庡乏鍒板彸
l 鍦ㄥ彉鍖?/SPAN>Form鐨勫搴︽椂錛屼細鑷姩璋冩暣鎺т歡鍒楁暟浠ラ傚簲Form鐨勫搴?/SPAN>
l ColumnLayout鐨勮緗緢綆鍗曪紝閫氬父鍙璁劇疆鍒楁暟鐨勮寖鍥達紙緙虹渷鏄?/SPAN>1-3錛?/SPAN>
l 鍦ㄥ悗闈㈢殑鐩稿叧閮ㄥ垎浼氱粰鍑轟嬌鐢ㄧ殑渚嬪瓙