然后,将图模型对象传递给查看器。
在本文的例子中,当查看器包含有作为emf模型的实例的对象时,将调用导航器内容。
In our case, our navigator content will be invoked when the viewer contains an object that is an instance of an EMF model.
操作对象需要知道表查看器中当前选中的项。
The action objects need to know about the currently selected item in the table viewer.
与内容提供程序相同,标签提供程序接受域对象作为它的参数,但是后者所返回的Image或String应与查看器中的这个对象相关联。
As with the content provider, the label provider accepts domain objects as its arguments, but it returns the Image or String that should be associated with this object in the viewer.
CSourceViewerConfiguration提供了许多为查看器执行功能的对象。
The CSourceViewerConfiguration provides a number of objects that perform functions for the viewer.
然而,JFace会给予您一些帮助,它告诉您大型UI对象(如窗口和查看器)何时可以清除它们的图像,然后由您负责清除已创建的任何图像。
However, JFace gives you some help by telling you when large UI objects like Windows and viewers can have their images disposed of, and it is then up to you to dispose of any images you have created.
然后查看器可以使用自己的工厂来构造用于该输入对象的内容EditPart。
The viewer then USES its factory to construct the contents EditPart for that input object.
通常,EMF项目资源 — 如 EMFEcore模型 —作为查看器中的单个对象进行显示(见图1的左侧)。
Typically, EMF project resources — EMF Ecore models, for example — are displayed as single objects in a viewer (see left side of Figure 1).
持有对这些域对象的引用的是树查看器本身,它把这些域对象作为参数传递给内容提供程序中的各个方法。
It is the tree viewer that holds on to them itself and passes them as arguments to each method in the content provider.
这就使查看器能够控制域对象的状态,而不用考虑域对象是否展开或是被破坏。
This is what allows the viewer to control the state of the domain objects, whether they are expanded or collapsed.
可能得到的子元素规定了扩展何时为查看器中的对象提供父对象,在本文的例子中,这些对象指的是EMF模型对象或资源的实例。
The possible children element dictates when our extension can provide parents for objects in the viewer, in our case these are objects that are instances of EMF model objects or resources.
一个需要注意的重要方面是,树形查看器通过称为内容提供程序的适配器访问模型对象,并使用标签提供程序确定显示对象的方式。
One important aspect to note is that tree viewers access model objects through an adapter called a content provider and determine how the object should be visualized through a label provider.
清单1实例化一个默认的树查看器;您也可以定制树,并用树对象作为参数,用构造函数实例化树查看器。
Listing 1 instantiates a default tree viewer; you can also customize the tree and instantiate the tree viewer by using a constructor with a tree object as the parameter.
在设定查看器的内容时,您可以通过为该查看器提供表示输入的模型对象来完成。
When you set the viewer's contents, you do so by providing the model object that represents the input for that viewer.
查看器查看器小部件显示存储在P8对象库中的文档。
Viewer Viewer widgets display documents stored in P8 object stores.
新:可供下载的部署目标在一个组策略对象的计算机单独的MSI安装程序的VNC服务器和VNC查看器。
NEW: Separate MSI installers for VNC Server and VNC Viewer are available for download for deployment to target computers in a Group Policy Object.
这是一个VB版的网页对象源码查看器,简单实用,对编写操作网页的程序有帮助,可以作为一种工具,也可以是这类型编程的DEMO。
This is a VB version of the Web object source code viewer, simple and practical procedure for the preparation of operational help page can be used as a tool, it can be this type of programming DEMO.
这是一个VB版的网页对象源码查看器,简单实用,对编写操作网页的程序有帮助,可以作为一种工具,也可以是这类型编程的DEMO。
This is a VB version of the Web object source code viewer, simple and practical procedure for the preparation of operational help page can be used as a tool, it can be this type of programming DEMO.
应用推荐