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 2010/01/18 13:06:03 UTC
svn commit: r900358 - in
/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne: ./
src/org/apache/click/eclipse/cayenne/
src/org/apache/click/eclipse/cayenne/wizard/
Author: takezoe
Date: Mon Jan 18 12:06:02 2010
New Revision: 900358
URL: http://svn.apache.org/viewvc?rev=900358&view=rev
Log:
[CLKE-36]Add Apache Licence 2.0 notice.
Modified:
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/build.properties
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerInitializer.java
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerPage.java
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages.properties
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages_ja.properties
incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/wizard/cayenne.xml
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/build.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/build.properties?rev=900358&r1=900357&r2=900358&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/build.properties (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/build.properties Mon Jan 18 12:06:02 2010
@@ -1,3 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerInitializer.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerInitializer.java?rev=900358&r1=900357&r2=900358&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerInitializer.java (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerInitializer.java Mon Jan 18 12:06:02 2010
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.click.eclipse.cayenne;
import java.io.File;
@@ -17,47 +35,47 @@
/**
* Provides classpath container <tt>CAYENNE_LIBS</tt>.
- *
+ *
* @author Naoki Takezoe
*/
public class CayenneClasspathContainerInitializer extends ClasspathContainerInitializer {
-
+
public static final String CONTAINER_ID = "org.apache.click.eclipse.cayenne.CAYENNE_LIBS";
-
+
public void initialize(final IPath containerPath, IJavaProject project) throws CoreException {
-
+
final IClasspathEntry[] entries = new IClasspathEntry[]{
getLibraryEntry("cayenne/cayenne-server-3.0M6.jar"),
getLibraryEntry("cayenne/ashwood-2.0.jar"),
getLibraryEntry("cayenne/commons-collections-3.1.jar"),
getLibraryEntry("cayenne/commons-logging-1.1.jar"),
};
-
+
IClasspathContainer container = new IClasspathContainer() {
-
+
public IPath getPath() {
return containerPath;
}
-
+
public int getKind() {
return IClasspathContainer.K_APPLICATION;
}
-
+
public String getDescription() {
return "Cayenne Libraries";
}
-
+
public IClasspathEntry[] getClasspathEntries() {
return entries;
}
};
-
- JavaCore.setClasspathContainer(containerPath,
- new IJavaProject[]{project},
- new IClasspathContainer[]{container},
+
+ JavaCore.setClasspathContainer(containerPath,
+ new IJavaProject[]{project},
+ new IClasspathContainer[]{container},
null);
}
-
+
private static IClasspathEntry getLibraryEntry(String path){
IPath bundleBase = getBundleLocation();
if(bundleBase != null){
@@ -67,13 +85,13 @@
return null;
}
-
+
private static IPath getBundleLocation(){
Bundle bundle = CayennePlugin.getDefault().getBundle();
if(bundle == null){
return null;
}
-
+
URL local = null;
try {
local = FileLocator.toFileURL(bundle.getEntry("/"));
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerPage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerPage.java?rev=900358&r1=900357&r2=900358&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerPage.java (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/CayenneClasspathContainerPage.java Mon Jan 18 12:06:02 2010
@@ -1,3 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.click.eclipse.cayenne;
import org.eclipse.core.runtime.Path;
@@ -10,13 +28,13 @@
import org.eclipse.swt.widgets.Composite;
/**
- *
+ *
* @author Naoki Takezoe
*/
public class CayenneClasspathContainerPage extends WizardPage implements IClasspathContainerPage {
-
+
private IClasspathEntry containerEntryResult;
-
+
public CayenneClasspathContainerPage() {
super("CayenneClasspathContainerPage");
setTitle("Cayenne Libraries");
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages.properties?rev=900358&r1=900357&r2=900358&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages.properties (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages.properties Mon Jan 18 12:06:02 2010
@@ -1 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
wizard.classpathContainer.description=Add Cayenne libraries to classpath.
\ No newline at end of file
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages_ja.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages_ja.properties?rev=900358&r1=900357&r2=900358&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages_ja.properties (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/messages_ja.properties Mon Jan 18 12:06:02 2010
@@ -1 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+
wizard.classpathContainer.description=Cayenne\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30af\u30e9\u30b9\u30d1\u30b9\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002
\ No newline at end of file
Modified: incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/wizard/cayenne.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/wizard/cayenne.xml?rev=900358&r1=900357&r2=900358&view=diff
==============================================================================
--- incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/wizard/cayenne.xml (original)
+++ incubator/click/trunk/tools/eclipse/org.apache.click.eclipse.cayenne/src/org/apache/click/eclipse/cayenne/wizard/cayenne.xml Mon Jan 18 12:06:02 2010
@@ -1,3 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
<domains project-version="3.0">
</domains>