Author: dmaliarevich
Date: 2010-10-04 06:45:15 -0400 (Mon, 04 Oct 2010)
New Revision: 25447
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/ExternalizeStringsWizardPage.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
https://jira.jboss.org/browse/JBIDE-7214 , OK button state was updated.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/ExternalizeStringsWizardPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/ExternalizeStringsWizardPage.java 2010-10-04
10:21:14 UTC (rev 25446)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/i18n/ExternalizeStringsWizardPage.java 2010-10-04
10:45:15 UTC (rev 25447)
@@ -711,6 +711,8 @@
* and "key=value" exists.
*/
if ((getErrorMessage() == null)
+ && !Constants.EMPTY.equalsIgnoreCase(propsKey.getText().trim())
+ && !Constants.EMPTY.equalsIgnoreCase(propsValue.getText().trim())
&& ((rbCombo.getSelectionIndex() != -1) || isNewFile())) {
isPageComplete = true;
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2010-10-04
10:21:14 UTC (rev 25446)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2010-10-04
10:45:15 UTC (rev 25447)
@@ -234,6 +234,10 @@
this.visualEditor = visualEditor;
visualEditor.setController(this);
bundleMap.init(sourceEditor);
+ /*
+ * Update the toolbar item state
+ */
+ updateExternalizeStringsToolbarIconState();
pageContext = new VpePageContext(bundleMap, editPart);
domMapping = new VpeDomMapping(pageContext);
sourceBuilder = new VpeSourceDomBuilder(domMapping, this,