]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - eclipse/runtime/org.argeo.eclipse.ui.jcr/src/main/java/org/argeo/eclipse/ui/jcr/editors/AbstractJcrQueryEditor.java
Update license headers
[lgpl/argeo-commons.git] / eclipse / runtime / org.argeo.eclipse.ui.jcr / src / main / java / org / argeo / eclipse / ui / jcr / editors / AbstractJcrQueryEditor.java
index d401538fd68def45555eced18ba9667f5de904c2..f41c7ca80c12460630d0500e43677ff9976a466f 100644 (file)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.argeo.eclipse.ui.jcr.editors;
 
 import java.util.ArrayList;
@@ -46,7 +61,7 @@ public abstract class AbstractJcrQueryEditor extends EditorPart {
        protected String initialQuery;
        protected String initialQueryType;
 
-       /** DEPENDENCY INJECTION */
+       /* DEPENDENCY INJECTION */
        private Session session;
 
        // Widgets
@@ -235,7 +250,7 @@ public abstract class AbstractJcrQueryEditor extends EditorPart {
                public Object[] getElements(Object inputElement) {
 
                        if (inputElement instanceof List)
-                               return ((List) inputElement).toArray();
+                               return ((List<?>) inputElement).toArray();
 
                        // Never reached might be deleted in future release
                        if (!(inputElement instanceof QueryResult))
@@ -332,7 +347,7 @@ public abstract class AbstractJcrQueryEditor extends EditorPart {
                return session;
        }
 
-       /** DEPENDENCY INJECTION */
+       /* DEPENDENCY INJECTION */
        public void setSession(Session session) {
                this.session = session;
        }