From e6725d2e655a8ea150a7c4c949f77106d096143b Mon Sep 17 00:00:00 2001 From: Andras Kerekes Date: Tue, 7 Feb 2017 23:03:18 -0500 Subject: [PATCH] create bundle to contain project selector widget (#1359) * create bundle to contain project selector widget * add bundle to feature.xml, remove unnecessary manifest attributes --- .../feature.xml | 7 ++++ .../.classpath | 7 ++++ .../.project | 34 +++++++++++++++++++ .../org.eclipse.core.resources.prefs | 2 ++ .../.settings/org.eclipse.jdt.core.prefs | 7 ++++ .../.settings/org.eclipse.m2e.core.prefs | 4 +++ .../META-INF/MANIFEST.MF | 14 ++++++++ .../build.properties | 6 ++++ .../pom.xml | 24 +++++++++++++ .../eclipse/projectselector/DummyTest.java | 25 ++++++++++++++ .../.classpath | 7 ++++ .../.project | 34 +++++++++++++++++++ .../org.eclipse.core.resources.prefs | 2 ++ .../.settings/org.eclipse.jdt.core.prefs | 7 ++++ .../.settings/org.eclipse.m2e.core.prefs | 4 +++ .../META-INF/MANIFEST.MF | 9 +++++ .../build.properties | 7 ++++ .../plugin.properties | 2 ++ .../pom.xml | 15 ++++++++ pom.xml | 2 ++ 20 files changed, 219 insertions(+) create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/.classpath create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/.project create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.core.resources.prefs create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.m2e.core.prefs create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/META-INF/MANIFEST.MF create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/build.properties create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/pom.xml create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector.test/src/com/google/cloud/tools/eclipse/projectselector/DummyTest.java create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/.classpath create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/.project create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.core.resources.prefs create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.jdt.core.prefs create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.m2e.core.prefs create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/META-INF/MANIFEST.MF create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/build.properties create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/plugin.properties create mode 100644 plugins/com.google.cloud.tools.eclipse.projectselector/pom.xml diff --git a/features/com.google.cloud.tools.eclipse.suite.e45.feature/feature.xml b/features/com.google.cloud.tools.eclipse.suite.e45.feature/feature.xml index 32e2cb7201..d200f77314 100644 --- a/features/com.google.cloud.tools.eclipse.suite.e45.feature/feature.xml +++ b/features/com.google.cloud.tools.eclipse.suite.e45.feature/feature.xml @@ -135,6 +135,13 @@ version="0.0.0" unpack="false"/> + + + + + + + + diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/.project b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.project new file mode 100644 index 0000000000..47b2d708e7 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.project @@ -0,0 +1,34 @@ + + + com.google.cloud.tools.eclipse.projectselector.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.core.resources.prefs b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..99f26c0203 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.jdt.core.prefs b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.m2e.core.prefs b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000000..f897a7f1cb --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/META-INF/MANIFEST.MF b/plugins/com.google.cloud.tools.eclipse.projectselector.test/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..8a5b07991d --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/META-INF/MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Tests for Cloud Tools for Eclipse Project Selector Widget +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-SymbolicName: com.google.cloud.tools.eclipse.projectselector.test +Bundle-Vendor: Google Inc. +Bundle-Version: 0.1.0.qualifier +Fragment-Host: com.google.cloud.tools.eclipse.projectselector +Require-Bundle: org.hamcrest;bundle-version="1.1.0", + org.junit;bundle-version="4.12.0" +Import-Package: org.mockito;provider=google;version="1.10.19", + org.mockito.runners;provider=google;version="1.10.19", + org.mockito.stubbing;provider=google;version="1.10.19", + org.objenesis;provider=google;version="2.2.0" diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/build.properties b/plugins/com.google.cloud.tools.eclipse.projectselector.test/build.properties new file mode 100644 index 0000000000..5694560ff0 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = target/classes/ +bin.includes = META-INF/,\ + . +javacSource=1.7 +javacTarget=1.7 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/pom.xml b/plugins/com.google.cloud.tools.eclipse.projectselector.test/pom.xml new file mode 100644 index 0000000000..6bc742434b --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/pom.xml @@ -0,0 +1,24 @@ + + + 4.0.0 + + com.google.cloud.tools.eclipse + trunk + 0.1.0-SNAPSHOT + ../../ + + com.google.cloud.tools.eclipse.projectselector.test + 0.1.0-SNAPSHOT + eclipse-test-plugin + + + src + + + org.eclipse.tycho + tycho-surefire-plugin + + + + diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector.test/src/com/google/cloud/tools/eclipse/projectselector/DummyTest.java b/plugins/com.google.cloud.tools.eclipse.projectselector.test/src/com/google/cloud/tools/eclipse/projectselector/DummyTest.java new file mode 100644 index 0000000000..f37554d54e --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector.test/src/com/google/cloud/tools/eclipse/projectselector/DummyTest.java @@ -0,0 +1,25 @@ +/* + * Copyright 2017 Google Inc. + * + * 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 com.google.cloud.tools.eclipse.projectselector; + +import org.junit.Test; + +public class DummyTest { + @Test + public void test() { + } +} diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/.classpath b/plugins/com.google.cloud.tools.eclipse.projectselector/.classpath new file mode 100644 index 0000000000..46cec6ed2a --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/.project b/plugins/com.google.cloud.tools.eclipse.projectselector/.project new file mode 100644 index 0000000000..94326e776e --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/.project @@ -0,0 +1,34 @@ + + + com.google.cloud.tools.eclipse.projectselector + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.core.resources.prefs b/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000000..99f26c0203 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.jdt.core.prefs b/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000000..f42de363af --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.m2e.core.prefs b/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000000..f897a7f1cb --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/META-INF/MANIFEST.MF b/plugins/com.google.cloud.tools.eclipse.projectselector/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..c3dbcf3ec2 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/META-INF/MANIFEST.MF @@ -0,0 +1,9 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: com.google.cloud.tools.eclipse.projectselector;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/build.properties b/plugins/com.google.cloud.tools.eclipse.projectselector/build.properties new file mode 100644 index 0000000000..75f6dc9051 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/build.properties @@ -0,0 +1,7 @@ +source.. = src/ +output.. = target/classes/ +bin.includes = META-INF/,\ + .,\ + plugin.properties +javacSource=1.7 +javacTarget=1.7 diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/plugin.properties b/plugins/com.google.cloud.tools.eclipse.projectselector/plugin.properties new file mode 100644 index 0000000000..dab00cb477 --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/plugin.properties @@ -0,0 +1,2 @@ +pluginName=Cloud Tools for Eclipse Project Selector Widget +providerName=Google Inc. diff --git a/plugins/com.google.cloud.tools.eclipse.projectselector/pom.xml b/plugins/com.google.cloud.tools.eclipse.projectselector/pom.xml new file mode 100644 index 0000000000..86642f595e --- /dev/null +++ b/plugins/com.google.cloud.tools.eclipse.projectselector/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + com.google.cloud.tools.eclipse + trunk + 0.1.0-SNAPSHOT + ../../ + + com.google.cloud.tools.eclipse.projectselector + 0.1.0-SNAPSHOT + eclipse-plugin + + diff --git a/pom.xml b/pom.xml index 86927d69df..0f688fdc50 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,8 @@ plugins/com.google.cloud.tools.eclipse.appengine.ui.test plugins/com.google.cloud.tools.eclipse.preferences plugins/com.google.cloud.tools.eclipse.preferences.test + plugins/com.google.cloud.tools.eclipse.projectselector + plugins/com.google.cloud.tools.eclipse.projectselector.test plugins/com.google.cloud.tools.eclipse.sdk plugins/com.google.cloud.tools.eclipse.sdk.test plugins/com.google.cloud.tools.eclipse.sdk.ui