Google浜嗕竴涓嬶紝鏌ュ埌浜嗚В錛岃В娉曞涓嬨?/p>
鍦‥clipse涓殑 Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced
瑁$殑銆孲elect the proposal kinds contained in the 'default' content assist list銆嶆妸銆孫ther Java Proposals銆嶉伕闋呮墦鍕懼緦鍎插瓨錛屽氨鍙互瑙f帀閫欐晱欏屼簡銆?/p>
“Applications which are built with SWT will almost always require only a single display. In particular, some platforms which SWT supports will not allow more than one active display. In other words, some platforms do not support creating a new display if one already exists that has not been sent the dispose() message.”
3銆?br />
SWT/JFace寮鍙戝叆闂ㄦ寚鍗楋紙涓夛級
http://www.tkk7.com/jayliu/archive/2005/05/19/4875.html
google浜嗕竴涓嬪彂鐜幫紝榪欎綅騫籊G涔熶粠csdn鎼埌blogjava鏉ヤ簡銆傜珶鐒惰繕鍜屾垜涓鏍風殑blog妯℃澘錛岃繖鏍峰ソ錛屾洿鍔犳柟渚垮ぇ瀹跺涔犱簡錛氾級
娉細
Label label1=new Label(shell,SWT.CENTER);
榪欓噷寮曞叆鍖呯殑鏃跺欓渶瑕佹敞鎰廼mport org.eclipse.swt.widgets.Label;
涓嶈欏烘墜寮曞叆awt鐨凩abel錛屼細鍑洪棶棰樼殑銆傚綋鐒訛紝濡傛灉鏄痠mport org.eclipse.swt.widgets.*閭h嚜鐒朵竾浜嬪ぇ鍚夈?/p>
shell.setText("Labels");//榪欎釜鍐欏湪Form涓婂柦
Label label1=new Label(shell,SWT.CENTER);
label1.setText("LabelDemo");//鏂囨湰鏄劇ず
Label label2=new Label(shell,SWT.SEPARATOR|SWT.HORIZONTAL);//榪欎釜灝辨樉紺烘垚涓涓垎闅旂嚎
4銆?br />
SWT/JFace寮鍙戝叆闂ㄦ寚鍗楋紙鍥涳級
http://blog.csdn.net/jayliu/archive/2005/05/12/374082.aspx
娉細
涓嶇煡涓轟粈涔堬紝絎竴涓唬鐮佺ず渚嬩腑閲囩敤SelectionListener鐨勬柟娉曟繪槸涓嶈兘鎴愬姛錛?/p>
榪樺ソ鏈夌浜屼釜鏇寸畝鍗曠殑浣跨敤adapter鏀硅壇鏂規硶錛屾墍浠ユ病鎴愬姛涔熷氨娌℃湁澶氬姞娉ㄦ剰銆?/p>
鏃墮棿涓嶇瓑浜恒傜爺絀跺伐浣滃皯鍋氫竴鐐癸紝絳夋繁鍏ヤ簡瑙e悗浼氭參鎱㈡槑鐧界殑銆?/p>
姝ゅ_shell鐨刧et銆乻et鏂規硶鍜屽彉閲忓悕涓嶅搴旓紝鎴戠殑涔犳儻鏄啓浜嗗彉閲忓氨鐩存帴Alt錛?/p>
sr錛屾墍浠ョ敓鎴愮殑鏂規硶鍚嶅拰鍙橀噺鍚嶉兘鏄搴旂殑銆備笉鐭ラ亾榪欎釜綆椾笉綆椾竴涓皬鎶宸э細
錛?/p>
瀹冧滑鐨勪笅杞藉湴鍧濡備笅錛?br />
Tool | Purpose | URL for Eclipse plugin |
---|---|---|
CheckStyle | Coding standard analysis | http://eclipse-cs.sourceforge.net/update/ |
Coverlipse | Test code coverage | http://coverlipse.sf.net/update |
CPD | Copy/Paste detection | http://pmd.sourceforge.net/eclipse/ |
JDepend | Package dependency analysis | http://andrei.gmxhome.de/eclipse/ |
Metrics | Complexity monitoring | http://metrics.sourceforge.net/update |
1 | #include <iostream> |
1 | C:\g++ main.cpp -O3 -o hello |
1 | Microsoft Windows XP [鐗堟湰 5.1.2600] |
1 | all: |
1 | make -k all |
1 | publicclass Test { |
1 | Microsoft Windows XP [鐗堟湰 5.1.2600] |