Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor(imodel: IModelConnection) {
this._imodel = imodel;
// handles changing and listening to unified selection
this._selectionHandler = new SelectionHandler(Presentation.selection,
`Viewport_${counter++}`, imodel, undefined, this.onUnifiedSelectionChanged);
this._selectionHandler.manager.setSyncWithIModelToolSelection(imodel, true);
// stop imodel from syncing tool selection with hilited list - we want
// to override that behavior
imodel.hilited.wantSyncWithSelectionSet = false;
}
const unifiedSelectionHandler = useRefLazy(() => new SelectionHandler(Presentation.selection, name, dataProvider.imodel, dataProvider.rulesetId));
public componentDidMount() {
const name = `PropertyGrid_${counter++}`;
const imodel = this.props.dataProvider.imodel;
const rulesetId = this.props.dataProvider.rulesetId;
this._isMounted = true;
this._selectionHandler = this.props.selectionHandler
? this.props.selectionHandler : new SelectionHandler(Presentation.selection, name, imodel, rulesetId);
this._selectionHandler!.onSelect = this.onSelectionChanged;
this.updateDataProviderSelection();
}
public componentDidMount() {
const name = `Table_${counter++}`;
const imodel = this.props.dataProvider.imodel;
const rulesetId = this.props.dataProvider.rulesetId;
this._selectionHandler = this.props.selectionHandler
? this.props.selectionHandler : new SelectionHandler(Presentation.selection, name, imodel, rulesetId);
this._selectionHandler!.onSelect = this.onSelectionChanged;
this.displaySelection();
}
public componentDidMount() {
const name = `Tree_${counter++}`;
const imodel = this.props.dataProvider.imodel;
const rulesetId = this.props.dataProvider.rulesetId;
this._selectionHandler = this.props.selectionHandler
? this.props.selectionHandler : new SelectionHandler(Presentation.selection, name, imodel, rulesetId);
this._selectionHandler!.onSelect = this.onSelectionChanged;
}