Do the same for the label provider?
用同样的方法来处理标签提供者。
Implementing a file table label provider.
实现文件表标签提供程序。
Let's implement our own table label provider.
让我们实现自己的表标签提供程序。
To change this, we need to provide a label provider.
要改变这一点,我们需要提供一个标签提供程序。
The tree label provider must implement ILabelProvider.
树标签提供程序必须实现ILabelProvider。
Figure 11 shows the content provider and label provider.
图11演示了内容提供程序和标签提供程序。
If we add the label provider to the diagram for the tree viewer, we get Figure 9.
如果我们将标签提供程序添加到树查看器图中,就会得到图9。
Next, use the code in Listing 23 to implement the Label Provider for supplying images.
接下来,使用列表23中的代码执行Label Provider来提供图片。
Eclipse JFace implements the MVC architecture using the content provider and label provider.
EclipseJFace用内容提供者和标签提供者实现MVC架构。
And we have to remember to make the tree viewer use this label provider, as shown in Listing 7.
而且我们必须记得使树查看器使用这个标签提供程序,如清单7所示。
Also defined with this extension point are a type mapper, a label provider, and property categories.
这个扩展点还用于定义类型映射器、标签提供程序和属性类别。
Just like the TreeViewer, it has an input (a root object), a content provider, and a label provider.
和TreeViewer一样,它有输入(根对象)、内容提供程序和标签提供程序。
The value of the fields in the table will be set according to your content provider and label provider classes.
将根据内容提供程序类和标签提供程序类设定表中字段的值。
Create a new class that extends the Label Provider and implements ITableLabelProvider in com.ibm.field.traceview.
创建一个可以扩展Label Provider和执行com . ibm . field . traceview中itablelabelprovider的新类。
The content provider fetches the data in a structured manner; similarly, the label provider obtains corresponding labels.
内容提供者以结构化的方式得到数据;类似地,标签提供者获得对应的标签。
But before adding a content provider and label provider instance to this table viewer, we must first create our table.
但是在向此表查看器中添加内容提供程序和标签提供程序实例之前,我们必须先创建表。
Finally, set table content provider and table label provider and give this TableViewer input. (in other words, feed it data.)
最后,设定tablecontentprovider和tablelabel provider并提供此TableViewer输入(换言之,为它提供数据)。
Then we set the desired layout of this tree and add the tree content provider and tree label provider instance to this TreeViewer.
然后设定此树的期望布局并向此TreeViewer中添加树内容提供程序和树标签提供程序实例。
Just as with the tree viewer, if you don't explicitly set the label provider on the table viewer, it USES the default label provider.
和树查看器一样,如果不显式地给表查看器设置标签提供程序,它就会使用缺省的标签提供程序。
Many Eclipse samples show the content and label provider classes as subclasses in the dialogs class, but we prefer them to be extracted into their own files.
很多Eclipse示例将content和label provider类作为dialogs 类中的子类进行显示,但是我们希望将它们提取到各自的文件中。
The navigator content extension defines a content provider and label provider that can be used to provide children and parent objects for element of an EMF model.
导航器内容扩展定义了内容提供程序和标签提供程序,可以使用这些程序为emf模型的元素提供子对象和父对象。
For example, to add the genmodel objects to our navigator, we just add the generator model item provider to the adapter factory list our content and label providers use.
例如,要将genmodel对象添加到导航器中,我们只需将生成器模型项目提供程序添加到内容提供程序和标签提供程序所使用的适配器工厂列表中。
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.
与内容提供程序相同,标签提供程序接受域对象作为它的参数,但是后者所返回的Image或String应与查看器中的这个对象相关联。
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.
一个需要注意的重要方面是,树形查看器通过称为内容提供程序的适配器访问模型对象,并使用标签提供程序确定显示对象的方式。
"When you got a content provider like a major label, they put pressure on Apple to keep their content protected," he said.
他说,“当你获得一家像主流唱片公司那样的内容提供商,他们会对苹果公司施加压力,以保护他们提供的内容。”
Therefore, we need to create our content and label-provider classes as subclasses of the adapter factories from the EMF edit framework.
因此,需要创建的内容提供程序类和标签提供程序类应为emf编辑框架中适配器工厂的子类。
Packet Transport Network (PTN) technology includes the Transport Multi-Protocol Label Switching (T-MPLS) and Provider Backbone Transmission (PBT).
分组传送网(PTN)技术包括传送多协议标签交换(T - MPLS)和运营商骨干传送(PBT)。
Packet Transport Network (PTN) technology includes the Transport Multi-Protocol Label Switching (T-MPLS) and Provider Backbone Transmission (PBT).
分组传送网(PTN)技术包括传送多协议标签交换(T - MPLS)和运营商骨干传送(PBT)。
应用推荐