parent
b9b64f589b
commit
b0eea3dbef
|
@ -10,16 +10,16 @@ var labelUtil = require('../label-editing/LabelUtil');
|
||||||
/**
|
/**
|
||||||
* Provides ability to search through BPMN elements
|
* Provides ability to search through BPMN elements
|
||||||
*/
|
*/
|
||||||
function Search(elementRegistry, searchPad) {
|
function BpmnSearchProvider(elementRegistry, searchPad) {
|
||||||
|
|
||||||
this._elementRegistry = elementRegistry;
|
this._elementRegistry = elementRegistry;
|
||||||
|
|
||||||
searchPad.registerProvider(this);
|
searchPad.registerProvider(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Search;
|
module.exports = BpmnSearchProvider;
|
||||||
|
|
||||||
Search._inject = [
|
BpmnSearchProvider.$inject = [
|
||||||
'elementRegistry',
|
'elementRegistry',
|
||||||
'searchPad'
|
'searchPad'
|
||||||
];
|
];
|
||||||
|
@ -43,7 +43,7 @@ Search._inject = [
|
||||||
* @param {String} pattern
|
* @param {String} pattern
|
||||||
* @return {Array<Result>}
|
* @return {Array<Result>}
|
||||||
*/
|
*/
|
||||||
Search.prototype.find = function(pattern) {
|
BpmnSearchProvider.prototype.find = function(pattern) {
|
||||||
var elements = this._elementRegistry.filter(function(element) {
|
var elements = this._elementRegistry.filter(function(element) {
|
||||||
if (element.labelTarget) {
|
if (element.labelTarget) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue