/
GeneralPrefs.java
49 lines (41 loc) · 1.54 KB
/
GeneralPrefs.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* GeneralPrefs.java
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
*
*/
package org.rstudio.studio.client.workbench.prefs.model;
import com.google.gwt.core.client.JavaScriptObject;
public class GeneralPrefs extends JavaScriptObject
{
protected GeneralPrefs() {}
public static final native GeneralPrefs create(int saveAction,
boolean loadRData,
boolean rProfileOnResume,
String initialWorkingDir) /*-{
var prefs = new Object();
prefs.save_action = saveAction;
prefs.load_rdata = loadRData;
prefs.rprofile_on_resume = rProfileOnResume;
prefs.initial_working_dir = initialWorkingDir;
return prefs ;
}-*/;
public native final int getSaveAction() /*-{
return this.save_action;
}-*/;
public native final boolean getLoadRData() /*-{
return this.load_rdata;
}-*/;
public native final boolean getRprofileOnResume() /*-{
return this.rprofile_on_resume;
}-*/;
public native final String getInitialWorkingDirectory() /*-{
return this.initial_working_dir;
}-*/;
}