Lines 47-52
Link Here
|
47 |
import java.util.ArrayList; |
47 |
import java.util.ArrayList; |
48 |
import java.util.Arrays; |
48 |
import java.util.Arrays; |
49 |
import java.util.Collections; |
49 |
import java.util.Collections; |
|
|
50 |
import java.util.HashMap; |
50 |
import java.util.Iterator; |
51 |
import java.util.Iterator; |
51 |
import java.util.LinkedHashMap; |
52 |
import java.util.LinkedHashMap; |
52 |
import java.util.List; |
53 |
import java.util.List; |
Lines 54-63
Link Here
|
54 |
import java.util.Set; |
55 |
import java.util.Set; |
55 |
import javax.swing.Icon; |
56 |
import javax.swing.Icon; |
56 |
import javax.swing.JComponent; |
57 |
import javax.swing.JComponent; |
|
|
58 |
import org.netbeans.spi.options.AdvancedOption; |
57 |
import org.netbeans.spi.options.OptionsCategory; |
59 |
import org.netbeans.spi.options.OptionsCategory; |
58 |
import org.netbeans.spi.options.OptionsPanelController; |
60 |
import org.netbeans.spi.options.OptionsPanelController; |
59 |
import org.openide.util.HelpCtx; |
61 |
import org.openide.util.HelpCtx; |
60 |
import org.openide.util.Lookup; |
62 |
import org.openide.util.Lookup; |
|
|
63 |
import org.openide.util.Lookup.Item; |
64 |
import org.openide.util.Lookup.Result; |
61 |
import org.openide.util.LookupEvent; |
65 |
import org.openide.util.LookupEvent; |
62 |
import org.openide.util.LookupListener; |
66 |
import org.openide.util.LookupListener; |
63 |
import org.openide.util.RequestProcessor; |
67 |
import org.openide.util.RequestProcessor; |
Lines 69-81
Link Here
|
69 |
*/ |
73 |
*/ |
70 |
public final class CategoryModel implements LookupListener { |
74 |
public final class CategoryModel implements LookupListener { |
71 |
private static Reference<CategoryModel> INSTANCE = new WeakReference<CategoryModel>(new CategoryModel()); |
75 |
private static Reference<CategoryModel> INSTANCE = new WeakReference<CategoryModel>(new CategoryModel()); |
72 |
private final RequestProcessor RP = new RequestProcessor(); |
76 |
private final RequestProcessor RP = new RequestProcessor(); |
73 |
private static String currentCategoryID = null; |
77 |
private static String currentCategoryID = null; |
74 |
private String highlitedCategoryID = null; |
78 |
private String highlitedCategoryID = null; |
75 |
private boolean categoriesValid = true; |
79 |
private boolean categoriesValid = true; |
76 |
private final Map<String, CategoryModel.Category> id2Category = |
80 |
private final Map<String, CategoryModel.Category> id2Category = |
77 |
Collections.synchronizedMap(new LinkedHashMap<String, CategoryModel.Category>()); |
81 |
Collections.synchronizedMap(new LinkedHashMap<String, CategoryModel.Category>()); |
78 |
private MasterLookup masterLookup; |
82 |
private MasterLookup masterLookup; |
|
|
83 |
|
84 |
Set<Map.Entry<String, CategoryModel.Category>> getCategories() { |
85 |
return id2Category.entrySet(); |
86 |
} |
87 |
|
79 |
private final RequestProcessor.Task masterLookupTask = RP.create(new Runnable() { |
88 |
private final RequestProcessor.Task masterLookupTask = RP.create(new Runnable() { |
80 |
public void run() { |
89 |
public void run() { |
81 |
String[] categoryIDs = getCategoryIDs(); |
90 |
String[] categoryIDs = getCategoryIDs(); |
Lines 93-99
Link Here
|
93 |
},true); |
102 |
},true); |
94 |
private final RequestProcessor.Task categoryTask = RP.create(new Runnable() { |
103 |
private final RequestProcessor.Task categoryTask = RP.create(new Runnable() { |
95 |
public void run() { |
104 |
public void run() { |
96 |
Map<String, OptionsCategory> all = loadOptionsCategories(); |
105 |
Map<String, OptionsCategory> all = loadOptionsCategories(); |
97 |
Map<String, CategoryModel.Category> temp = new LinkedHashMap<String, CategoryModel.Category>(); |
106 |
Map<String, CategoryModel.Category> temp = new LinkedHashMap<String, CategoryModel.Category>(); |
98 |
for (Iterator<Map.Entry<String, OptionsCategory>> it = all.entrySet().iterator(); it.hasNext();) { |
107 |
for (Iterator<Map.Entry<String, OptionsCategory>> it = all.entrySet().iterator(); it.hasNext();) { |
99 |
Map.Entry<String, OptionsCategory> entry = it.next(); |
108 |
Map.Entry<String, OptionsCategory> entry = it.next(); |
Lines 107-117
Link Here
|
107 |
masterLookupTask.schedule(0); |
116 |
masterLookupTask.schedule(0); |
108 |
} |
117 |
} |
109 |
},true); |
118 |
},true); |
110 |
|
119 |
|
111 |
private CategoryModel() { |
120 |
private CategoryModel() { |
112 |
categoryTask.schedule(0); |
121 |
categoryTask.schedule(0); |
113 |
} |
122 |
} |
114 |
|
123 |
|
115 |
public static CategoryModel getInstance() { |
124 |
public static CategoryModel getInstance() { |
116 |
CategoryModel retval = INSTANCE.get(); |
125 |
CategoryModel retval = INSTANCE.get(); |
117 |
if (retval == null) { |
126 |
if (retval == null) { |
Lines 120-158
Link Here
|
120 |
} |
129 |
} |
121 |
return retval; |
130 |
return retval; |
122 |
} |
131 |
} |
123 |
|
132 |
|
124 |
boolean needsReinit() { |
133 |
boolean needsReinit() { |
125 |
synchronized(CategoryModel.class) { |
134 |
synchronized(CategoryModel.class) { |
126 |
return !categoriesValid; |
135 |
return !categoriesValid; |
127 |
} |
136 |
} |
128 |
} |
137 |
} |
129 |
|
138 |
|
130 |
boolean isInitialized() { |
139 |
boolean isInitialized() { |
131 |
return categoryTask.isFinished(); |
140 |
return categoryTask.isFinished(); |
132 |
} |
141 |
} |
133 |
|
142 |
|
134 |
boolean isLookupInitialized() { |
143 |
boolean isLookupInitialized() { |
135 |
return masterLookupTask.isFinished(); |
144 |
return masterLookupTask.isFinished(); |
136 |
} |
145 |
} |
137 |
|
146 |
|
138 |
|
147 |
|
139 |
void waitForInitialization() { |
148 |
void waitForInitialization() { |
140 |
categoryTask.waitFinished(); |
149 |
categoryTask.waitFinished(); |
141 |
} |
150 |
} |
142 |
|
151 |
|
143 |
public String getCurrentCategoryID() { |
152 |
public String getCurrentCategoryID() { |
144 |
return verifyCategoryID(currentCategoryID); |
153 |
return verifyCategoryID(currentCategoryID); |
145 |
} |
154 |
} |
146 |
|
155 |
|
147 |
public void setCurrentCategoryID(String categoryID) { |
156 |
public void setCurrentCategoryID(String categoryID) { |
148 |
currentCategoryID = verifyCategoryID(categoryID); |
157 |
currentCategoryID = verifyCategoryID(categoryID); |
149 |
} |
158 |
} |
150 |
|
159 |
|
151 |
|
160 |
|
152 |
String getHighlitedCategoryID() { |
161 |
String getHighlitedCategoryID() { |
153 |
return verifyCategoryID(highlitedCategoryID); |
162 |
return verifyCategoryID(highlitedCategoryID); |
154 |
} |
163 |
} |
155 |
|
164 |
|
156 |
private String verifyCategoryID(String categoryID) { |
165 |
private String verifyCategoryID(String categoryID) { |
157 |
String retval = findCurrentCategoryID(categoryID) != -1 ? categoryID : null; |
166 |
String retval = findCurrentCategoryID(categoryID) != -1 ? categoryID : null; |
158 |
if (retval == null) { |
167 |
if (retval == null) { |
Lines 163-184
Link Here
|
163 |
} |
172 |
} |
164 |
return retval; |
173 |
return retval; |
165 |
} |
174 |
} |
166 |
|
175 |
|
167 |
private int findCurrentCategoryID(String categoryID) { |
176 |
private int findCurrentCategoryID(String categoryID) { |
168 |
return categoryID == null ? -1 : Arrays.asList(getCategoryIDs()).indexOf(categoryID); |
177 |
return categoryID == null ? -1 : Arrays.asList(getCategoryIDs()).indexOf(categoryID); |
169 |
} |
178 |
} |
170 |
|
179 |
|
171 |
public String[] getCategoryIDs() { |
180 |
public String[] getCategoryIDs() { |
172 |
categoryTask.waitFinished(); |
181 |
categoryTask.waitFinished(); |
173 |
Set<String> keys = id2Category.keySet(); |
182 |
Set<String> keys = id2Category.keySet(); |
174 |
return keys.toArray(new String[keys.size()]); |
183 |
return keys.toArray(new String[keys.size()]); |
175 |
} |
184 |
} |
176 |
|
185 |
|
177 |
Category getCurrent() { |
186 |
Category getCurrent() { |
178 |
String categoryID = getCurrentCategoryID(); |
187 |
String categoryID = getCurrentCategoryID(); |
179 |
return (categoryID == null) ? null : getCategory(categoryID); |
188 |
return (categoryID == null) ? null : getCategory(categoryID); |
180 |
} |
189 |
} |
181 |
|
190 |
|
182 |
void setCurrent(Category item) { |
191 |
void setCurrent(Category item) { |
183 |
item.setCurrent(); |
192 |
item.setCurrent(); |
184 |
} |
193 |
} |
Lines 186-197
Link Here
|
186 |
void setHighlited(Category item,boolean highlited) { |
195 |
void setHighlited(Category item,boolean highlited) { |
187 |
item.setHighlited(highlited); |
196 |
item.setHighlited(highlited); |
188 |
} |
197 |
} |
189 |
|
198 |
|
190 |
HelpCtx getHelpCtx() { |
199 |
HelpCtx getHelpCtx() { |
191 |
final CategoryModel.Category category = getCurrent(); |
200 |
final CategoryModel.Category category = getCurrent(); |
192 |
return (category == null) ? null : category.getHelpCtx(); |
201 |
return (category == null) ? null : category.getHelpCtx(); |
193 |
} |
202 |
} |
194 |
|
203 |
|
195 |
void update(PropertyChangeListener l, boolean force) { |
204 |
void update(PropertyChangeListener l, boolean force) { |
196 |
String[] categoryIDs = getCategoryIDs(); |
205 |
String[] categoryIDs = getCategoryIDs(); |
197 |
for (int i = 0; i < categoryIDs.length; i++) { |
206 |
for (int i = 0; i < categoryIDs.length; i++) { |
Lines 199-205
Link Here
|
199 |
item.update(l, force); |
208 |
item.update(l, force); |
200 |
} |
209 |
} |
201 |
} |
210 |
} |
202 |
|
211 |
|
203 |
void save() { |
212 |
void save() { |
204 |
String[] categoryIDs = getCategoryIDs(); |
213 |
String[] categoryIDs = getCategoryIDs(); |
205 |
for (int i = 0; i < categoryIDs.length; i++) { |
214 |
for (int i = 0; i < categoryIDs.length; i++) { |
Lines 207-213
Link Here
|
207 |
item.applyChanges(); |
216 |
item.applyChanges(); |
208 |
} |
217 |
} |
209 |
} |
218 |
} |
210 |
|
219 |
|
211 |
void cancel() { |
220 |
void cancel() { |
212 |
String[] categoryIDs = getCategoryIDs(); |
221 |
String[] categoryIDs = getCategoryIDs(); |
213 |
for (int i = 0; i < categoryIDs.length; i++) { |
222 |
for (int i = 0; i < categoryIDs.length; i++) { |
Lines 215-221
Link Here
|
215 |
item.cancel(); |
224 |
item.cancel(); |
216 |
} |
225 |
} |
217 |
} |
226 |
} |
218 |
|
227 |
|
219 |
boolean dataValid() { |
228 |
boolean dataValid() { |
220 |
boolean retval = true; |
229 |
boolean retval = true; |
221 |
String[] categoryIDs = getCategoryIDs(); |
230 |
String[] categoryIDs = getCategoryIDs(); |
Lines 225-231
Link Here
|
225 |
} |
234 |
} |
226 |
return retval; |
235 |
return retval; |
227 |
} |
236 |
} |
228 |
|
237 |
|
229 |
boolean isChanged() { |
238 |
boolean isChanged() { |
230 |
boolean retval = false; |
239 |
boolean retval = false; |
231 |
String[] categoryIDs = getCategoryIDs(); |
240 |
String[] categoryIDs = getCategoryIDs(); |
Lines 235-242
Link Here
|
235 |
} |
244 |
} |
236 |
return retval; |
245 |
return retval; |
237 |
} |
246 |
} |
238 |
|
247 |
|
239 |
|
248 |
|
240 |
Category getNextCategory() { |
249 |
Category getNextCategory() { |
241 |
int idx = findCurrentCategoryID(getCurrentCategoryID()); |
250 |
int idx = findCurrentCategoryID(getCurrentCategoryID()); |
242 |
String[] categoryIDs = getCategoryIDs(); |
251 |
String[] categoryIDs = getCategoryIDs(); |
Lines 252-258
Link Here
|
252 |
} |
261 |
} |
253 |
return nextId != null ? getCategory(nextId) : null; |
262 |
return nextId != null ? getCategory(nextId) : null; |
254 |
} |
263 |
} |
255 |
|
264 |
|
256 |
Category getPreviousCategory() { |
265 |
Category getPreviousCategory() { |
257 |
int idx = findCurrentCategoryID(getCurrentCategoryID()); |
266 |
int idx = findCurrentCategoryID(getCurrentCategoryID()); |
258 |
String[] categoryIDs = getCategoryIDs(); |
267 |
String[] categoryIDs = getCategoryIDs(); |
Lines 268-287
Link Here
|
268 |
} |
277 |
} |
269 |
return previousId != null ? getCategory(previousId) : null; |
278 |
return previousId != null ? getCategory(previousId) : null; |
270 |
} |
279 |
} |
271 |
|
280 |
|
272 |
|
281 |
|
273 |
Category getCategory(String categoryID) { |
282 |
Category getCategory(String categoryID) { |
274 |
categoryTask.waitFinished(); |
283 |
categoryTask.waitFinished(); |
275 |
return id2Category.get(categoryID); |
284 |
return id2Category.get(categoryID); |
276 |
} |
285 |
} |
277 |
|
286 |
|
278 |
private MasterLookup getMasterLookup() { |
287 |
private MasterLookup getMasterLookup() { |
279 |
if (masterLookup == null) { |
288 |
if (masterLookup == null) { |
280 |
masterLookup = new MasterLookup(); |
289 |
masterLookup = new MasterLookup(); |
281 |
} |
290 |
} |
282 |
return masterLookup; |
291 |
return masterLookup; |
283 |
} |
292 |
} |
284 |
|
293 |
|
285 |
private Map<String, OptionsCategory> loadOptionsCategories() { |
294 |
private Map<String, OptionsCategory> loadOptionsCategories() { |
286 |
Lookup lookup = Lookups.forPath("OptionsDialog"); // NOI18N |
295 |
Lookup lookup = Lookups.forPath("OptionsDialog"); // NOI18N |
287 |
Lookup.Result<OptionsCategory> result = lookup.lookup(new Lookup.Template<OptionsCategory>(OptionsCategory.class)); |
296 |
Lookup.Result<OptionsCategory> result = lookup.lookup(new Lookup.Template<OptionsCategory>(OptionsCategory.class)); |
Lines 296-307
Link Here
|
296 |
|
305 |
|
297 |
public void resultChanged(LookupEvent ev) { |
306 |
public void resultChanged(LookupEvent ev) { |
298 |
synchronized(CategoryModel.class) { |
307 |
synchronized(CategoryModel.class) { |
299 |
categoriesValid = false; |
308 |
categoriesValid = false; |
300 |
OptionsDisplayerImpl.lookupListener.resultChanged(ev); |
309 |
OptionsDisplayerImpl.lookupListener.resultChanged(ev); |
301 |
INSTANCE = new WeakReference<CategoryModel>(new CategoryModel()); |
310 |
INSTANCE = new WeakReference<CategoryModel>(new CategoryModel()); |
302 |
} |
311 |
} |
303 |
} |
312 |
} |
304 |
|
313 |
|
305 |
final class Category { |
314 |
final class Category { |
306 |
private OptionsCategory category; |
315 |
private OptionsCategory category; |
307 |
private OptionsPanelController controller; |
316 |
private OptionsPanelController controller; |
Lines 310-329
Link Here
|
310 |
private JComponent component; |
319 |
private JComponent component; |
311 |
private Lookup lookup; |
320 |
private Lookup lookup; |
312 |
private final String id; |
321 |
private final String id; |
313 |
|
322 |
|
314 |
private Category(final String id, final OptionsCategory category) { |
323 |
private Category(final String id, final OptionsCategory category) { |
315 |
this.category = category; |
324 |
this.category = category; |
316 |
this.id = id; |
325 |
this.id = id; |
317 |
} |
326 |
} |
318 |
|
327 |
|
319 |
boolean isCurrent() { |
328 |
boolean isCurrent() { |
320 |
return getID().equals(getCurrentCategoryID()); |
329 |
return getID().equals(getCurrentCategoryID()); |
321 |
} |
330 |
} |
322 |
|
331 |
|
323 |
boolean isHighlited() { |
332 |
boolean isHighlited() { |
324 |
return getID().equals(getHighlitedCategoryID()); |
333 |
return getID().equals(getHighlitedCategoryID()); |
325 |
} |
334 |
} |
326 |
|
335 |
|
327 |
private void setCurrent() { |
336 |
private void setCurrent() { |
328 |
setCurrentCategoryID(getID()); |
337 |
setCurrentCategoryID(getID()); |
329 |
} |
338 |
} |
Lines 331-337
Link Here
|
331 |
public void setCurrentSubcategory(String subpath) { |
340 |
public void setCurrentSubcategory(String subpath) { |
332 |
OptionsPanelControllerAccessor.getDefault().setCurrentSubcategory(create(), subpath); |
341 |
OptionsPanelControllerAccessor.getDefault().setCurrentSubcategory(create(), subpath); |
333 |
} |
342 |
} |
334 |
|
343 |
|
335 |
private void setHighlited(boolean highlited) { |
344 |
private void setHighlited(boolean highlited) { |
336 |
if (highlited) { |
345 |
if (highlited) { |
337 |
highlitedCategoryID = getID(); |
346 |
highlitedCategoryID = getID(); |
Lines 339-345
Link Here
|
339 |
highlitedCategoryID = currentCategoryID; |
348 |
highlitedCategoryID = currentCategoryID; |
340 |
} |
349 |
} |
341 |
} |
350 |
} |
342 |
|
351 |
|
343 |
public Icon getIcon() { |
352 |
public Icon getIcon() { |
344 |
return category.getIcon(); |
353 |
return category.getIcon(); |
345 |
} |
354 |
} |
Lines 349-370
Link Here
|
349 |
public String getID() { |
358 |
public String getID() { |
350 |
return id; |
359 |
return id; |
351 |
} |
360 |
} |
352 |
|
361 |
|
353 |
public String getCategoryName() { |
362 |
public String getCategoryName() { |
354 |
return category.getCategoryName(); |
363 |
return category.getCategoryName(); |
355 |
} |
364 |
} |
356 |
|
365 |
|
357 |
public String getTitle() { |
366 |
public String getTitle() { |
358 |
return category.getTitle(); |
367 |
return category.getTitle(); |
359 |
} |
368 |
} |
360 |
|
369 |
|
361 |
private synchronized OptionsPanelController create() { |
370 |
private synchronized OptionsPanelController create() { |
362 |
if (controller == null) { |
371 |
if (controller == null) { |
363 |
controller = category.create(); |
372 |
controller = category.create(); |
364 |
} |
373 |
} |
365 |
return controller; |
374 |
return controller; |
366 |
} |
375 |
} |
367 |
|
376 |
|
|
|
377 |
public Map<String, Set<String>> getKeywords() { |
378 |
Map<String, Set<String>> kws = new HashMap<String, Set<String>>(); |
379 |
if(category != null && (category instanceof OptionsCategoryImpl)) { |
380 |
kws.putAll(((OptionsCategoryImpl) category).getKeywordsByCategory()); |
381 |
} |
382 |
|
383 |
//sub-panels keywords |
384 |
String path = "OptionsDialog/" + getID(); // NOI18N |
385 |
Lookup lkp = Lookups.forPath(path); |
386 |
Result<AdvancedOption> lkpResult = lkp.lookup(new Lookup.Template<AdvancedOption>(AdvancedOption.class)); |
387 |
for (Item<AdvancedOption> item : lkpResult.allItems()) { |
388 |
// don't lookup in subfolders |
389 |
if (item.getId().substring(0, item.getId().lastIndexOf('/')).equals(path)) { // NOI18N |
390 |
AdvancedOption option = item.getInstance(); |
391 |
if(option instanceof AdvancedOptionImpl) |
392 |
kws.putAll(((AdvancedOptionImpl) option).getKeywordsByCategory()); |
393 |
} |
394 |
} |
395 |
return kws; |
396 |
} |
397 |
|
368 |
final void update(PropertyChangeListener l, boolean forceUpdate) { |
398 |
final void update(PropertyChangeListener l, boolean forceUpdate) { |
369 |
if ((!isUpdated && !forceUpdate) || (isUpdated && forceUpdate)) { |
399 |
if ((!isUpdated && !forceUpdate) || (isUpdated && forceUpdate)) { |
370 |
isUpdated = true; |
400 |
isUpdated = true; |
Lines 375-395
Link Here
|
375 |
} |
405 |
} |
376 |
} |
406 |
} |
377 |
} |
407 |
} |
378 |
|
408 |
|
379 |
private void applyChanges() { |
409 |
private void applyChanges() { |
380 |
if (isUpdated) { |
410 |
if (isUpdated) { |
381 |
create().applyChanges(); |
411 |
create().applyChanges(); |
382 |
} |
412 |
} |
383 |
isUpdated = false; |
413 |
isUpdated = false; |
384 |
} |
414 |
} |
385 |
|
415 |
|
386 |
private void cancel() { |
416 |
private void cancel() { |
387 |
if (isUpdated) { |
417 |
if (isUpdated) { |
388 |
create().cancel(); |
418 |
create().cancel(); |
389 |
} |
419 |
} |
390 |
isUpdated = false; |
420 |
isUpdated = false; |
391 |
} |
421 |
} |
392 |
|
422 |
|
393 |
private boolean isValid() { |
423 |
private boolean isValid() { |
394 |
boolean retval = true; |
424 |
boolean retval = true; |
395 |
if (isUpdated) { |
425 |
if (isUpdated) { |
Lines 397-403
Link Here
|
397 |
} |
427 |
} |
398 |
return retval; |
428 |
return retval; |
399 |
} |
429 |
} |
400 |
|
430 |
|
401 |
private boolean isChanged() { |
431 |
private boolean isChanged() { |
402 |
boolean retval = false; |
432 |
boolean retval = false; |
403 |
if (isUpdated) { |
433 |
if (isUpdated) { |
Lines 405-423
Link Here
|
405 |
} |
435 |
} |
406 |
return retval; |
436 |
return retval; |
407 |
} |
437 |
} |
408 |
|
438 |
|
409 |
public JComponent getComponent() { |
439 |
public JComponent getComponent() { |
410 |
if (component == null) { |
440 |
if (component == null) { |
411 |
component = create().getComponent(getMasterLookup()); |
441 |
component = create().getComponent(getMasterLookup()); |
412 |
} |
442 |
} |
413 |
return component; |
443 |
return component; |
414 |
} |
444 |
} |
415 |
|
445 |
|
416 |
private HelpCtx getHelpCtx() { |
446 |
private HelpCtx getHelpCtx() { |
417 |
return create().getHelpCtx(); |
447 |
return create().getHelpCtx(); |
418 |
} |
448 |
} |
419 |
|
449 |
|
420 |
|
450 |
|
421 |
private Lookup getLookup() { |
451 |
private Lookup getLookup() { |
422 |
if (lookup == null) { |
452 |
if (lookup == null) { |
423 |
lookup = create().getLookup(); |
453 |
lookup = create().getLookup(); |
Lines 425-431
Link Here
|
425 |
return lookup; |
455 |
return lookup; |
426 |
} |
456 |
} |
427 |
} |
457 |
} |
428 |
|
458 |
|
429 |
private class MasterLookup extends ProxyLookup { |
459 |
private class MasterLookup extends ProxyLookup { |
430 |
private void setLookups(List<Lookup> lookups) { |
460 |
private void setLookups(List<Lookup> lookups) { |
431 |
setLookups(lookups.toArray(new Lookup[lookups.size()])); |
461 |
setLookups(lookups.toArray(new Lookup[lookups.size()])); |