in src/main/resources/SLING-INF/libs/sling/resource-editor/static/js/tree/AddNodeController.js [123:137]
AddNodeController.prototype.toggleApplicableNodeTypes = function() {
if (this.showAllNodeTypes){
this.showAllNodeTypes=false;
$('#addNodeDialog .form-group.node-type .nt-dependency-description').text("applicable together with node name");
$('#addNodeDialog .form-group.node-type .nt-toggle').text("show generally applicable");
} else {
this.showAllNodeTypes=true;
$('#addNodeDialog .form-group.node-type .nt-dependency-description').text("generally applicable");
$('#addNodeDialog .form-group.node-type .nt-toggle').text("show applicable together with node name");
}
var nodeType = mainController.ntManager.getNodeType(this.nodeTypeName);
var appliCnTypesByNodeName = nodeType.getApplicableCnTypesPerCnDef(false /*include mixins*/);
var nodeNameList = Object.keys(appliCnTypesByNodeName);
this.nodeTypeObjects = getNodeTypesByDependenyState.call(this, nodeNameList, appliCnTypesByNodeName, this.nodeTypeObjects);
}