zoukankan
html css js c++ java
自己订制gmf中属性编辑器
在gmf中属性页的支持是由PropertyProvider完成的。自动生成的PropertyProvider只有三个方法:
public
boolean
provides(IOperation operation)
{
……
}
public
ICompositePropertySource
……
}
protected
EObject getSemanticElement(Object object)
{
……
}
第一个方法主要是判断这个provider是否可以处理某个operation.
第二个方法返回一个PropertySource,和传统的eclipse PropertySource相似
第三个方法返回View对应的semantic model
要想定置自己的属性编辑器可以重载GenericEMFPropertiesProvider里面的
protected
ICompositePropertySource createPropertySource(Object object,
IItemPropertySource itemPropertySource)
{
……
}
方法,这个方法返回一个你自己重载的EMFCompositePropertySource对象,在你的EMFCompositePropertySource对象中你需要重载方法:
protected
IPropertyDescriptor newPropertyDescriptor(
IItemPropertyDescriptor itemPropertyDescriptor)
{
……
}
这个方法中返回一个自己订制的EMFCompositeSourcePropertyDescriptor对象,在你的对象中,你需要重载其中的:
protected
CellEditor doCreateEditor(Composite composite)
{
……
}
方法。在EMFCompositeSourcePropertyDescriptor类中有方法getFeature()可以获得这个PropertyDescriptor对应的属性值,可以通过判断这个属性值的类型来返回你自己的celleditor。
查看全文
相关阅读:
https://pingcap.com/blog-cn/flame-graph/
https://software.intel.com/sites/landingpage/pintool/docs/97998/Pin/html/
http://boostorg.github.io/stacktrace/stacktrace/getting_started.html#stacktrace.getting_started.how_to_print_current_call_stack
线程局部存储
slice 切片实现 Slice object interface
网络分裂 redis 集群
vscode-sftp
Sizes of integer types 整形字节长度 系统字节
学件中心
源码 版本
原文地址:https://www.cnblogs.com/youngerbaby/p/383465.html
最新文章
codeforces 443 B. Kolya and Tandem Repeat 解题报告
hdu 超级楼梯 解题报告
codeforces 441B. Valera and Fruits 解题报告
codeforces 436A. Feed with Candy 解题报告
codeforces 440B. Balancer 解题报告
Makefile 编译生成多个可执行文件
linux 安装 zsh
类调用类的protected或private的成员函数或成员变量
C 语言sscanf
C++ 错误总结
热门文章
ajax异步提交数据动态更改select选项
qstring与char*、基本数据类型的转换
C++之map、list操作
C++ 操作sqlite
qt 的简介与使用
tmp
gcov—a Test Coverage Program
https://www.frida.re/docs/home/
https://lug.ustc.edu.cn/wiki/user/boj/linkers-and-loaders
研发测试运维一体化
Copyright © 2011-2022 走看看