一開始,選擇File > New > PRoject,并從New Project wizard展開Plug-In Development,然后選擇Plug-in Project,如圖2所示。使用BEA Workshop for WebLogic 9.2時,必須單擊Show All Wizards選項(xiàng)來查看這些項(xiàng)目類型。
圖 2. 創(chuàng)建一個插件項(xiàng)目
在下一個對話框上,指定項(xiàng)目名稱。確保沒有選中Create a java project選項(xiàng),如圖3所示。在創(chuàng)建涉及Java動作的更加復(fù)雜的備忘單時,必須選中這個選項(xiàng)。而對于只做啟動向?qū)н@類簡單工作的備忘單,則不需要創(chuàng)建Java項(xiàng)目。
?。?xml version="1.0" encoding="UTF-8"?> ?。糃HEATSHEET title="Demo Cheat Sheet"> ?。糏NTRO> <DESCRIPTION> This cheat sheet is a demo. ?。?DESCRIPTION> ?。?INTRO> ?。糏TEM title="Hello, world!"> ?。糄ESCRIPTION> This is the <B>first</B> step in this cheat sheet.
?。?DESCRIPTION> </ITEM> ?。糏TEM title="Hello, world again!"> <DESCRIPTION> This is the <B>second</B> step in this cheat sheet.
接著,在New Extension對話框中,確保Show only extension points from the required plug-ins選項(xiàng)是禁用的。單擊org.eclipse.ui.cheatsheets.cheatSheetContent,然后單擊Finish(參見圖5)。