| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 4 | 0.956 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 126 | Closure/closure/goog/editor/plugin.js |
| 2 | 6 | 140 | Closure/closure/goog/editor/plugin.js |
| ||||
/**
* Enables this plugin for the specified, registered field object. A field
* object should only be enabled when it is loaded.
* @param {goog.editor.Field} fieldObject The field object.
*/
goog.editor.Plugin.prototype.enable= function (fieldObject){
if (this.fieldObject== fieldObject) {
this.enabled_= true;
}
else {
this.logger.severe('Trying to enable an unregistered field with '+
'this plugin.');
}
} ;
|
| ||||
/**
* Disables this plugin for the specified, registered field object.
* @param {goog.editor.Field} fieldObject The field object.
*/
goog.editor.Plugin.prototype.disable= function (fieldObject){
if (this.fieldObject== fieldObject) {
this.enabled_= false;
}
else {
this.logger.severe('Trying to disable an unregistered field '+
'with this plugin.');
}
} ;
|
| |||
/**
* Disables this plugin for the specified, registered field object.
* @param {goog.editor.Field} fieldObject The field object.
*/
/**
* Enables this plugin for the specified, registered field object. A field
* object should only be enabled when it is loaded.
* @param {goog.editor.Field} fieldObject The field object.
*/
goog.editor.Plugin.prototype. [[#variable1efe7e20]]= function (fieldObject)
{ if (this.fieldObject==fieldObject)
{ this.enabled_= [[#variable1efe7da0]];
}
else
{ this.logger.severe( [[#variable1efe7d40]]+ [[#variable1efe7c80]]);
}
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1efe7e20]] | disable |
| 1 | 2 | [[#1efe7e20]] | enable |
| 2 | 1 | [[#1efe7da0]] | false |
| 2 | 2 | [[#1efe7da0]] | true |
| 3 | 1 | [[#1efe7d40]] | 'Trying to disable an unregistered field ' |
| 3 | 2 | [[#1efe7d40]] | 'Trying to enable an unregistered field with ' |
| 4 | 1 | [[#1efe7c80]] | 'with this plugin.' |
| 4 | 2 | [[#1efe7c80]] | 'this plugin.' |