Skip to content

Commit 4f006c1

Browse files
docs: 优化 README,补充项目定位说明 (#53)
* Plan README improvements Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rcp-example/sessions/2ab01973-602f-43a9-b30a-4178e933f588 Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> * Improve README overview Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> * Refine README project overview Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rcp-example/sessions/2ab01973-602f-43a9-b30a-4178e933f588 Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> * Polish README wording Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rcp-example/sessions/2ab01973-602f-43a9-b30a-4178e933f588 Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> * Clarify README examples and requirements Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rcp-example/sessions/2ab01973-602f-43a9-b30a-4178e933f588 Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> * Finalize README requirement wording Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rcp-example/sessions/2ab01973-602f-43a9-b30a-4178e933f588 Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> * Convert README to English Agent-Logs-Url: https://github.com/tlcsdm/eclipse-rcp-example/sessions/c93f5464-2a44-47f4-b2c1-f588f31a946f Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: unknowIfGuestInDream <57802425+unknowIfGuestInDream@users.noreply.github.com>
1 parent 3e45961 commit 4f006c1

1 file changed

Lines changed: 62 additions & 4 deletions

File tree

README.md

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,74 @@
1-
## Build
1+
# Eclipse RCP Example
2+
3+
This repository is a sample project built with **Eclipse RCP + Tycho + Maven**. It shows how to build, package, and distribute an Eclipse Rich Client application.
4+
5+
If you want a quick summary of what this project is, think of it as:
6+
7+
- a runnable **Eclipse RCP desktop application example**
8+
- a separately buildable **headless command-line application example**
9+
- a complete project skeleton with **welcome page / ViewPart / update site / SWTBot tests**
10+
11+
## What is included
12+
13+
### 1. RCP desktop application
14+
The main application is located in `bundles/com.tlcsdm.eclipse.rcp.example.rcp` and includes:
15+
16+
- Eclipse RCP product definitions
17+
- a custom perspective
18+
- a sample view: `Eclipse Example Configuration`
19+
- a simple interactive UI (label + button)
20+
21+
### 2. Headless application
22+
`bundles/com.tlcsdm.eclipse.rcp.example.headless` provides a command-line example without a UI. It demonstrates:
23+
24+
- command-line argument handling (for example `-help`, `-hello`, and `-output`)
25+
- independently executed tasks such as batch or generation jobs started from the command line
26+
- file output capabilities that can create output files or directories from arguments
27+
28+
### 3. Intro / Welcome page
29+
`bundles/com.tlcsdm.eclipse.rcp.example.intro` contains the welcome page configuration and can be used as a reference for customizing the product home page.
30+
31+
### 4. Update Site
32+
The repository also includes update-related modules and update site packaging, which can be used as a reference for publishing and upgrading an Eclipse application.
33+
34+
### 5. Automated testing
35+
`tests/com.tlcsdm.eclipse.rcp.example.rcp.tests` contains SWTBot UI tests that verify the basic interaction in the sample view.
236

3-
This project uses [Tycho](https://github.com/eclipse-tycho/tycho) with [Maven](https://maven.apache.org/) to build. It requires Maven 3.9.0 or higher version.
37+
## Repository structure
38+
39+
- `bundles/`: core plug-ins and application modules
40+
- `features/`: Eclipse feature definitions
41+
- `sites/`: RCP product and update site packaging modules
42+
- `tests/`: SWTBot test modules
43+
44+
## Typical use cases
45+
46+
This repository is useful if you want to:
47+
48+
- quickly start an Eclipse RCP project skeleton
49+
- learn how a Tycho multi-module project is organized
50+
- maintain a GUI application, a headless application, and an update site in the same repository
51+
- reference Eclipse plug-in productization and automated UI testing examples
52+
53+
## Requirements
54+
55+
This project is built with [Tycho](https://github.com/eclipse-tycho/tycho) and [Maven](https://maven.apache.org/).
56+
57+
- **JDK 21+**
58+
- **Maven 3.9.0 or newer**
59+
- It is recommended to run `java -version` before building to confirm that the environment is using JDK 21.
60+
61+
## Build
462

563
Dev build:
664

7-
```
65+
```bash
866
mvn clean verify
967
```
1068

1169
Release build:
1270

13-
```
71+
```bash
1472
mvn clean org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.0.0 verify
1573
```
1674

0 commit comments

Comments
 (0)