This repository has been archived by the owner on Oct 23, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathJavatar.sublime-settings
292 lines (223 loc) · 10.8 KB
/
Javatar.sublime-settings
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
{
// Per-project settings can be set in .sublime-project file
//////////////////////
// Javatar Settings //
//////////////////////
// Enable debug messages and some tweaks for debugging Javatar
"debug_mode": false,
// Automatically send statistics and usages informations
"send_stats_and_usages": true,
// Log all the Javatar actions via Action History
// Enable this will helps developer solve the error issues
"enable_action_history": true,
// Default delay before hide a status text (in milliseconds)
// Must more than 100 milliseconds
"status_delay": 5000,
// Default delay before cycle to another status text (in milliseconds)
// Must more than 100 milliseconds
"status_cycle_delay": 1000,
// Maximum text size when show a scrolling status text
// Any scroll-messages longer than this value will be scrolled
"status_scrolling_size": 50,
// Show package path in status bar
"show_package_path": true,
/////////////////////
// Global Settings //
/////////////////////
// Initial directory for finding dependencies
"dependencies_path": "%project_dirs_prefix%",
// Dependencies download location
"dependencies_download_location": "%project_dirs_prefix%%sep%jar",
// Javatar cache file location
"cache_file_location": "%project_dirs_prefix%",
// Maximum duration until cache expire
// Expired cache will have to rebuild all cache once more
//
// Format:
// d: day
// h: hour
// m: minute
// s: second
//
// Examples:
// "1d2h" is 1 day and 2 hours
// "6h30m2s" is 6 hours, 30 minutes and 2 seconds
"cache_valid_duration": "1h",
// Show hidden files and directories for browsing dependencies
"show_hidden_files_and_directories": false,
//////////////////////////////
// Project Data Restoration //
//////////////////////////////
// Allow Javatar to store project data for restoration
"allow_project_restoration": false,
// Time interval to update project data for restoration (in milliseconds)
"project_update_interval": 60000,
///////////////////
// Java Settings //
///////////////////
// JDK installation path
// This should contains "jdk1.<major>.0_<minor>" folder or similar
// Javatar will use this path to detect your JDK installations and
// let's you select version you want to use
// Name should be your os name that get from sublime.platform() while
// value is a list of JDK installation path
// Javatar will use current JDK that you are using, otherwise it will
// use latest version you have
//
// References:
// http://docs.oracle.com/javase/8/docs/technotes/guides/install/index.html
"jdk_installation": {
"osx": ["/Library/Java/JavaVirtualMachines"],
"windows": ["C:\\Program Files\\Java", "C:\\Program Files (x86)\\Java"],
"linux": ["/usr/jdk"]
},
// Runtime required files
"java_runtime_files": {
"runtime": ["rt.jar"]
},
// Executables that Javatar used
"java_executables": {
"build": "javac",
"run": "java",
"lint": "javac",
"version": "java",
"script": "jrunscript"
},
// Package exclusions when search for classes
"java_exclude_packages": [
"com.sun.",
"sun."
],
////////////////////////////
// Run and Build Settings //
////////////////////////////
// Enable automatic save before build
"automatic_save": false,
// Enable automatic build before run
"automatic_build": true,
// Always ask if there are more than one main class before run
// Disable will automatically run based on a current file
"always_ask_to_run": false,
// Always build the file whether it has changed or not
// Disable will build based on the file changes
"always_rebuild": false,
// Program arguments to pass to the main executed on the "run" command
"program_arguments": "",
// Additional arguments to pass to the "build" command
"build_arguments": "-Xlint:all",
// Additional arguments to pass to the linter
"linter_arguments": "-Xlint:all",
// Run the program on the first (AppKit) thread (OS X Only)
"always_run_on_first_thread": false,
// Location to run "run" command
"run_location": "%project_dirs_prefix%",
// Location to run "build" command
"build_location": "%project_dirs_prefix%",
// Build output (class files) location
// Specified here and Javatar will create target path and reference
// by -d flag in build_command
// In this case, "%project_directory%/bin"
"build_output_location": "%project_dirs_prefix%%sep%bin",
// Number of builder threads
// Source files will be distributed equally to all builders
// Increase this value can helps building done faster but also use more
// performances
"builder_threads": 1,
// Number of files to build in each builder
// Each builder will pass the specified amount of source files
// (from this value) to the build command
// Proper set this value can helps distributed the load of each build
// process
// Set a value lower than 1 will build all files at once
"parallel_builds": 0,
// Build log view creation delay (in second)
// Increase this value can helps prevent double view from showing but
// also freeze computer for a specified time
"build_log_delay": 0.05,
// Show a build log in specified group and index
// This list prioritize from top to bottom
// Specified a number or a list of one number, will move the build logs
// to target group
// Specified a list of two numbers will move the build logs to target
// group and target index
// If specified target group is not found, the next group index is used.
// Otherwise, the build logs will show on current group instead
// If specified target index is not found, the build logs will show on
// target group as a new view
// If both target group and index is not found, the build logs will show
// on current group instead
// All groups and indices are zero-based
// Run -- window.run_command("javatar_view") -- in console to show view
// group and index
"build_log_target_group": [],
// Show running console in specified group and index
// Same format as build_log_target_group
"output_console_target_group": [],
// Amount from bottom to snap into autoscrolling area
// Increase this number if autoscroll is not working properly
"autoscroll_snap_range": 1,
// Always scroll view to bottom in output window
"autoscroll_to_bottom": true,
// Refresh rate for Javatar shell (in second)
// Increase this value can helps shell output to print more smoothly but it's also affect the system performances
"shell_refresh_interval": 0.01,
// The encoding to handle input/output of the invoked process
// Using the same format as str.encode() in Python 3 used
"encoding": "UTF-8",
// Error handler on output encoding
// ignore = Remove all invalid encoding character
// replace = Replace all invalid encoding character with "?" symbol
// Change this value without knowing what you're doing is not a good idea
"encoding_handle": "replace",
//////////////////////////////////
// Javatar Validations Settings //
//////////////////////////////////
// Java file extensions
"java_extensions": [".java"],
// Java source code validation using scope selector
"java_source_selector": "source.java",
// Java version matching using RegEx (get from java -version)
"java_version_match": "(\\d+.\\d+.\\d+)_?([0-9a-zA-Z]+)?",
// Class declaration name selector (Use in structure parsing)
"class_declaration_name_selector": ">ClassDeclaration>Identifier",
// Class declaration and its members filtered selector (Use in structure parsing)
"class_members_filter_selector": ">ClassDeclaration>[Identifier=%s]",
// Class constructors selector (Use in structure parsing)
"class_constructors_selector": ">ConstructorDeclaration",
// Class constructors selector (Use in structure parsing)
"class_constructor_name_selector": ">ConstructorDeclaration>Identifier",
// Class methods selector (Use in structure parsing)
"class_methods_selector": ">MethodDeclaration>MethodHeader",
// Class method return type selector (Use in structure parsing)
"class_method_type_selector": ">MethodDeclaration>MethodHeader>Type",
// Class method name selector (Use in structure parsing)
"class_method_name_selector": ">MethodDeclaration>MethodHeader>Identifier",
// Constructor parameter selector (Use in structure parsing)
"parameter_selector": ">FormalParameters>FormalParameterList>FormalParameter|>FormalParameters>FormalParameterList>LastFormalParameter",
// Constructor parameter type selector (Use in structure parsing)
"parameter_type_selector": ">Type",
// Constructor parameter name selector (Use in structure parsing)
"parameter_name_selector": ">VariableDeclaratorId",
// Class fields selector (Use in structure parsing)
"class_fields_selector": ">FieldDeclaration",
// Class field type selector (Use in structure parsing)
"class_field_type_selector": ">FieldDeclaration>Type",
// Class field name selector (Use in structure parsing)
"class_field_name_selector": ">FieldDeclaration>VariableDeclarators>VariableDeclarator>VariableDeclaratorId",
// Types and classes selector (Use in structure parsing)
"type_selectors": "@VariableType|@StaticClassOrInterfaceType|@CatchType",
// Declarations with children selector (Use in structure parsing)
"declarations_selector": "@PackageDeclaration|>ImportDeclaration>|>ImportDeclaration",
// Package declaration selector (Use in structure parsing)
"package_declaration_selector": "@PackageDeclaration",
// Import declaration selector (Use in structure parsing)
"import_declaration_selector": "@ImportDeclaration",
// Package name in import declaration selector (Use in structure parsing)
"import_declaration_package_selector": ">ImportDeclaration>QualifiedName",
// Class path validation using RegEx
"class_path_match": "^(([a-zA-Z_\\-$][a-zA-Z\\d_\\-$]*\\.)*)([a-zA-Z_$][a-zA-Z\\d_$]*)$",
// Class path (with inheritances) validation using RegEx
"special_class_path_match": "^([a-zA-Z_\\-$][a-zA-Z\\d_\\-$]*\\.)*[a-zA-Z_$][a-zA-Z\\d_$]*([<:]([a-zA-Z_$][a-zA-Z\\d_$]*)(,[a-zA-Z_$][a-zA-Z\\d_$]*)*)*$",
// Package path validation using RegEx
"package_path_match": "^([a-zA-Z_\\-$][a-zA-Z\\\\d_\\-$]*)(\\.[a-zA-Z_\\-$][a-zA-Z\\\\d_\\-$]*)*$"
}