Skip to content

Commit

Permalink
Add method to enable/disable a worker for the current session.
Browse files Browse the repository at this point in the history
  • Loading branch information
ed8247 committed Jun 25, 2015
1 parent eaa3e2d commit 7411760
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions AceGWT/src/edu/ycp/cs/dh/acegwt/client/ace/AceEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ public native void setModeByName(String shortModeName) /*-{
editor.getSession().setMode(new TheMode());
}-*/;

/**
* Enable a worker for the current session.
*
* @param userWorker true to enable a worker otherwise false
*/
public native void setUseWorker(boolean useWorker) /*-{
var editor = [email protected]::editor;
editor.getSession().setUseWorker(useWorker);
}-*/;

/**
* Register a handler for change events generated by the editor.
*
Expand Down

0 comments on commit 7411760

Please sign in to comment.