Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 7 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ as described below.
The Eclipse version used for the target platform is affected by the
`eclipse.target` property, described below.

You must regenerate the target platform and reconfigure the IDE's
You must regenerate the target platform and reload the IDE's
target platform whenever dependencies are updated.

### Steps to import into the Eclipse IDE
Expand Down Expand Up @@ -177,28 +177,12 @@ target platform whenever dependencies are updated.

0. As described above, you must first build the target platform with Maven:

`$ mvn -Pide-target-platform package`
`$ (cd eclipse; mvn package)`

1. Open the `Preferences` dialog, go to `Plug-in Development` > `Target Platform`.
1. Open the `ide-target-platform/gcp-ide-target-platform.target` file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this path in the project explorer?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should have mentioned this: I renamed the eclipse/ide-target-platform project to just ide-target-platform. The Maven artifactID was previously ide-target-platform.repo and the .project had maven-dependencies. You may need to delete the maven-dependencies and/or ide-target-platform.repo projects and re-import them as existing projects.


2. Click `Add...` > `Nothing` to create a new Target Platform.
2. Click the _Set as target platform_ link in the upper-right.

3. Name it `GCP IDE Target Platform`.

4. Select `Add` > `Software Site`.

5. Select the `Add...` button (found beside the `Work with:` field) and then select `Local`
to find a local repository. Navigate to `.../eclipse/ide-target-platform/target/repository`,
and click `OK`.

6. Once the main content populates, check the `Uncategorized` item to pull in all items. Click `Finish`.

7. Click `Finish` to complete the new target platform definition.

8. Select your new target platform (instead of Running Platform) in the `Target Platform` preferences.

9. Click `OK` to load this new target platform.

10. Eclipse will load the target.

3. Import the projects
Expand Down Expand Up @@ -312,12 +296,9 @@ Both the `.tpd` and `.target` files should be committed.
The IDE Target Platform needs to be rebuilt at the command line
and reimported into Eclipse when dependency versions are changed:

1. `mvn -Pide-target-platform package`
2. Preferences > Plug-in Development > Target Platforms
3. Select your target ("GCP IDE Target Platform") and click Edit
4. Select the location and click Reload to cause any cached info to be discarded.
5. Click Edit and then select Uncategorized.
6. Finish / OK until done.
1. `(cd eclipse; mvn package)`
2. Open `ide-target-platform/gcp-ide-target-platform.target`.
3. Click the _Reload Target Platform_ link in the top-right.

### Updating the Eclipse IDE Target Platforms

Expand Down
2 changes: 1 addition & 1 deletion build/verify-feature-completeness/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<dependencies>
<dependency>
<groupId>com.google.cloud.tools.eclipse</groupId>
<artifactId>ide-target-platform.repo</artifactId>
<artifactId>ide-target-platform</artifactId>
<version>0.1.0-SNAPSHOT</version>
<type>eclipse-repository</type>
</dependency>
Expand Down
2 changes: 1 addition & 1 deletion eclipse/ide-target-platform/.project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>maven-dependencies</name>
<name>ide-target-platform</name>
<comment></comment>
<projects>
</projects>
Expand Down
6 changes: 6 additions & 0 deletions eclipse/ide-target-platform/gcp-ide-target-platform.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="GCP (ide-target-platform)" sequenceNumber="10">
<locations>
<location path="${project_loc:/ide-target-platform}/target/repository" type="Profile"/>
</locations>
</target>
2 changes: 1 addition & 1 deletion eclipse/ide-target-platform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>0.1.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>
<artifactId>ide-target-platform.repo</artifactId>
<artifactId>ide-target-platform</artifactId>
<version>0.1.0-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>

Expand Down