Author: scabanovich
Date: 2010-04-27 08:02:56 -0400 (Tue, 27 Apr 2010)
New Revision: 21723
Modified:
branches/jbosstools-3.1.x/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:
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java
===================================================================
---
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java 2010-04-27
11:37:35 UTC (rev 21722)
+++
branches/jbosstools-3.1.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java 2010-04-27
12:02:56 UTC (rev 21723)
@@ -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;