Skip to content

Commit

Permalink
#6214 add JVMOptionsChangedMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed Feb 6, 2018
1 parent dfb3be8 commit 85a378e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions js/notebook/src/tree/JVMOptions/Messages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Message } from "@phosphor/messaging";
import {
IDefaultJVMOptions, IOtherJVMOptions, IPropertiesJVMOptions, IUIOptions
IDefaultJVMOptions, IJVMOptions, IOtherJVMOptions, IPropertiesJVMOptions, IUIOptions
} from "../BeakerXApi";

export namespace Messages {
Expand All @@ -19,7 +19,22 @@ export namespace Messages {
return this._error;
}
}


export const TYPE_JVM_OPTIONS_CHANGED = 'jvm-options-changed';

export class JVMOptionsChangedMessage extends Message {
private _options: IJVMOptions;

constructor(options: IJVMOptions) {
super(TYPE_JVM_OPTIONS_CHANGED);
this._options = options
}

get options(): IJVMOptions {
return this._options;
}
}

export const TYPE_DEFAULT_JVM_OPTIONS_CHANGED = 'jvm-options-changed:default';

export class DefaultOptionsChangedMessage extends Message {
Expand Down

0 comments on commit 85a378e

Please sign in to comment.