Eclipse的Ecore編輯工具里面Annotation完全要手寫,比如寫ExtendedMetaData就很費勁。
手寫指定Source,指定每個Key/Value很容易出錯。
這個插件通過向導選擇source, 通過PropertySheet編寫Key/Value。并且根據Ecore的定義實現校驗。
Step1:

Step 2:
AllDataTypes組合了該URL下面所有的EDataType

Step3: 編輯屬性。注意source的變化:
如果選擇的AllDataTypes,就是Ecore的URI
如果選擇某個EClass, 后面會加上#EClassName

Step4: 如果選擇AllDataTypes,自動選擇所有EdataTypes。

Step5: 工作結果

請注意Source的生成規則!
適用版本:eclipse3.2rc3
下載地址: http://www.aygfsteel.com/Files/steeven/org.steeven.eclipse.emf.annotation.wizard.zip (含源碼)
手寫指定Source,指定每個Key/Value很容易出錯。
這個插件通過向導選擇source, 通過PropertySheet編寫Key/Value。并且根據Ecore的定義實現校驗。
Step1:
Step 2:
AllDataTypes組合了該URL下面所有的EDataType
Step3: 編輯屬性。注意source的變化:
如果選擇的AllDataTypes,就是Ecore的URI
如果選擇某個EClass, 后面會加上#EClassName
Step4: 如果選擇AllDataTypes,自動選擇所有EdataTypes。
Step5: 工作結果
請注意Source的生成規則!
適用版本:eclipse3.2rc3
下載地址: http://www.aygfsteel.com/Files/steeven/org.steeven.eclipse.emf.annotation.wizard.zip (含源碼)
1. UNDO command
2. provide EDataType choices
3. UI improvement.
4. add recent file list to URL Combobox
剛剛學習emf..
5. 支持GenModel里面的annotation, and others
6. 提供WizardAnnotation, 用于指定類型需要定義的Annotation Sources
7. 根據WizardAnnotation驗證整個文檔的Annotation.
8. 直接在Ecore中定義需要的AnnotationEclass,Ecore的自驗證。