Skip to content

Commit

Permalink
Merge pull request #22 from ed8247/setUseWorker
Browse files Browse the repository at this point in the history
Add method to enable/disable a worker for the current session.
  • Loading branch information
ainslec committed Jun 25, 2015
2 parents feafc4d + 7411760 commit d63229b
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 d63229b

Please sign in to comment.