/** * Gets the maximum child count that would allow a branch to be automatically * expanded. * @return The limit. */ public int getAutoExpansionChildLimit() { return getPreferences().getInt( CHILD_COUNT_LIMIT_KEY, 50); }
public static int getAutoIDEnd() { Preferences prefs = getPrefs(); return prefs.getInt(AUTO_ID_END, -1); }
/** * Gets the maximum child count that would allow a branch to be automatically * expanded. * @return The limit. */ public int getAutoExpansionChildLimit() { return getPreferences().getInt( CHILD_COUNT_LIMIT_KEY, 50); }
/** * Gets the maximum child count that would allow a branch to be automatically * expanded. * @return The limit. */ public int getAutoExpansionChildLimit() { return getPreferences().getInt( CHILD_COUNT_LIMIT_KEY, 50); }
public static int getAutoIDDigitCount() { Preferences prefs = getPrefs(); return prefs.getInt(AUTO_ID_SIZE, 20); // just about big enough for System.currentTimeMillis() }
public static int getAutoIDStart() { Preferences prefs = getPrefs(); return prefs.getInt(AUTO_ID_START, 0); }
public static int getAutoIDStart() { Preferences prefs = getPrefs(); return prefs.getInt(AUTO_ID_START, 0); }
public int getCounter() { return getPreferences().getInt(DOCUMENT_COUNTER, DOCUMENT_COUNTER_START); }
public static int getAutoIDDigitCount() { Preferences prefs = getPrefs(); return prefs.getInt(AUTO_ID_SIZE, 20); // just about big enough for System.currentTimeMillis() }
/** * Gets the maximum child count that would allow a branch to be automatically * expanded. * @return The limit. */ public int getAutoExpansionChildLimit() { return getPreferences().getInt( CHILD_COUNT_LIMIT_KEY, 50); }
protected void restoreMetrics() { Preferences p = PreferencesManager.getInstance().getApplicationPreferences(getClass().getName()); int w = p.getInt(SIZE_X, DEFAULT_WIDTH); int h = p.getInt(SIZE_Y, DEFAULT_HEIGHT); setSize(w, h); Point defLoc = getDefaultLocation(); int x = p.getInt(LOC_X, defLoc.x); int y = p.getInt(LOC_Y, defLoc.y); setLocation(x, y); setSize(w, h); }
protected void restoreMetrics() { Preferences p = PreferencesManager.getInstance().getApplicationPreferences(getClass().getName()); int w = p.getInt(SIZE_X, 800); int h = p.getInt(SIZE_Y, 600); setSize(w, h); Point defLoc = getDefaultLocation(); int x = p.getInt(LOC_X, defLoc.x); int y = p.getInt(LOC_Y, defLoc.y); setLocation(x, y); setSize(w, h); }
private void load() { Preferences prefs = getPreferences(); useExpressionCompletion = prefs.getBoolean(USE_EXPRESSION_COMPLETION_KEY, true); checkDelay = prefs.getInt(CHECK_DELAY_KEY, 120); }
private void load() { Preferences prefs = getPreferences(); useExpressionCompletion = prefs.getBoolean(USE_EXPRESSION_COMPLETION_KEY, true); checkDelay = prefs.getInt(CHECK_DELAY_KEY, 120); }
private void load() { Preferences prefs = getPreferences(); useExpressionCompletion = prefs.getBoolean(USE_EXPRESSION_COMPLETION_KEY, true); checkDelay = prefs.getInt(CHECK_DELAY_KEY, 120); }
private void load() { Preferences prefs = getPreferences(); useExpressionCompletion = prefs.getBoolean(USE_EXPRESSION_COMPLETION_KEY, true); checkDelay = prefs.getInt(CHECK_DELAY_KEY, 500); }
public void incrementCounter() { Preferences preferences = getPreferences(); int counter = preferences.getInt(DOCUMENT_COUNTER, DOCUMENT_COUNTER_START); counter++; preferences.putInt(DOCUMENT_COUNTER, counter); save(); }
public void incrementCounter() { Preferences preferences = getPreferences(); int counter = preferences.getInt(DOCUMENT_COUNTER, DOCUMENT_COUNTER_START); counter++; preferences.putInt(DOCUMENT_COUNTER, counter); save(); }
public void incrementCounter() { Preferences preferences = getPreferences(); int counter = preferences.getInt(DOCUMENT_COUNTER, DOCUMENT_COUNTER_START); counter++; preferences.putInt(DOCUMENT_COUNTER, counter); save(); }
public ElkPreferences load() { Preferences prefs = getPrefs(); numberOfWorkers = prefs.getInt(NUMBER_OF_WORKERS_KEY, defaultNumberOfWorkers_); incrementalMode = prefs.getBoolean(INCREMENTAL_MODE_KEY, defaultIncrementalMode_); autoSynchronization = prefs.getBoolean(AUTO_SYNCRHONIZATION_KEY, defaultAutoSynchronization_); inlineInferences = prefs.getBoolean(INLINE_INFERENCES_KEY, defaultInlineInferences_); return this; }