| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import EditorUI = require("../ui/EditorUI");
- class EditorLicense extends Atomic.ScriptObject {
- constructor() {
- super();
- this.subscribeToEvent("LicenseEulaRequired", (eventData) => this.handleLicenseEulaRequired(eventData));
- this.subscribeToEvent("LicenseActivationRequired", (eventData) => this.handleLicenseActivationRequired(eventData));
- this.subscribeToEvent("LicenseSuccess", (eventData) => this.handleLicenseSuccess(eventData));
- }
- handleLicenseEulaRequired(eventData) {
- var ops = EditorUI.getModelOps();
- ops.showEULAWindow();
- }
- handleLicenseActivationRequired(eventData) {
- var ops = EditorUI.getModelOps();
- ops.showActivationWindow();
- }
- handleLicenseSuccess(eventData) {
- if (ToolCore.licenseSystem.sourceBuild && ToolCore.licenseSystem.isStandardLicense()) {
- var ops = EditorUI.getModelOps();
- ops.showProWindow("AtomicEditor/editor/ui/sourceinfo.tb.txt");
- }
- }
- }
- export = EditorLicense;
|