這個範例的程式碼位於 org.eclipse.ui.examples.javaeditor
外掛程式中。
如果要探索程式碼,建議您將該外掛程式匯入至您的工作區中。
org.eclipse.ui.examples.templateeditor.editors
包含所有編輯器特定的類別。請參閱 XMLConfiguration
來查看如何將 TemplateCompletionProcessor
新增至 getContentAssistant
方法中。org.eclipse.ui.examples.templateeditor.preferences
包含提供的範本喜好設定頁面。org.eclipse.ui.examples.templateeditor.template
包含範例環境定義類型、完成處理器以及 plugin.xml 提供的變數解析器。