Skip to content

Commit 3ac6297

Browse files
authored
Add main Wiki link to the Overview section in the Welcome intro page (#1052)
* Add CT4E landing page link to Welcome > Overview * Update project configs * Put .welcome module in pom.xml * Add .welcome.test bundle and PluginXmlTest * Add a GCP icon to the link
1 parent a0dbcc2 commit 3ac6297

File tree

22 files changed

+238
-0
lines changed

22 files changed

+238
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="target/classes"/>
7+
</classpath>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.google.cloud.tools.eclipse.welcome.test</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.m2e.core.maven2Builder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
31+
<nature>org.eclipse.pde.PluginNature</nature>
32+
<nature>org.eclipse.jdt.core.javanature</nature>
33+
</natures>
34+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4+
org.eclipse.jdt.core.compiler.compliance=1.7
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.7
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Tests for Cloud Tools for Eclipse Welcome Page Contribution
4+
Bundle-SymbolicName: com.google.cloud.tools.eclipse.welcome.test
5+
Bundle-Version: 0.1.0.qualifier
6+
Bundle-Vendor: Google Inc.
7+
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
8+
Fragment-Host: com.google.cloud.tools.eclipse.welcome
9+
Require-Bundle: org.junit;bundle-version="4.12.0"
10+
Import-Package: com.google.cloud.tools.eclipse.test.util,
11+
junit.framework;version="4.12.0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source.. = src/
2+
output.. = target/classes/
3+
bin.includes = META-INF/,\
4+
.
5+
javacSource=1.7
6+
javacTarget=1.7
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>com.google.cloud.tools.eclipse</groupId>
7+
<artifactId>trunk</artifactId>
8+
<version>0.1.0-SNAPSHOT</version>
9+
<relativePath>../../</relativePath>
10+
</parent>
11+
<artifactId>com.google.cloud.tools.eclipse.welcome.test</artifactId>
12+
<version>0.1.0-SNAPSHOT</version>
13+
<packaging>eclipse-plugin</packaging>
14+
15+
</project>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2016 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.tools.eclipse.welcome.test;
18+
19+
import static org.junit.Assert.assertEquals;
20+
21+
import com.google.cloud.tools.eclipse.test.util.BasePluginXmlTest;
22+
import org.junit.Test;
23+
import org.w3c.dom.Element;
24+
import org.w3c.dom.NodeList;
25+
26+
public class PluginXmlTest extends BasePluginXmlTest {
27+
28+
@Test
29+
public void testExtensionPoint() {
30+
NodeList extensions = getDoc().getElementsByTagName("extension");
31+
assertEquals(1, extensions.getLength());
32+
Element extension = (Element) extensions.item(0);
33+
assertEquals("org.eclipse.ui.intro.configExtension", extension.getAttribute("point"));
34+
35+
NodeList configExtensions = extension.getElementsByTagName("configExtension");
36+
assertEquals(1, configExtensions.getLength());
37+
Element configExtension = (Element) configExtensions.item(0);
38+
assertEquals("intro/cloud-tools-for-eclipse.xml", configExtension.getAttribute("content"));
39+
assertEquals("org.eclipse.ui.intro.universalConfig", configExtension.getAttribute("configId"));
40+
}
41+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry kind="output" path="target/classes"/>
7+
</classpath>

0 commit comments

Comments
 (0)