Author: scabanovich
Date: 2008-11-28 12:19:43 -0500 (Fri, 28 Nov 2008)
New Revision: 12136
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java
Log:
JBIDE-2773
It is not good just copy subtitle to message area.
Meaningful message can be set with key '%action-key-id%.Message' along with
'%action-key-id%.Title'.
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java 2008-11-28
17:13:25 UTC (rev 12135)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/standard/DefaultStandardWizard.java 2008-11-28
17:19:43 UTC (rev 12136)
@@ -113,14 +113,13 @@
String message = validator.getErrorMessage();
isFinishEnabled = validator.isCommandEnabled(SpecialWizardSupport.FINISH);
DefaultStandardStep wizardStep = steps[support.getStepId()];
+ String m = support.getMessage(support.getStepId());
if(wizardStep != null && !wizardStep.isDataChanged()) {
- String m = support.getMessage(support.getStepId());
if (m == null || m.length() == 0) m = message;
wizardStep.setDescription(m);
- wizardStep.setMessage(support.getSubtitle());
wizardStep.setErrorMessage(null);
} else {
- wizardStep.setDescription(null);
+ wizardStep.setDescription(m);
if(message == null && !isFinishEnabled) {
message = support.getMessage(support.getStepId());
if(message != null && message.trim().length() == 0) {