diff options
author | nsandonato | 2010-08-23 17:57:03 +0000 |
---|---|---|
committer | nsandonato | 2010-08-23 17:57:03 +0000 |
commit | 9335073182ef8b8ac33eb491c3c7a9fcad4da418 (patch) | |
tree | 0662f4f98acede7dda67809fef8fdce46d15d55b /bundles/org.eclipse.wst.css.ui | |
parent | 32acf178899f9c664f50d72a4fc0c04ef96f1825 (diff) | |
download | webtools.sourceediting-9335073182ef8b8ac33eb491c3c7a9fcad4da418.tar.gz webtools.sourceediting-9335073182ef8b8ac33eb491c3c7a9fcad4da418.tar.xz webtools.sourceediting-9335073182ef8b8ac33eb491c3c7a9fcad4da418.zip |
[93039] [properties] properties view overrides extra text in property value
Diffstat (limited to 'bundles/org.eclipse.wst.css.ui')
-rw-r--r-- | bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/properties/CSSPropertySource.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/properties/CSSPropertySource.java b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/properties/CSSPropertySource.java index 5060e8bd41..7bcb2fb64f 100644 --- a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/properties/CSSPropertySource.java +++ b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/properties/CSSPropertySource.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2008 IBM Corporation and others. + * Copyright (c) 2004, 2010 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 @@ -294,7 +294,8 @@ public class CSSPropertySource implements IPropertySource, IPropertySourceExtens declaration.removeProperty(nameString); } else { - declaration.setProperty(nameString, valueString, ""); //$NON-NLS-1$ + String priority = declaration.getPropertyPriority(nameString); + declaration.setProperty(nameString, valueString, (priority == null || priority.length() == 0) ? "" : " " + priority); //$NON-NLS-1$ //$NON-NLS-2$ } } catch (Exception e) { |