click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From take...@apache.org
Subject svn commit: r795925 - in /incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms: AbstractMasterDetailEditor.java ClickTreeContentProvider.java ClickTreeLabelProvider.java
Date Mon, 20 Jul 2009 17:15:13 GMT
Author: takezoe
Date: Mon Jul 20 17:15:12 2009
New Revision: 795925

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

Modified:
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/AbstractMasterDetailEditor.java
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeContentProvider.java
    incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeLabelProvider.java

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/AbstractMasterDetailEditor.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/AbstractMasterDetailEditor.java?rev=795925&r1=795924&r2=795925&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/AbstractMasterDetailEditor.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/AbstractMasterDetailEditor.java
Mon Jul 20 17:15:12 2009
@@ -89,7 +89,7 @@
 		tree.setLayoutData(new GridData(GridData.FILL_BOTH));
 		headerSection.setClient(tree);
 		
-		List acceptElements = new ArrayList();
+		List<String> acceptElements = new ArrayList<String>();
 		String[] acceptElementNames = getAcceptElementNames();
 		for(int i=0;i<acceptElementNames.length;i++){
 			acceptElements.add(acceptElementNames[i]);
@@ -171,6 +171,7 @@
 		form.setFocus();
 	}
 	
+	@SuppressWarnings("unchecked")
 	public Object getAdapter(Class adapter) {
 		if(adapter.equals(TreeViewer.class)){
 			return this.viewer;

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeContentProvider.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeContentProvider.java?rev=795925&r1=795924&r2=795925&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeContentProvider.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeContentProvider.java
Mon Jul 20 17:15:12 2009
@@ -30,14 +30,14 @@
  */
 public class ClickTreeContentProvider extends JFaceNodeContentProvider {
 	
-	private List accept;
+	private List<String> accept;
 	
-	public ClickTreeContentProvider(List accept){
+	public ClickTreeContentProvider(List<String> accept){
 		this.accept = accept;
 	}
 	
 	public Object[] getChildren(Object object) {
-		List result = new ArrayList();
+		List<Object> result = new ArrayList<Object>();
 		Object[] children =  super.getChildren(object);
 		for(int i=0;i<children.length;i++){
 			if(children[i] instanceof IDOMElement){

Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeLabelProvider.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeLabelProvider.java?rev=795925&r1=795924&r2=795925&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeLabelProvider.java
(original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse/src/org/apache/click/eclipse/ui/editor/forms/ClickTreeLabelProvider.java
Mon Jul 20 17:15:12 2009
@@ -37,7 +37,7 @@
  */
 public class ClickTreeLabelProvider extends JFaceNodeLabelProvider {
 
-	private Map images = new HashMap();
+	private Map<String, Image> images = new HashMap<String, Image>();
 
 	public ClickTreeLabelProvider(){
 		images.put(ClickPlugin.TAG_CLICK_APP,
@@ -67,8 +67,8 @@
 	}
 
 	public void dispose(){
-		for(Iterator ite = images.values().iterator(); ite.hasNext();){
-			Image image = (Image)ite.next();
+		for(Iterator<Image> ite = images.values().iterator(); ite.hasNext();){
+			Image image = ite.next();
 			image.dispose();
 		}
 		super.dispose();



Mime
View raw message