/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tools
 */
import { Tool } from "@itwin/core-frontend";
import { SettingsModalFrontstage } from "../frontstage/ModalSettingsStage";
import svgSettings from "@bentley/icons-generic/icons/settings.svg";
/**
 * Immediate tool that will open the Settings modal stage.
 * @alpha
 */
export class OpenSettingsTool extends Tool {
    static get minArgs() {
        return 0;
    }
    static get maxArgs() {
        return 1;
    }
    async run(settingCategory) {
        SettingsModalFrontstage.showSettingsStage(settingCategory);
        return true;
    }
    async parseAndRun(...args) {
        return this.run(args[0]);
    }
}
OpenSettingsTool.toolId = "OpenSettings";
OpenSettingsTool.iconSpec = svgSettings;
//# sourceMappingURL=OpenSettingsTool.js.map