public boolean provides(IOperation operation) {
……
}
public ICompositePropertySource
……
}
protected EObject getSemanticElement(Object object) {
……
}
第二个方法返回一个PropertySource,和传统的eclipse PropertySource相似
第三个方法返回View对应的semantic model
要想定置自己的属性编辑器可以重载GenericEMFPropertiesProvider里面的
protected ICompositePropertySource createPropertySource(Object object,
IItemPropertySource itemPropertySource) {
……
}
protected IPropertyDescriptor newPropertyDescriptor(
IItemPropertyDescriptor itemPropertyDescriptor) {
……
}
protected CellEditor doCreateEditor(Composite composite) {
……
}
