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:
authornitind2008-03-12 22:35:58 +0000
committernitind2008-03-12 22:35:58 +0000
commit1ef1dcb6b75059317555c2d73f4c2af9462e1f09 (patch)
treea252aa1f206d2d999fd8a7e6cb7305b7356a8cc5 /bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal
parent04d3b7118dc58a6d2da78038e4f427a760731243 (diff)
downloadwebtools.sourceediting-1ef1dcb6b75059317555c2d73f4c2af9462e1f09.tar.gz
webtools.sourceediting-1ef1dcb6b75059317555c2d73f4c2af9462e1f09.tar.xz
webtools.sourceediting-1ef1dcb6b75059317555c2d73f4c2af9462e1f09.zip
[155800] Outline View->Add Attribute shows description instead of attribute name for JSF tags on JSP page (copyright update)
Diffstat (limited to 'bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal')
-rw-r--r--bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/AbstractNodeActionManager.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/AbstractNodeActionManager.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/AbstractNodeActionManager.java
index ce58cfebe3..028d579f80 100644
--- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/AbstractNodeActionManager.java
+++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/AbstractNodeActionManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2001, 2006 IBM Corporation and others.
+ * Copyright (c) 2001, 2008 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
@@ -562,11 +562,12 @@ public abstract class AbstractNodeActionManager extends BaseNodeActionManager {
public String getLabel(Node parent, CMNode cmnode) {
String result = "?" + cmnode + "?"; //$NON-NLS-1$ //$NON-NLS-2$
if (cmnode != null) {
- result = (String) cmnode.getProperty("name"); //$NON-NLS-1$
+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=155800
+ result = cmnode.getNodeName();
if(result == null) {
result = (String) cmnode.getProperty("description"); //$NON-NLS-1$
}
- if (result == null) {
+ if (result == null || result.length() == 0) {
if (cmnode.getNodeType() == CMNode.GROUP) {
CMDescriptionBuilder descriptionBuilder = new CMDescriptionBuilder();
result = descriptionBuilder.buildDescription(cmnode);

Back to the top