Author: scabanovich
Date: 2010-04-27 06:50:16 -0400 (Tue, 27 Apr 2010)
New Revision: 21719
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6206
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java 2010-04-27
07:00:54 UTC (rev 21718)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java 2010-04-27
10:50:16 UTC (rev 21719)
@@ -86,7 +86,9 @@
public String getTitle() {
String title = WizardKeys.getHeader(getHelpKey());
if(title != null) return title;
- title = WizardKeys.getHeader(action, getEntityData()[0].getModelEntity()); // no
step id
+ if(getEntityData().length > 0) {
+ title = WizardKeys.getHeader(action, getEntityData()[0].getModelEntity()); // no
step id
+ }
if(title != null) return title;
String n = (action == null) ? "" : "" + action.getDisplayName();
//$NON-NLS-1$ //$NON-NLS-2$
if(n.endsWith("...")) n = n.substring(0, n.length() - 3); //$NON-NLS-1$
@@ -100,7 +102,7 @@
String key1 = key.substring(0, key.length() - 2);
t = WizardKeys.getTitle(key1);
}
- if(t == null) {
+ if(t == null && getEntityData().length > 0) {
t = WizardKeys.getTitle(action, getEntityData()[0].getModelEntity()); // no step
id
}
return t;