-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathObjcPreferences.js
144 lines (133 loc) · 4.95 KB
/
ObjcPreferences.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
* Copyright (c) 2013-2014 Minkyu Lee. All rights reserved.
*
* NOTICE: All information contained herein is, and remains the
* property of Minkyu Lee. The intellectual and technical concepts
* contained herein are proprietary to Minkyu Lee and may be covered
* by Republic of Korea and Foreign Patents, patents in process,
* and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Minkyu Lee ([email protected]).
*
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, regexp: true */
/*global define, $, _, window, appshell, staruml */
define(function (require, exports, module) {
"use strict";
var AppInit = app.getModule("utils/AppInit"),
Core = app.getModule("core/Core"),
PreferenceManager = app.getModule("core/PreferenceManager");
var preferenceId = "objc";
var objcPreferences = {
"objc.gen": {
text: "Objective-C Code Generation",
type: "Section"
},
"objc.gen.javaDoc": {
text: "JavaDoc",
description: "Generate JavaDoc comments.",
type: "Check",
default: true
},
"objc.gen.useTab": {
text: "Use Tab",
description: "Use Tab for indentation instead of spaces.",
type: "Check",
default: false
},
"objc.gen.indentSpaces": {
text: "Indent Spaces",
description: "Number of spaces for indentation.",
type: "Number",
default: 4
},
"Cpp.gen.includeHeader": {
text: "Include default header",
description: "Include default header.",
type: "Check",
default: true
},
"Cpp.gen.useVector": {
text: "Use vector instead of *",
description: "Use vector<> instead of pointer.",
type: "Check",
default: true
},
"Cpp.gen.genImpl": {
text: "Generate *.m file",
description: "Generate implementation file",
type: "Check",
default: true
},
"Cpp.gen.genStrictAbstract": {
text: "Generate strict Abstract",
description: "Generate strict Abstract",
type: "Check",
default: false
},
"objc.rev": {
text: "Objective-C Reverse Engineering",
type: "Section"
},
"objc.rev.association": {
text: "Use Association",
description: "Reverse Objective-C Fields as UML Associations.",
type: "Check",
default: true
},
"objc.rev.publicOnly": {
text: "Public Only",
description: "Reverse public members only.",
type: "Check",
default: false
},
"objc.rev.typeHierarchy": {
text: "Type Hierarchy Diagram",
description: "Create a type hierarchy diagram for all classes and interfaces",
type: "Check",
default: true
},
"objc.rev.packageOverview": {
text: "Package Overview Diagram",
description: "Create overview diagram for each package",
type: "Check",
default: true
},
"objc.rev.packageStructure": {
text: "Package Structure Diagram",
description: "Create a package structure diagram for all packages",
type: "Check",
default: true
}
};
function getId() {
return preferenceId;
}
function getGenOptions() {
return {
javaDoc : PreferenceManager.get("objc.gen.javaDoc"),
useTab : PreferenceManager.get("objc.gen.useTab"),
indentSpaces : PreferenceManager.get("objc.gen.indentSpaces"),
useVector : PreferenceManager.get("Cpp.gen.useVector"),
includeHeader : PreferenceManager.get("Cpp.gen.includeHeader"),
genImpl : PreferenceManager.get("Cpp.gen.genImpl"),
genStrictAbstract : PreferenceManager.get("Cpp.gen.genStrictAbstract")
};
}
function getRevOptions() {
return {
association : PreferenceManager.get("objc.rev.association"),
publicOnly : PreferenceManager.get("objc.rev.publicOnly"),
typeHierarchy : PreferenceManager.get("objc.rev.typeHierarchy"),
packageOverview : PreferenceManager.get("objc.rev.packageOverview"),
packageStructure : PreferenceManager.get("objc.rev.packageStructure")
};
}
AppInit.htmlReady(function () {
PreferenceManager.register(preferenceId, "Objective-C", objcPreferences);
});
exports.getId = getId;
exports.getGenOptions = getGenOptions;
exports.getRevOptions = getRevOptions;
});