diff options
author | Marc Khouzam | 2012-03-05 21:19:53 +0000 |
---|---|---|
committer | Marc Khouzam | 2012-03-06 14:23:39 +0000 |
commit | f4385f2fd69665b60378b46cf50fee3562c90e5b (patch) | |
tree | 8ced6f44ddc58080a67eedcfdac476aa95c3f9f4 /dsf | |
parent | cd1de04157460d7ab7f97b13f83c5d3266114897 (diff) | |
download | org.eclipse.cdt-f4385f2fd69665b60378b46cf50fee3562c90e5b.tar.gz org.eclipse.cdt-f4385f2fd69665b60378b46cf50fee3562c90e5b.tar.xz org.eclipse.cdt-f4385f2fd69665b60378b46cf50fee3562c90e5b.zip |
Bug 370462: Revert FormattedValueVMUtil to remove previous contribution as it didn't solve the problem.
Diffstat (limited to 'dsf')
-rw-r--r-- | dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java index 3b4e57dffab..18f79bd6881 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java +++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 Wind River Systems and others. + * Copyright (c) 2009, 2010 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,7 +7,6 @@ * * Contributors: * Wind River Systems - initial API and implementation - * Mathias Kunter - Use CDI number format defaults (bug 370462) *******************************************************************************/ package org.eclipse.cdt.dsf.debug.ui.viewmodel.numberformat; @@ -17,9 +16,6 @@ import java.util.Iterator; import java.util.Map; import java.util.TreeMap; -import org.eclipse.cdt.debug.core.CDebugCorePlugin; -import org.eclipse.cdt.debug.core.ICDebugConstants; -import org.eclipse.cdt.debug.core.cdi.ICDIFormat; import org.eclipse.cdt.dsf.concurrent.ConfinedToDsfExecutor; import org.eclipse.cdt.dsf.concurrent.CountingRequestMonitor; import org.eclipse.cdt.dsf.concurrent.IDsfStatusConstants; @@ -36,7 +32,6 @@ import org.eclipse.cdt.dsf.ui.concurrent.ViewerDataRequestMonitor; import org.eclipse.cdt.dsf.ui.viewmodel.datamodel.IDMVMContext; import org.eclipse.cdt.dsf.ui.viewmodel.properties.IPropertiesUpdate; import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; -import org.eclipse.debug.ui.IDebugUIConstants; import com.ibm.icu.text.MessageFormat; @@ -209,33 +204,7 @@ public class FormattedValueVMUtil { if ( prop != null ) { return (String) prop; } - - // Get the CDI number format from the preferences. - int formatID; - if (context.getId() == IDebugUIConstants.ID_VARIABLE_VIEW) { - formatID = CDebugCorePlugin.getDefault().getPluginPreferences().getInt( ICDebugConstants.PREF_DEFAULT_VARIABLE_FORMAT ); - } else if (context.getId() == IDebugUIConstants.ID_EXPRESSION_VIEW) { - formatID = CDebugCorePlugin.getDefault().getPluginPreferences().getInt( ICDebugConstants.PREF_DEFAULT_EXPRESSION_FORMAT ); - } else if (context.getId() == IDebugUIConstants.ID_REGISTER_VIEW) { - formatID = CDebugCorePlugin.getDefault().getPluginPreferences().getInt( ICDebugConstants.PREF_DEFAULT_REGISTER_FORMAT ); - } else { - // Use the default natural format. - formatID = ICDIFormat.NATURAL; - } - - // Map the CDI number format to the DSF number format. - if (formatID == ICDIFormat.HEXADECIMAL) { - return IFormattedValues.HEX_FORMAT; - } else if (formatID == ICDIFormat.DECIMAL) { - return IFormattedValues.DECIMAL_FORMAT; - } else if (formatID == ICDIFormat.OCTAL) { - return IFormattedValues.OCTAL_FORMAT; - } else if (formatID == ICDIFormat.BINARY) { - return IFormattedValues.BINARY_FORMAT; - } else { - // Everything else is mapped to the default natural format. - return IFormattedValues.NATURAL_FORMAT; - } + return IFormattedValues.NATURAL_FORMAT; } |