-
Notifications
You must be signed in to change notification settings - Fork 51
/
UserOptions.java
53 lines (44 loc) · 1.74 KB
/
UserOptions.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
50
51
52
53
package org.zanata.webtrans.shared.model;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
*/
public enum UserOptions implements IsSerializable {
// @formatter:off
EnterSavesApproved(editor() + ".EnterSavesApproved"),
DisplayButtons(editor() + ".DisplayButtons"),
EditorPageSize(editor() + ".PageSize"),
UseCodeMirrorEditor(editor() + ".codeMirrorEditor"),
TransMemoryDisplayMode(editor() + ".transMemoryDisplayMode"),
DisplayTransMemory(editor() + ".displayTransMemory"),
DisplayGlossary(editor() + ".displayGlossary"),
ShowOptionalTransUnitDetails(editor() + ".showOptionalTransUnitDetails"),
ShowErrors(common() + ".ShowErrors"),
Themes(common() + ".Themes"),
TranslatedMessageFilter(editor() + ".TranslatedMessageFilter"),
FuzzyMessageFilter(editor() + ".FuzzyMessageFilter"),
UntranslatedMessageFilter(editor() + ".UntranslatedMessageFilter"),
ApprovedMessageFilter(editor() + ".ApprovedMessageFilter"),
RejectedMessageFilter(editor() + ".RejectedMessageFilter"),
Navigation(editor() + ".Navigation"),
DocumentListPageSize(doc() + ".PageSize"),
ShowSaveApprovedWarning(editor() + ".ShowSaveApprovedWarning"),
SelectedReferenceLang(editor() + ".selectedReferenceLang");
// @formatter:on
private String persistentName;
public static String editor() {
return "gwt.editor";
}
public static String doc() {
return "gwt.doc";
}
public static String common() {
return "gwt.common";
}
UserOptions(String persistentName) {
this.persistentName = persistentName;
}
public String getPersistentName() {
return persistentName;
}
}