When they first start to write plug-ins that contribute visual components, people are
often confused about whether they should write a view or an editor. Superficially,
the two appear to be very similar: Both are parts that make up a workbench page,
both can contain arbitrary visual subcomponents, and both have various mechanisms
for plugging in actions and menus. Let’s start with some common misconceptions
about the differences between views and editors.
- Editors display the contents of a file, and views contain
groups of files or things other than files. Wrong. Both editors and
views can have arbitrary contents from a file or multiple files or be
from something that is not a file at all.
- Editors display text and views display tables or trees.
Wrong again. There are no constraints about what goes into an editor or
a view. For example, the plug-in Manifest Editor is form-based, whereas
the Console view shows plain text.
What are the real differences between views and editors? Here are the main ones.
- There is generally only one instance of a given view per
workbench page, but there can be several instances of the same type of
editor.
- Editors can appear in only one region of the page, whereas
views can be moved to any part of the page and minimized as fast views.
- Editors can be in a dirty state, meaning that their contents
are unsaved and will be lost if the editor is closed without saving.
- Views have a local toolbar, whereas editors contribute buttons to the global toolbar.
- Editors can be associated with a file name or an extension, and this association can be changed by users.
原文来自:
http://wiki.eclipse.org/FAQ_What_is_the_difference_between_a_view_and_an_editor%3F
分享到:
相关推荐
JSON视图工具 编辑器
Atom-structure-view.zip,与eclipse中的outline视图或idea/webtorm中的structure工具窗口一样,atom编辑器的structure视图提供了用树状视图快速导航源代码符号的功能。结构视图,atom是一个用web技术构建的开源文本...
可以实现单文档多视图操作,功能类似于简单的UltraEdit软件,采用vc开发
ExtJs3.0 中文破解视图编辑器.rar AIR安装程序 Ext 帮组文档 你的支持就是我上传的动力 资源共享
易语言图形文本编辑器源码,图形文本编辑器,填充字号组合框,字样集初始化,颜色集初始化,主视图新窗口过程,视图初始化,新建文档,水平滚动自身响应,垂直滚动自身响应,对象初始化,尺寸改变响应,垂直滚动引起响应,水平...
NET,MVC,CRUD com实体框架,异步等待,扩展,视图模型,编辑器视图模型,Tratando错误,Valida es,Padronizando.zip
纯css3制作Word文本编辑器效果 纯css3制作Word文本编辑器效果
十六进制编辑器,用来以16进制视图进行文本编辑的编辑工具软件。十六进制编辑器可以用来检查和修复各种文件、恢复删除文件、硬盘损坏造成的数据丢失等。它一直是计算机专业人员非常喜欢的工具。 其实,如果将它用在...
该编辑器对中文的支持良好,可以高速加载XML文档,并生成可自定义的树视图以显示 XML 文档的数据结构(非常有特色,为其他 XML 编辑器所无),可以调用 MSXML 分析引擎验证 XML 文档的正确性和有效性。其独特的 FOAL...
每个编辑器窗口可以分成两个区域和多个视图相同的文件可以同时打开。 轻松切换文本和十六进制编辑使用Ctrl + H在Windows上,或命令+ Shift + X在Mac上。 软件特色 强大的工作区包括文件资源管理器视图。 之间转换...
在 vsc 编辑器和 Web 视图之间自动同步更改。复制降价/html。上传/粘贴/拖放图像将自动保存到文件夹assets。多主题支持。快捷键。即时渲染模式(Recommand!) & Wysiwyg 模式 & 分屏模式。降价扩展。多图形支持,...
我们知道,在编辑SQL语句的时候,可以通过各种客户端软件对SQL语句进行格式化,但是我们如果想通过...这时我们可以借助sql-formatter.js插件来实现,具体参考Demo附件(可直接运行,内附ACE编辑器使用示例及效果)。
简单的文本编辑器,基于文档视图的结构,在该文本编辑器中,用户可以选择字体的颜色和大小。
EditPlus是一款由韩国 Sangil Kim (ES-Computing)出品的小巧但是功能强大的可处理文本、HTML和程序语言的32位编辑器,你甚至可以通过设置用户工具将其作为C,Java,Php等等语言的一个简单的IDE。 可取代记事本的...
它是一个用JavaScript实现的多功能文本编辑器。它专门用于编辑代码,并带有许多语言模式和插件 ,可实现更高级的编辑功能。 丰富的编程API和CSS 主题系统可用于自定义以适合您的应用程序,并使用新功能扩展它。 ...
软件介绍: Access2003是微软的数据库编辑和查看工具,它可以打开mdb格式的数据库文件,即可以...支持宏,内置visual basic编辑器及脚本编辑器,可使用将宏转换为vb代码,支持宏创建菜单及工具栏、创建快捷菜单。
使用IB(Storyboard或者Xib)编辑视图的时候,遇到 圆角、边框、边框颜色问题通过IB直接设置的属性。
RCP中使用adapter扩展模型为IPropertySource,达到显示属性视图的目的;详细介绍了各种适配器方式。
为了实现用户界面和核心功能,运行时编辑器使用了变换句柄、小工具、存档加载子系统和三个控件:菜单、虚拟化树状视图,以及程序坞面板。支持标准管线、HDRP、URP,Unity 2019.4.38或以上版本。
在编辑器的样式上进行了整体的修改 5.增加了编辑器的缩放功能,仅适用于IE v5.5以上版本 6.增加了"搜索替换"功能(快捷键CTRL+R),仅适用于IE5.5以上版本 7.将部分功能移植到"代码模式"使用,如:"全选","删除","复制...