private int getImportNumberThreshold(Key key) { String thresholdStr= getValue(key); try { int threshold= Integer.parseInt(thresholdStr); if (threshold < 0) { threshold= Integer.MAX_VALUE; } return threshold; } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
private int getImportNumberThreshold(Key key) { String thresholdStr= getValue(key); try { int threshold= Integer.parseInt(thresholdStr); if (threshold < 0) { threshold= Integer.MAX_VALUE; } return threshold; } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
private int getImportNumberThreshold(Key key) { String thresholdStr= getValue(key); try { int threshold= Integer.parseInt(thresholdStr); if (threshold < 0) { threshold= Integer.MAX_VALUE; } return threshold; } catch (NumberFormatException e) { return Integer.MAX_VALUE; } }
private ImportOrderEntry[] getImportOrderPreference() { String str= getValue(PREF_IMPORTORDER); if (str != null) { return unpackOrderList(str); } return new ImportOrderEntry[0]; }
private ImportOrderEntry[] getImportOrderPreference() { String str= getValue(PREF_IMPORTORDER); if (str != null) { return unpackOrderList(str); } return new ImportOrderEntry[0]; }
private ImportOrderEntry[] getImportOrderPreference() { String str= getValue(PREF_IMPORTORDER); if (str != null) { return unpackOrderList(str); } return new ImportOrderEntry[0]; }
@Override protected void updateControls() { ImportOrderEntry[] importOrder= getImportOrderPreference(); int threshold= getImportNumberThreshold(PREF_ONDEMANDTHRESHOLD); int staticThreshold= getImportNumberThreshold(PREF_STATICONDEMANDTHRESHOLD); boolean ignoreLowerCase= Boolean.valueOf(getValue(PREF_IGNORELOWERCASE)).booleanValue(); fOrderListField.removeAllElements(); for (int i= 0; i < importOrder.length; i++) { fOrderListField.addElement(importOrder[i]); } fThresholdField.setText(String.valueOf(threshold)); fStaticThresholdField.setText(String.valueOf(staticThreshold)); fIgnoreLowerCaseTypesField.setSelection(ignoreLowerCase); }
protected void updateControls() { ImportOrderEntry[] importOrder= getImportOrderPreference(); int threshold= getImportNumberThreshold(PREF_ONDEMANDTHRESHOLD); int staticThreshold= getImportNumberThreshold(PREF_STATICONDEMANDTHRESHOLD); boolean ignoreLowerCase= Boolean.valueOf(getValue(PREF_IGNORELOWERCASE)).booleanValue(); fOrderListField.removeAllElements(); for (int i= 0; i < importOrder.length; i++) { fOrderListField.addElement(importOrder[i]); } fThresholdField.setText(String.valueOf(threshold)); fStaticThresholdField.setText(String.valueOf(staticThreshold)); fIgnoreLowerCaseTypesField.setSelection(ignoreLowerCase); }
@Override protected void updateControls() { ImportOrderEntry[] importOrder= getImportOrderPreference(); int threshold= getImportNumberThreshold(PREF_ONDEMANDTHRESHOLD); int staticThreshold= getImportNumberThreshold(PREF_STATICONDEMANDTHRESHOLD); boolean ignoreLowerCase= Boolean.valueOf(getValue(PREF_IGNORELOWERCASE)).booleanValue(); fOrderListField.removeAllElements(); for (int i= 0; i < importOrder.length; i++) { fOrderListField.addElement(importOrder[i]); } fThresholdField.setText(String.valueOf(threshold)); fStaticThresholdField.setText(String.valueOf(staticThreshold)); fIgnoreLowerCaseTypesField.setSelection(ignoreLowerCase); }