click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From take...@apache.org
Subject svn commit: r1086175 - in /click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse: ClickPlugin.properties ClickPlugin_ja.properties ui/wizard/ClickFacetWizardPage.java
Date Mon, 28 Mar 2011 10:28:00 GMT
Author: takezoe
Date: Mon Mar 28 10:28:00 2011
New Revision: 1086175

URL: http://svn.apache.org/viewvc?rev=1086175&view=rev
Log:
The root package of page classes does not required in Click 2.3.0.

Modified:
    click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties
    click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties
    click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java

Modified: click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties
URL: http://svn.apache.org/viewvc/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties?rev=1086175&r1=1086174&r2=1086175&view=diff
==============================================================================
--- click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties
(original)
+++ click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin.properties
Mon Mar 28 10:28:00 2011
@@ -99,7 +99,7 @@ wizard.facet.useSpring=Use Spring Framew
 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.
+#wizard.facet.error.rootPackage.empty=Root Package is empty.
 
 # for preference pages
 preferences.template=Wizard Template

Modified: click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties
URL: http://svn.apache.org/viewvc/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties?rev=1086175&r1=1086174&r2=1086175&view=diff
==============================================================================
--- click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties
(original)
+++ click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ClickPlugin_ja.properties
Mon Mar 28 10:28:00 2011
@@ -99,7 +99,7 @@ wizard.facet.useSpring=Spring Framework\
 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
+#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: click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java
URL: http://svn.apache.org/viewvc/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java?rev=1086175&r1=1086174&r2=1086175&view=diff
==============================================================================
--- click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java
(original)
+++ click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/wizard/ClickFacetWizardPage.java
Mon Mar 28 10:28:00 2011
@@ -22,8 +22,6 @@ import org.apache.click.eclipse.ClickPlu
 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;
@@ -33,18 +31,18 @@ import org.eclipse.wst.common.frameworks
 import org.eclipse.wst.common.project.facet.ui.AbstractFacetWizardPage;
 
 /**
- * 
+ *
  * @author Naoki Takezoe
  * @since 2.0.0
  */
 public class ClickFacetWizardPage extends AbstractFacetWizardPage {
-	
+
 	private IDataModel model;
 	private Text rootPackage;
 	private Button useSpring;
 	private Button useCayenne;
 	private Button usePerformanceFilter;
-	
+
 	public ClickFacetWizardPage() {
 		super("ClickFacetWizardPage");
 		setTitle(ClickPlugin.getString("wizard.facet.title"));
@@ -58,50 +56,50 @@ public class ClickFacetWizardPage extend
 	public void createControl(Composite parent) {
 		Composite composite = new Composite(parent, SWT.NULL);
 		composite.setLayout(new GridLayout(2, false));
-		
+
 		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();
-			}
-		});
-		
+//		rootPackage.addModifyListener(new ModifyListener() {
+//			public void modifyText(ModifyEvent e) {
+//				doValidate();
+//			}
+//		});
+
 		usePerformanceFilter = new Button(composite, SWT.CHECK);
 		usePerformanceFilter.setText(ClickPlugin.getString("wizard.facet.usePerformanceFilter"));
 		usePerformanceFilter.setLayoutData(ClickUtils.createGridData(2, GridData.FILL_HORIZONTAL));
-		
+
 		useSpring = new Button(composite, SWT.CHECK);
 		useSpring.setText(ClickPlugin.getString("wizard.facet.useSpring"));
 		useSpring.setLayoutData(ClickUtils.createGridData(2, GridData.FILL_HORIZONTAL));
-		
+
 		useCayenne = new Button(composite, SWT.CHECK);
 		useCayenne.setText(ClickPlugin.getString("wizard.facet.useCayenne"));
 		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);
-		}
+//		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() {
-		model.setBooleanProperty(ClickFacetInstallDataModelProvider.USE_PERFORMANCE_FILTER, 
+		model.setBooleanProperty(ClickFacetInstallDataModelProvider.USE_PERFORMANCE_FILTER,
 				usePerformanceFilter.getSelection());
-		model.setBooleanProperty(ClickFacetInstallDataModelProvider.USE_SPRING, 
+		model.setBooleanProperty(ClickFacetInstallDataModelProvider.USE_SPRING,
 				useSpring.getSelection());
-		model.setBooleanProperty(ClickFacetInstallDataModelProvider.USE_CAYENNE, 
+		model.setBooleanProperty(ClickFacetInstallDataModelProvider.USE_CAYENNE,
 				useCayenne.getSelection());
-		model.setStringProperty(ClickFacetInstallDataModelProvider.ROOT_PACKAGE, 
+		model.setStringProperty(ClickFacetInstallDataModelProvider.ROOT_PACKAGE,
 				rootPackage.getText());
 	}
 }



Mime
View raw message