From ffdb59ab2e028c9cf1076db8c90e741695ea1589 Mon Sep 17 00:00:00 2001 From: Vivian Kong Date: Wed, 16 May 2007 15:12:24 +0000 Subject: [PATCH] fix for bug 187176 -parenthesis incorrectly positioned for Code Style profile dropdown for BIDI --- .../internal/ui/preferences/formatter/ProfileManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/ProfileManager.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/ProfileManager.java index b0dbe1dca1c..543ea70fd0a 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/ProfileManager.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/formatter/ProfileManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2007 IBM Corporation 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 @@ -27,6 +27,7 @@ import org.eclipse.core.runtime.preferences.DefaultScope; import org.eclipse.core.runtime.preferences.IEclipsePreferences; import org.eclipse.core.runtime.preferences.IScopeContext; import org.eclipse.core.runtime.preferences.InstanceScope; +import org.eclipse.osgi.util.TextProcessor; import org.eclipse.cdt.internal.ui.preferences.formatter.IProfileVersioner; import org.osgi.service.prefs.BackingStoreException; @@ -124,7 +125,7 @@ public abstract class ProfileManager extends Observable { private final String fProfileKind; protected BuiltInProfile(String ID, String name, Map settings, int order, int currentVersion, String profileKind) { - fName= name; + fName= TextProcessor.process(name); fID= ID; fSettings= settings; fOrder= order;