Author: scabanovich
Date: 2009-01-19 10:24:27 -0500 (Mon, 19 Jan 2009)
New Revision: 13122
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/XMOBasedPreferencesPage.java
Log:
JBIDE-3581
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/XMOBasedPreferencesPage.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/XMOBasedPreferencesPage.java 2009-01-19
15:16:50 UTC (rev 13121)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/XMOBasedPreferencesPage.java 2009-01-19
15:24:27 UTC (rev 13122)
@@ -21,6 +21,7 @@
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.jboss.tools.common.meta.action.XEntityData;
+import org.jboss.tools.common.meta.key.WizardKeys;
import org.jboss.tools.common.model.XModel;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.options.impl.SharableElementImpl;
@@ -52,9 +53,16 @@
support = null;
}
- public String getTitle() {
- return support.getTitle();
- }
+ public String getTitle() {
+ String value = support.getTitle();
+ if(object != null) {
+ String s =
WizardKeys.getVisualListValue(object.getModelEntity().getAttribute("name"),
value);
+ if(s != null) {
+ return s;
+ }
+ }
+ return value;
+ }
public void init(IWorkbench workbench) {
}
Show replies by date