You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by ta...@apache.org on 2009/08/01 14:54:52 UTC
svn commit: r799855 - in
/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse:
ClickPlugin.properties ClickPlugin_ja.properties
ui/wizard/ClickFacetWizardPage.java
Author: takezoe
Date: Sat Aug 1 12:54:51 2009
New Revision: 799855
URL: http://svn.apache.org/viewvc?rev=799855&view=rev
Log:
Added required check of Root Package in the ClickFacetWizardPage.
Modified:
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties?rev=799855&r1=799854&r2=799855&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties Sat Aug 1 12:54:51 2009
@@ -96,6 +96,7 @@
wizard.facet.useCayenne=Use Apache Cayenne
wizard.facet.usePerformanceFilter=Use PerformanceFilter
wizard.facet.rootPackage=Root Package\uff1a
+wizard.facet.error.rootPackage.empty=Root Package is empty.
# for preference pages
preferences.template=Wizard Template
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties?rev=799855&r1=799854&r2=799855&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties Sat Aug 1 12:54:51 2009
@@ -96,6 +96,7 @@
wizard.facet.useCayenne=Apache Cayenne\u3092\u4f7f\u7528\u3059\u308b
wizard.facet.usePerformanceFilter=PerformanceFilter\u3092\u4f7f\u7528\u3059\u308b
wizard.facet.rootPackage=\u30eb\u30fc\u30c8\u30d1\u30c3\u30b1\u30fc\u30b8\uff1a
+wizard.facet.error.rootPackage.empty=\u30eb\u30fc\u30c8\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002
# for preference pages
preferences.template=\u30a6\u30a3\u30b6\u30fc\u30c9\u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java?rev=799855&r1=799854&r2=799855&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java Sat Aug 1 12:54:51 2009
@@ -22,6 +22,8 @@
import org.apache.click.eclipse.ClickUtils;
import org.apache.click.eclipse.core.facet.ClickFacetInstallDataModelProvider;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
@@ -60,6 +62,11 @@
ClickUtils.createLabel(composite, ClickPlugin.getString("wizard.facet.rootPackage"));
rootPackage = new Text(composite, SWT.BORDER);
rootPackage.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ rootPackage.addModifyListener(new ModifyListener() {
+ public void modifyText(ModifyEvent e) {
+ doValidate();
+ }
+ });
usePerformanceFilter = new Button(composite, SWT.CHECK);
usePerformanceFilter.setText(ClickPlugin.getString("wizard.facet.usePerformanceFilter"));
@@ -74,6 +81,17 @@
useCayenne.setLayoutData(ClickUtils.createGridData(2, GridData.FILL_HORIZONTAL));
setControl(composite);
+ doValidate();
+ }
+
+ private void doValidate(){
+ if(rootPackage.getText().length() == 0){
+ setErrorMessage(ClickPlugin.getString("wizard.facet.error.rootPackage.empty"));
+ setPageComplete(false);
+ } else {
+ setErrorMessage(null);
+ setPageComplete(true);
+ }
}
public void transferStateToConfig() {