|
@@ -20,9 +20,14 @@ export interface IEditMenu extends IJupyterLabMenu {
|
|
|
readonly clearers: Set<IEditMenu.IClearer<Widget>>;
|
|
|
|
|
|
/**
|
|
|
- * A set storing IClearers for the Edit menu.
|
|
|
+ * A set storing IFindReplacers for the Edit menu.
|
|
|
*/
|
|
|
readonly findReplacers: Set<IEditMenu.IFindReplacer<Widget>>;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * A set storing IGoToLiners for the Edit menu.
|
|
|
+ */
|
|
|
+ readonly goToLiners: Set<IEditMenu.IGoToLiner<Widget>>;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -41,6 +46,8 @@ export class EditMenu extends JupyterLabMenu implements IEditMenu {
|
|
|
this.clearers = new Set<IEditMenu.IClearer<Widget>>();
|
|
|
|
|
|
this.findReplacers = new Set<IEditMenu.IFindReplacer<Widget>>();
|
|
|
+
|
|
|
+ this.goToLiners = new Set<IEditMenu.IGoToLiner<Widget>>();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -54,10 +61,15 @@ export class EditMenu extends JupyterLabMenu implements IEditMenu {
|
|
|
readonly clearers: Set<IEditMenu.IClearer<Widget>>;
|
|
|
|
|
|
/**
|
|
|
- * A set storing IClearers for the Edit menu.
|
|
|
+ * A set storing IFindReplacers for the Edit menu.
|
|
|
*/
|
|
|
readonly findReplacers: Set<IEditMenu.IFindReplacer<Widget>>;
|
|
|
|
|
|
+ /**
|
|
|
+ * A set storing IGoToLiners for the Edit menu.
|
|
|
+ */
|
|
|
+ readonly goToLiners: Set<IEditMenu.IGoToLiner<Widget>>;
|
|
|
+
|
|
|
/**
|
|
|
* Dispose of the resources held by the edit menu.
|
|
|
*/
|
|
@@ -127,4 +139,14 @@ export namespace IEditMenu {
|
|
|
*/
|
|
|
findAndReplace?: (widget: T) => void;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Interface for an activity that uses Go to Line.
|
|
|
+ */
|
|
|
+ export interface IGoToLiner<T extends Widget> extends IMenuExtender<T> {
|
|
|
+ /**
|
|
|
+ * Execute a go to line command for the activity.
|
|
|
+ */
|
|
|
+ goToLine?: (widget: T) => void;
|
|
|
+ }
|
|
|
}
|