|
@@ -9,6 +9,10 @@ import {
|
|
|
Message
|
|
|
} from 'phosphor/lib/core/messaging';
|
|
|
|
|
|
+import {
|
|
|
+ defineSignal, ISignal
|
|
|
+} from 'phosphor/lib/core/signaling';
|
|
|
+
|
|
|
import {
|
|
|
Panel
|
|
|
} from 'phosphor/lib/ui/panel';
|
|
@@ -53,6 +57,11 @@ class ConsolePanel extends Panel {
|
|
|
this.addWidget(this._console);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * A signal emitted when the console panel has been activated.
|
|
|
+ */
|
|
|
+ activated: ISignal<ConsolePanel, void>;
|
|
|
+
|
|
|
/**
|
|
|
* The console widget used by the panel.
|
|
|
*
|
|
@@ -83,6 +92,7 @@ class ConsolePanel extends Panel {
|
|
|
*/
|
|
|
protected onActivateRequest(msg: Message): void {
|
|
|
this.content.activate();
|
|
|
+ this.activated.emit(void 0);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -113,6 +123,10 @@ class ConsolePanel extends Panel {
|
|
|
}
|
|
|
|
|
|
|
|
|
+// Define the signals for the `ConsolePanel` class.
|
|
|
+defineSignal(ConsolePanel.prototype, 'activated');
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* A namespace for ConsolePanel statics.
|
|
|
*/
|