blob: 45a8babbc03b2b769788380fb0b5f05c1a4743ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import Ember from 'ember';
import {goToDefinition} from '../utils/go-to-definition';
export default Ember.Controller.extend({
store : Ember.inject.service('store'),
currentFile : null,
loadItemsFunction : null,
query : null,
actions : {
searchIdentifier (query) {
if(query) {
this.set('currentFile',null);
document.title = this.get('model.id');
this.transitionToRoute('package.search',query);
}
},
showIdentifier (identifierInfo) {
goToDefinition(this.get('store'),
identifierInfo.locationInfo,
1,//left mouse button
null);
return false;
}
}
});
|