Next, you need to add a keyword to the class, because your extension will only work on classes that have a keyword defined.
接下来,您需要向类添加一个关键字,因为您的扩展,只会处理那些有一个已定义关键字的类。
During the process of class constructing, all the registration work is done, including extension and function registration.
在构造类的过程中,执行了所有注册工作,包括扩展注册和函数注册。
The extension after the dot names the class; the tag before the dot specifies which tag is associated with the class.
点号后面的扩展指定类名;点号前面的标记名指定与这个类相关联的标记。
Next, you need to add a keyword to the class, because your extension will work only on a class that has a keyword defined.
接下来,您需要向类中添加关键字,因为您的扩展只能处理定义了关键字的类。
Each transformation extension defines, as child elements. a rule definition that specifies a class that implements a rule interface.
每个转换扩展定义,就像子元素一样,指定实现规则接口的类的规则定义。
Figure 6 shows this extension and implementation class.
图6展示了该扩展及实现类。
As you might expect, adding a new rule is a simple matter of creating a rule class and adding an extension to the plug-in.
您可能会想,添加一条新规则,要比创建规则类和向插件添加一个扩展容易。
If you think of an extension point as an interface, you can think of an extension as a class that implements that interface.
如果将扩展点看作接口,那么扩展就是实现该接口的类。
The first thing this page does is include jQuery, the Class extension, and your new DbWrapper.js file.
这个页面所做的第一件事就是包含jQuery、Class扩展以及您的新DbWrapper.js文件。
Class management: Prototype includes easier creation and extension of classes and objects.
类管理:Prototype支持更轻松地创建和扩展类和对象。
Next, you need to create your Extension class, as shown in listing 5, which includes.
接下来,需要创建extension类,如清单5所示,包括以下内容。
To simplify the creation of the Extension class, you can extend the pre-defined superclass ExtensionImplBase, which implements some methods for you.
若要简化extension类的创建,可以扩展预定义的超类ExtensionImplBase,它已经为您实现了一些方法。
But others will be as simple as writing a custom algorithm or a simple extension to an existing Collection class.
但是另一些则非常简单,只需编写一个定制算法,或者已有collection类的简单的扩展。
To enable this viewer class, you need to add another extension to the plug-in file.
为了让该检查器类具有功能,您需要向插件文件添加另外一个扩展。
Similar built-in class extension facilities do not exist in Rational performance Tester due to the difference in performance test, as opposed to functional test, execution.
由于性能测试方面存在的差异,相似的内构类扩展功能并不存在于rational Performance Tester中,与功能性测试和执行相反。
The process to do this is almost trivial, because you need to create only a provider class, a result class, and an extension.
完成该项的过程几乎是琐碎的,因为您只需要创建一个provider类,一个结果类,以及一个扩展。
My second extension adds a simple naming convention to the ModelMBean class to transparently configure customized notification messages.
我的第二个扩展为modelmbean类增加一个简单的命名规范,以透明地配置定制的通知消息。
The getSource() method on the context should return a reference to a UML class, since we specified in the extension point that we were interested only in Class transforms.
环境中的getSource()方法应该返回对UML类的引用,因为我们在扩展点中指定我们只对Classtransforms感兴趣。
In the Extension Element Details, browse to the perspective class as shown in Figure 56.
在ExtensionElementDetails中,如图56所示浏览perspective类。
In Figures 8 and 9, the MyObservable class represents such an extension.
在图8和9中,myobservable类代表了这样的一个扩展。
As in earlier installments, BarApp is an extension of the BasicApplication class where the control creation methods exist.
正如前几部分所述,BarApp是basicapplication类(内含控件生成方法)的扩展。
Cglib 2.1: an open source byte code manipulation library you'll need to install to use the EasyMock class extension.
cglib 2.1:一个开放源码的字节码操作库,需要安装它才能使用easymock类扩展。
Class — specifies the class name of the extension generator or extension handler.
class——指定扩展生成器或扩展处理程序的类名。
The base class is called viewer, which is an extension of a structured viewer.
基类叫做Viewer,它是结构化查看器的一个扩展。
The original JSR 292 language includes not only invokedynamic but also some sort of class modification or extension.
最初的JSR 292不仅包括invokedynamic,还包括对类的一些修改或扩展。
By adding the EasyMock class extension, you can create mocks for classes too.
通过添加easymock类扩展,还可以为类创建mock。
What differentiates the Eclipse extension and this particular implementation is that Eclipse's extension creates a delegate class to act as a proxy for the menu choice.
Eclipse扩展与这个特殊实现的区别是,Eclipse的扩展创建一个委派类作为菜单选项的代理。
Notice how the extension point definition points to the AssociateMailDelegate class.
注意扩展点的定义是如何指向associatemaildelegate类的。
This article discusses two potential areas that can provide powerful extension points for Rational Performance Tester: object extension via a super class, and reusable utilities via static methods.
本文讨论了两个潜在的区域,该区域为RationalPerformance Tester提供了强大的扩展点:通过一个超类来进行对象扩展,以及通过静态的方法来使用可再用设施。
The extension point is in the XMProjectNature class, shown in Listing 4.
这个扩展点在XMProjectNature类中,如 清单4 所示。
应用推荐