Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsandonato2010-08-23 17:57:03 +0000
committernsandonato2010-08-23 17:57:03 +0000
commit9335073182ef8b8ac33eb491c3c7a9fcad4da418 (patch)
tree0662f4f98acede7dda67809fef8fdce46d15d55b /bundles/org.eclipse.wst.css.ui
parent32acf178899f9c664f50d72a4fc0c04ef96f1825 (diff)
downloadwebtools.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.java5
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) {

Back to the top