一、Gmfgraph文件的配置事项
# Diagram Label的Element Icon设为false,这样操作图形的时候不会出现label对应的小图标。
# Figure Descriptor下添加Custom Figure(自定义图形,可选择对应draw2d实现的java类),在Custom Figure下添加label,在Figure Descriptor下添加label的child access。
# Canvas(画布)下可添加Compartment图形容器,但要添加child reference(定义Compartment可以容纳的图形)必须去Gmfmapping中做对应设置。
二、Gmftool文件的配置事项
# Tool Group的Collapsible属性设为true,这样才能在Palette工具箱中进行折叠。
# 删除Creation Tool的第一个Default Image,增加Small Icon Bundle Image,图标路径放置在edit插件的icons下,定制Palette的图形元素。
三、Gmfmapping文件的配置事项
# Node Mapping和Link Mapping下的Tool经常与实际的Node不匹配,要手工校验。
# Feature Label Mapping,Features to display属性默认会显示ID,应修正为Name。
# Link Mapping,注意填写完整Source Feature、Target Feature,在其Feature Label Mapping下选择好Diagram Label。
四、Gmfgen文件的配置事项
# Gen Diagram,Validation Decoration属性设为true,Validation Enabled设为true,这样会为Diagram生成对应的Validate Action。
五、在完成Gmfgraph、Gmftool、Gmfmapping、Gmfgen这些GMF文件时,最好在编辑器内用Validate Action进行验证。
# Diagram Label的Element Icon设为false,这样操作图形的时候不会出现label对应的小图标。
# Figure Descriptor下添加Custom Figure(自定义图形,可选择对应draw2d实现的java类),在Custom Figure下添加label,在Figure Descriptor下添加label的child access。
# Canvas(画布)下可添加Compartment图形容器,但要添加child reference(定义Compartment可以容纳的图形)必须去Gmfmapping中做对应设置。
二、Gmftool文件的配置事项
# Tool Group的Collapsible属性设为true,这样才能在Palette工具箱中进行折叠。
# 删除Creation Tool的第一个Default Image,增加Small Icon Bundle Image,图标路径放置在edit插件的icons下,定制Palette的图形元素。
三、Gmfmapping文件的配置事项
# Node Mapping和Link Mapping下的Tool经常与实际的Node不匹配,要手工校验。
# Feature Label Mapping,Features to display属性默认会显示ID,应修正为Name。
# Link Mapping,注意填写完整Source Feature、Target Feature,在其Feature Label Mapping下选择好Diagram Label。
四、Gmfgen文件的配置事项
# Gen Diagram,Validation Decoration属性设为true,Validation Enabled设为true,这样会为Diagram生成对应的Validate Action。
五、在完成Gmfgraph、Gmftool、Gmfmapping、Gmfgen这些GMF文件时,最好在编辑器内用Validate Action进行验证。