click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From take...@apache.org
Subject svn commit: r795874 - in /incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences: ClickProjectPropertyPage.java ClickTemplatePreferencePage.java Template.java
Date Mon, 20 Jul 2009 15:20:22 GMT
Author: takezoe
Date: Mon Jul 20 15:20:20 2009
New Revision: 795874

URL: http://svn.apache.org/viewvc?rev=795874&view=rev
Log:
Fixed warnings.

Modified:
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickProjectPropertyPage.java
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickTemplatePreferencePage.java
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/Template.java

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickProjectPropertyPage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickProjectPropertyPage.java?rev=795874&r1=795873&r2=795874&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickProjectPropertyPage.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickProjectPropertyPage.java
Mon Jul 20 15:20:20 2009
@@ -68,7 +68,7 @@
  */
 public class ClickProjectPropertyPage extends PropertyPage {
 	
-	private List models = new ArrayList();
+	private List<VariableModel> models = new ArrayList<VariableModel>();
 	private TableViewer viewer;
 	
 	public ClickProjectPropertyPage(){
@@ -298,7 +298,7 @@
 		public String name = "";
 		public String type = "";
 		
-		public static String serialize(List models){
+		public static String serialize(List<VariableModel> models){
 			StringBuffer sb = new StringBuffer();
 			for(int i=0;i<models.size();i++){
 				VariableModel model = (VariableModel) models.get(i);
@@ -312,8 +312,8 @@
 			return sb.toString();
 		}
 		
-		public static List deserialize(String value){
-			List list = new ArrayList();
+		public static List<VariableModel> deserialize(String value){
+			List<VariableModel> list = new ArrayList<VariableModel>();
 			String[] dim = value.split(",");
 			for(int i=0;i<dim.length;i++){
 				String[] nameAndType = dim[i].split("=");

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickTemplatePreferencePage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickTemplatePreferencePage.java?rev=795874&r1=795873&r2=795874&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickTemplatePreferencePage.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/ClickTemplatePreferencePage.java
Mon Jul 20 15:20:20 2009
@@ -64,7 +64,7 @@
 		IWorkbenchPreferencePage {
 
 	private TableViewer tableViewer;
-	private List tableModel = Template.loadFromPreference();
+	private List<Template> tableModel = Template.loadFromPreference();
 	
 	public ClickTemplatePreferencePage() {
 		super();

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/Template.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/Template.java?rev=795874&r1=795873&r2=795874&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/Template.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/preferences/Template.java
Mon Jul 20 15:20:20 2009
@@ -101,8 +101,8 @@
 		return sb.toString();
 	}
 	
-	public static List loadFromXML(String xml){
-		List list = new ArrayList();
+	public static List<Template> loadFromXML(String xml){
+		List<Template> list = new ArrayList<Template>();
 		try {
 			DOMParser parser = new DOMParser();
 			parser.parse(new InputSource(new StringReader(xml)));
@@ -132,7 +132,7 @@
 	}
 	
 	
-	public static List loadFromPreference(){
+	public static List<Template> loadFromPreference(){
 		IPreferenceStore store = ClickPlugin.getDefault().getPreferenceStore();
 		String xml = store.getString(ClickPlugin.PREF_TEMPLATES);
 		return loadFromXML(xml);
@@ -150,7 +150,7 @@
 		return sb.toString();
 	}
 	
-	public static void saveToPreference(List templates){
+	public static void saveToPreference(List<Template> templates){
 		StringBuffer sb = new StringBuffer();
 		sb.append("<templates>");
 		for(int i=0;i<templates.size();i++){



Mime
View raw message