当在后期应用资产1创建元素时,我们添加类型“类”的另一个模版参数,名为“marshaller ”(图15和16)。
As the element will be created at a later stage, when we apply Asset 1, we add another template parameter called "marshaller" of type "class" (Figures 15 and 16).
为了简化这个示例,我们添加了一个新类,它的方法返回一些简单数据。
To simplify this example, we'll just add a new class whose methods return some simple data.
我们需要向这个文件添加一个东西为类实例级授权扩展策略定义:一个与许可权语句相关的可选关系参数。
We need to add one thing to this file to extend the policy definition for class instance-level authorization: an optional relationship parameter associated with a permission statement.
在能够给我们的操作添加代码之前,我们需要将这种UI插件与相应的核心插件区别开来,否则它将不能访问HSQLD b类。
Before code can be added to our actions, we need to tell this UI plug-in about the corresponding core plug-in, otherwise it won't have access to HSQLDB classes.
我们或做出适用于所有情形的过滤器修改,或为特定包或类添加定制规则。
We either make a blanket filter change, or add in a custom rule for the specific package or class under investigation.
在本例中,我们创建了一个statistics类,用于向用户展示他或她多长时间添加、修改或删除一次书签。
In this example we created a Statistics class to show the user how often he or she added, modified, or deleted a bookmark.
我们通过实例化treecolumn类(第23和28行)来向树中添加列。
We add columns to the tree by instantiating the TreeColumn class (lines 23 and 28).
如果它是个新会话,我们就用GroupInfo实用程序类来获取这个登录的用户所属的ldap组的列表,然后将它们添加到向量中,最后把这个向量存储在会话对象中。
If it is a new session, we use the GroupInfo utility class to get the list of LDAP groups the logged-in user belongs to, add them to a vector, and finally store the vector in the session object.
完成了ProductsBLL类之后,我们还要添加一些为categories、suppliers和employees服务的类。
With the ProductsBLL class complete, we still need to add the classes for working with categories, suppliers, and employees.
的URL应该转换为ProductsController类(注意,我们为类名添加了“Controller”后缀,使得这些类能够区别于设计中的模型对象)。
would translate to the ProductsController class (notice we add the "Controller" suffix to the class name to make these classes stand out in the object model at design time).
如果是,我们就要实现父类转换配置的另一个事例,并将新事例作为第一个子类的父类添加。
If so, we make another instance of the parent transformation configuration and add the new instance as the parent of the first child.
在这个例子中我们重命名框架包,并且添加一系列的类,以及协议和类别的原型。
This example renames the framework package and adds a bunch of classes, some stereotyped with protocol and category.
例如,我们可能会添加想与模型分离开来的用户接口逻辑,或者我们可能会出于性能方面的原因而添加某些类。
For example, we might add user interface logic that we want to keep separate from our model, or we might add some classes for performance reasons.
现在让我们实现更复杂的目标并添加一些有条件的文本呈现—例如,命名偶数和奇数表行的css类。
Let's make the goal more complex and add some conditional text rendering - for example, CSS class names for even and odd table rows.
让我们以一个简单X ML文档(包含一个组织的员工列表)为例,将它添加到一个GAE项目,为其中的每个元素创建一个类,然后将它们存储为实体。
Let's take a simple XML document containing the list of employees at an organisation, add it to a GAE project, create a class for the elements, and store them as entities.
通过将和元素添加到导航器内容扩展中,当能够显示类中所描述的域模型时,我们可以向CNF发出通知。
We signal the CNF when we will be able to display the domain model we described in our classes by adding and elements to the navigator content extension.
于是就有了这样可笑的事:在我们能够添加方法到类中的时候,这种“简单的检查”是不够的。
Here's the punchline: the moment we can add methods to classes this "simple check" is not enough.
从场景直接更新类的签名(方法和属性),以使我们不必回到类的说明中添加缺少的方法。
Update class signatures (methods and attributes) directly from scenarios, so that we could add missing methods on the fly without having to revert to the class specification.
在该文中,我们只是将类和方法名称作为参数传递给程序,程序加载二进制类文件,添加定时代码,然后写回该类。
In that article, we just passed the class and method name as command-line parameters to my program, which loaded the binary class file, added the timing code, then wrote the class back out.
我们不想添加纯只读接口的原因是,我们觉得它会给基类库添加太多不必要的复杂性。
The reason we don't want to add a purely read-only interface is that we feel it would add too much unnecessary complexity to the library.
这也意味着我们在类字段中指向的通用导航器类需要被添加到插件的类路径中。
This also means that the common navigator class we point to in the class field needs to be added to the class path of our plug-in.
我们在createchildren函数中将表和两个菜单按钮添加到画布容器中(清单11),该函数将覆盖基类中的相同函数。
We add the table and two menu buttons to the canvas container in the createChildren function (Listing 11), which overrides the same function in the base class.
我们希望在这段代码中添加对第四类登录数据(可信的环境变量,在此示例中是REMOTE_USER)的支持。
To this snippet we want to add support for the 4th type of logon data, the trusted environment variable, in this example REMOTE_USER.
我们将会导入类,下载文件提供了这些类,导入到我们的插件中,接下来向工作台以及透视图的plug-in.xml 中添加条目。
We will import the classes, which are provided in the download file, into our plug-in, then add entries into the plug-in.xml for the default workbench and perspective.
按Next允许您为该项目所依赖的类路径配置库和添加其他项目,但我们不需要这样做,按Finish就可以了。
Clicking Next allows you to configure libraries and add other projects to the classpath this project depends on, but we don't need to do that. Instead, click Finish.
继续下一步之前,我们来探讨一下,如果想添加Ext .Direct可以有效使用的新类和新方法时,还需要什么。
Before you move on, let's investigate what would be required if one wanted to add a new class and a new method to be made available to Ext.Direct.
现在我们需要将库显式添加到Web项目构建和运行时类路径中。
We now need to explicitly add the libraries to the Web project build and runtime classpaths.
在基类库团队中,我们认为,如果某个API是从负1000点开始的,那么即使能提供一些价值也不足以证明可被添加。
In the BCL team we believe that an API start at minus a thousand points and thus providing some value is not good enough to justify being added.
因为我们已经将类添加到了Web应用程序,所以在将模块添加到服务器时,我们的测试类可以在服务器环境中执行。
Because we have added the class to the Web application, when we add our module to the server our test class will be available for execution in the server environment.
首先,在Web应用的类里,我们必须添加负责将依赖注入Wicket组件的组件实例化监听器。
First of all, in web application class we have to add a component instantiation listener that is responsible for injecting dependencies into Wicket components.
应用推荐