How to test an Activity that USES a ContentProvider without affecting production database?
如何测试活动,使用一个内容提供者不影响生产数据库?
The inputChanged() method accepts a Viewer as an input argument, so multiple views can use a single ContentProvider.
inputChanged()方法接受 Viewer作为输入参数,所以多个视图可以使用一个 ContentProvider。
As you can see from this code, the ContentProvider class expects an array of org.eclipse.wst.server.core.IServer elements to be set as an input.
如您从此代码中看到的,contentprovider类期望将一列org . eclipse . wst . server . core . IServer要素设置为输入。
A content provider is implemented as a subclass of ContentProvider and must implement a standard set of APIs that enable other applications to perform transactions.
一个content provider通过继承ContentProvider抽象类并且实现允许其他应用执行事务的一组标准API来实现。
The TreeViewer doesn't talk to the domain objects directly. Instead, it uses another object called a ContentProvider, and this object uses your domain objects, as shown in Figure 7.
TreeViewer并不直接使用域对象 —而是使用另一个名为ContentProvider 的对象,这个对象才使用域对象,如图 7 所示。
The TreeViewer doesn't talk to the domain objects directly. Instead, it uses another object called a ContentProvider, and this object uses your domain objects, as shown in Figure 7.
TreeViewer并不直接使用域对象 —而是使用另一个名为ContentProvider 的对象,这个对象才使用域对象,如图 7 所示。
应用推荐