1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

fix for bug 187320 - externalizing 'mb' in Indexer pref page

This commit is contained in:
Vivian Kong 2007-05-17 13:25:13 +00:00
parent 70debe6329
commit 02b69e314d
3 changed files with 7 additions and 2 deletions

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Markus Schorn - initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.ui.dialogs;
@ -81,12 +82,12 @@ public class CacheSizeBlock extends AbstractCOptionPage {
fDBAbsoluteLimit= new IntegerFieldEditor(CCorePreferenceConstants.MAX_INDEX_DB_CACHE_SIZE_MB, DialogsMessages.CacheSizeBlock_absoluteLimit, cacheComp, 4);
fDBAbsoluteLimit.setValidRange(1, 10000);
ControlFactory.createLabel(cacheComp, "mb"); //$NON-NLS-1$
ControlFactory.createLabel(cacheComp, DialogsMessages.CacheSizeBlock_MB);
Label codeReaderLabel= ControlFactory.createLabel(cacheComp, DialogsMessages.CacheSizeBlock_headerFileCache);
fCodeReaderLimit= new IntegerFieldEditor(CodeReaderCache.CODE_READER_BUFFER, DialogsMessages.CacheSizeBlock_absoluteLimit, cacheComp, 4);
fCodeReaderLimit.setValidRange(1, 10000);
ControlFactory.createLabel(cacheComp, "mb"); //$NON-NLS-1$
ControlFactory.createLabel(cacheComp, DialogsMessages.CacheSizeBlock_MB);
gl= (GridLayout) cacheComp.getLayout();
gl.numColumns= 3;

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Markus Schorn - initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.ui.dialogs;
@ -19,6 +20,7 @@ public class DialogsMessages extends NLS {
public static String AbstractIndexerPage_indexUpFront;
public static String AbstractIndexerPage_skipAllReferences;
public static String AbstractIndexerPage_skipTypeReferences;
public static String CacheSizeBlock_MB;
public static String IndexerBlock_fixedBuildConfig;
public static String IndexerStrategyBlock_activeBuildConfig;
public static String IndexerStrategyBlock_autoUpdate;

View file

@ -7,6 +7,7 @@
#
# Contributors:
# Markus Schorn (Wind River Systems)
# IBM Corporation
###############################################################################
PreferenceScopeBlock_enableProjectSettings=Enable project specific settings
PreferenceScopeBlock_storeWithProject=Store settings with project
@ -19,6 +20,7 @@ CacheSizeBlock_cacheLimitGroup=Cache limits
CacheSizeBlock_indexDatabaseCache=Index database cache:
CacheSizeBlock_limitRelativeToMaxHeapSize=Limit relative to the maximum heap size:
CacheSizeBlock_absoluteLimit=Absolute Limit:
CacheSizeBlock_MB=MB
CacheSizeBlock_headerFileCache=Header file cache (used by full indexer and refactoring):
IndexerStrategyBlock_strategyGroup=Indexing strategy
IndexerStrategyBlock_autoUpdate=Automatically update the index