扩展点配置如下:
<extension
id="my.marker.id"
name="my.marker.name"
point="org.eclipse.core.resources.markers">
<persistent
value="true">
</persistent>
<super
type="org.eclipse.core.resources.problemmarker">
</super>
</extension>
persistent代表是否将错误保存,如果false,重启就会消失
super 是父亲类型,有四种类型
org.eclipse.core.resources.marker —— 记号层次结构的根。
org.eclipse.core.resources.problemmarker —— 表示问题或错误消息,出现在问题列表中。
org.eclipse.core.resources.taskmarker —— 表示待办事项,出现在任务列表中。
org.eclipse.core.resources.bookmark —— 表示文件,比如搜索结果。
org.eclipse.core.resources.textmarker —— 表示文件的位置,比如出现错误的位置。
定义插件专用的记号是一种不错的选择。新记号的 ID 在 plugin.xml 文件(与 Eclipse 中的其他声明一样)重定义。清
单 1 显示了一个记号声明,定义了记号 ID( org.eclipse.core.resources.markers)的一个扩展。它还声明了新的记号,这
些记号分别从 problemmarker(显示在问题列表中)和 textmarker(为了记录行号)中继承而来。将记号声明为持久的是为了
在会话之间保存这些记号。
那么如何创建Marker?
IMarker myMarker = container.createMarker("org.eclipse.gef.examples.ediagram.my.marker.id");
myMarker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_HIGH);
myMarker.setAttribute(IMarker.MESSAGE, "my marker test");
myMarker.setAttribute(IMarker.SEVERITY , IMarker.SEVERITY_ERROR);
org.eclipse.gef.examples.ediagram 是插件ID,my.marker.id是marker ID,中间.号割开
container 是IResource类型.
分享到:
相关推荐
│ │ ├─org.eclipse.core.resources │ │ │ ├─.history │ │ │ │ ├─0 │ │ │ │ ├─1 │ │ │ │ ├─10 │ │ │ │ ├─11 │ │ │ │ ├─12 │ │ │ │ ├─13 │ │ │ │ ├─14 │ │ │ ...
Leaflet.Canvas-Markers-0.2.0 https://github.com/corg/Leaflet.Canvas-Markers
环保设施面向公众开放信息,含设施分类、设施地址、经纬度坐标、联系电话、接待能力、地图缩放级别等,后期将继续完善更多信息。
前端项目-videojs-markers,video.js的video marker breaks插件
前端项目-Leaflet.awesome-markers,传单的彩色标志和防视网膜标记,基于字形图标/字体-棒极了的图标
video.js 进度条指定时间预览图
OpenLayers3.x使用features集群实现同一markers层添加多marker标记,效果演示以及源代码,文章链接https://blog.csdn.net/YZero_cn/article/details/120385516
特征集群在扩展和折叠时有动画效果多地图提供商支持(Google、Bing、Mapbox 和 simlple 添加更多) 快速,处理 100,000 个标记,只绘制可见的内容将标记与同样具有动画效果的线条连接起来没有库依赖小,压缩后小于 5...
NULL 博文链接:https://jjxliu306.iteye.com/blog/2368918
okhttp3.2与okip1.6,使用okhttp3.2请求必须要okio一起使用。出现 Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics at okio.Okio.source(Okio.kt) ...
python库。 资源全名:dephell_markers-1.0.1.tar.gz
.......\Module.markers .......\Module.symvers .......\modules.order .......\qf9700_android.c .......\qf9700_android.h .......\qf9700_android.ko .......\qf9700_android.mod.c .......\qf9700_...
uni-app中markers中iconPath如何使用网络地址
Leaflet的彩色标志性和...Leaflet.awesome-markers的2.0版测试用: Bootstrap 3 Font Awesome 4.0 Ionicons 1.5.2 Leaflet 0.5-Lastest 对于bootstrap 2.x和Fontawesome 3.x使用Leaflet.awesome-markers v1.0
JavaScript使用Marker方式展现出来,最终加到Markers图层上(非vector)
URP(LWRP)和HDRP支持PC/控制台/手机/WebGL/VR支持。 您可以使用标准大小值轻松地调整效果的大小。效果是非常简单的使用,只需采取和下降预制到您的游戏!
react使用高德地图react-amap:Map、Markers、Circle、ContextMenu、自定义ContextMenu
In the context menu displayed by right-clicking, selecting Add to Markers allows you to add the selected text or the word at the cursor position to the list of markers. The list of markers is ...
Diagnosing CAD: additional markers from myocardial perfusion SPECT.pdf
当前大多数搞机器人开发的用户所装的ROS是indigo版本,而且是基于Ubuntu14.04的。如果你跑别的版本的rbx代码老出错,不用怀疑,就是代码版本问题!ros by example for indigo volume 1很多地方(包括CSDN)都可以...