Eclipse的Ecore編輯工具里面Annotation完全要手寫(xiě),比如寫(xiě)ExtendedMetaData就很費(fèi)勁。
手寫(xiě)指定Source,指定每個(gè)Key/Value很容易出錯(cuò)。
這個(gè)插件通過(guò)向?qū)нx擇source, 通過(guò)PropertySheet編寫(xiě)Key/Value。并且根據(jù)Ecore的定義實(shí)現(xiàn)校驗(yàn)。
Step1:

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

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

Step4: 如果選擇AllDataTypes,自動(dòng)選擇所有EdataTypes。

Step5: 工作結(jié)果

請(qǐng)注意Source的生成規(guī)則!
適用版本:eclipse3.2rc3
下載地址: http://www.aygfsteel.com/Files/steeven/org.steeven.eclipse.emf.annotation.wizard.zip (含源碼)
手寫(xiě)指定Source,指定每個(gè)Key/Value很容易出錯(cuò)。
這個(gè)插件通過(guò)向?qū)нx擇source, 通過(guò)PropertySheet編寫(xiě)Key/Value。并且根據(jù)Ecore的定義實(shí)現(xiàn)校驗(yàn)。
Step1:
Step 2:
AllDataTypes組合了該URL下面所有的EDataType
Step3: 編輯屬性。注意source的變化:
如果選擇的AllDataTypes,就是Ecore的URI
如果選擇某個(gè)EClass, 后面會(huì)加上#EClassName
Step4: 如果選擇AllDataTypes,自動(dòng)選擇所有EdataTypes。
Step5: 工作結(jié)果
請(qǐng)注意Source的生成規(guī)則!
適用版本: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
剛剛學(xué)習(xí)emf..
5. 支持GenModel里面的annotation, and others
6. 提供WizardAnnotation, 用于指定類型需要定義的Annotation Sources
7. 根據(jù)WizardAnnotation驗(yàn)證整個(gè)文檔的Annotation.
8. 直接在Ecore中定義需要的AnnotationEclass,Ecore的自驗(yàn)證。