Simplifying the content provider (Model).
简化内容提供者(模型)。
Implementing the file table viewer content provider.
实现文件表查看器内容提供程序。
Figure 11 shows the content provider and label provider.
图11演示了内容提供程序和标签提供程序。
So our file table content provider class looks like Listing 8.
因此我们的文件表内容提供程序类与清单8 类似。
The tree content provider must implement ITreeContentProvider.
树内容提供程序必须实现ITreeContentProvider。
So we cannot use the implicit constructor for our content provider.
因此我们不能对内容提供程序使用隐式的构造函数。
The other component type, content provider, is not activated by intents.
剩下一种组件类型,content provider,不被intent所激活。
As you can see, the content provider doesn't hold a reference to any domain objects.
正如您所见,内容提供程序不持有对任何域对象的引用。
If your application is very simple, you might not necessarily create a content provider.
如果应用程序非常简单,那么可能不需要创建内容提供程序。
Each UI control will subclass Field and give the content provider read and write ability.
每个用户界面控件都是Field的子类,并向内容提供者提供了读写能力。
Similarly, a content provider can receive data requests that originate in other processes.
类似地,内容提供者(content provider)也能接收来自其它进程的数据请求。
Transformed the company from a content provider to a large-scale web application developer.
将公司从内容供应商转型为大规模的网络应用开发商。
Eclipse JFace implements the MVC architecture using the content provider and label provider.
EclipseJFace用内容提供者和标签提供者实现MVC架构。
One way to create this synchronization is to add a resource change listener to our content provider.
实现这种同步的一种方法是将资源更改侦听程序添加到内容提供程序中。
Just like the TreeViewer, it has an input (a root object), a content provider, and a label provider.
和TreeViewer一样,它有输入(根对象)、内容提供程序和标签提供程序。
For example, the Android system provides a content provider that manages the user's contact information.
比如,Android系统提供了管理用户联系人信息的content provider。
The value of the fields in the table will be set according to your content provider and label provider classes.
将根据内容提供程序类和标签提供程序类设定表中字段的值。
When it detects an update in the content, the feed reader requests the updated content from the content provider.
当它检测到内容中有更新时,feed阅读器向内容提供者请求更新的内容。
It is the tree viewer that holds on to them itself and passes them as arguments to each method in the content provider.
持有对这些域对象的引用的是树查看器本身,它把这些域对象作为参数传递给内容提供程序中的各个方法。
In the content provider shown in Listing 7, you can retrieve data from an XML file or from a database using an adapter.
在清单7所示的内容提供者中,可以使用适配器从XML文件或数据库检索数据。
To make use of this resource-change listener, we need to add it to the content provider and remove it when appropriate.
要使用此资源更改侦听程序,我们需要将其添加到内容提供程序中,在适当的时候删除。
But before adding a content provider and label provider instance to this table viewer, we must first create our table.
但是在向此表查看器中添加内容提供程序和标签提供程序实例之前,我们必须先创建表。
The content provider fetches the data in a structured manner; similarly, the label provider obtains corresponding labels.
内容提供者以结构化的方式得到数据;类似地,标签提供者获得对应的标签。
Through the content provider, other applications can query or even modify the data (if the content provider allows it).
通过content provider,其他应用能查询或修改这些数据(如果content provider允许)。
"When you got a content provider like a major label, they put pressure on Apple to keep their content protected," he said.
他说,“当你获得一家像主流唱片公司那样的内容提供商,他们会对苹果公司施加压力,以保护他们提供的内容。”
We must explicitly declare our content provider constructor and call the super-class constructor with the expected parameters.
我们必须显式地声明内容提供程序构造函数并使用所需的参数调用超类构造函数。
Then we set the desired layout of this tree and add the tree content provider and tree label provider instance to this TreeViewer.
然后设定此树的期望布局并向此TreeViewer中添加树内容提供程序和树标签提供程序实例。
Also, to allow the content provider to get the URI of the file resources in the view, we need to use the resource set from the platform.
另外,为了使内容提供程序获取视图中文件资源的URI,我们需要使用平台中的资源集。
We make our content provider react to changes in the model by allowing it to listen for changes in the model file resource (the Ecore file in our case).
我们让内容提供程序响应模型中的更改的方法是,允许其侦听模型文件资源中的更改(本例中指的是Ecore 文件)。
We make our content provider react to changes in the model by allowing it to listen for changes in the model file resource (the Ecore file in our case).
我们让内容提供程序响应模型中的更改的方法是,允许其侦听模型文件资源中的更改(本例中指的是Ecore 文件)。
应用推荐