Skip to content

Commit aacaf85

Browse files
Add a project for the new Eclipse RCP tutorial (#209)
* Extract the `eclipse-rcp` project from the Gradle build * Update build instructions in readme * Remove old implementation of the Eclipse tutorial * Add new implementation * Remove redundant Activator class * Include the application bundle to the feature * Update the product * Update e4xmi * Add launch configuration * Update README.md * Don't log by default * Update tutorials/eclipse-rcp/README.md Co-authored-by: Ivan Diachenko <[email protected]> * Update copyright and JxBrowser version --------- Co-authored-by: Ivan Diachenko <[email protected]>
1 parent f47b1b1 commit aacaf85

File tree

80 files changed

+1394
-872
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1394
-872
lines changed

settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ include("examples")
3333
// DOM changes
3434
module("content-changes", "./tutorials/content-changes")
3535
module("docker", "./tutorials/docker")
36-
module("eclipse-rcp", "./tutorials/eclipse-rcp")
3736
// Selenium integration
3837
module("launcher", "./tutorials/selenium/launcher")
3938
module("target-app", "./tutorials/selenium/target-app")

tutorials/eclipse-rcp/README.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@ Creating of this example project is described in
77
the [tutorial](https://jxbrowser-support.teamdev.com/docs/tutorials/eclipse/rcp-application.html).
88

99
## Build and launch
10-
1. Copy necessary JxBrowser JAR files to the workspace:
10+
11+
### Using Maven
12+
13+
1. Build the project using Maven and Apache Tycho:
1114

1215
```bash
13-
./gradlew prepareEclipseExample
16+
$ mvn clean verify
1417
```
1518

16-
2. Open this workspace in Eclipse.
17-
3. In **File -> Import** menu, choose **General -> Existing Projects Into Workspace**.
18-
4. In **Select root directory**, select this directory and import all found projects.
19-
5. Insert your license key into [com.example.e4.rcp/src/com/example/e4/rcp/parts/SamplePart.java]().
20-
6. In **Run** menu, choose **Run Configurations**.
21-
7. Open `com.example.e4.rcp.product` run configuration from **Eclipse Applications** group.
22-
8. In **Plug-ins** tab, click **Add Required Plug-ins** to make sure that all platform-specific SWT components
23-
are present in a classpath.
24-
9. Click **Run**.
19+
2. Navigate to the `com.teamdev.jxbrowser.demo.product/target/products` directory:
20+
21+
```bash
22+
$ cd com.teamdev.jxbrowser.demo.product/target/products
23+
$ ls
24+
com.teamdev.jxbrowser.demo.product-win32.win32.x86_64.zip
25+
com.teamdev.jxbrowser.demo.product-win32.win32.aarch64.zip
26+
com.teamdev.jxbrowser.demo.product-linux.gtk.aarch64.tar.gz
27+
com.teamdev.jxbrowser.demo.product-linux.gtk.x86_64.tar.gz
28+
com.teamdev.jxbrowser.demo.product-macosx.cocoa.aarch64.tar.gz
29+
com.teamdev.jxbrowser.demo.product-macosx.cocoa.x86_64.tar.gz
30+
31+
```
32+
3. Unpack the archive for your platform.
33+
4. Double-click the `eclipse[.exe]` file in the unpacked archive.
34+
35+
### Using Eclipse IDE
36+
37+
1. Download Eclipse IDE for RCP developers.
38+
2. Open this folder as a workspace.
39+
3. Import existing projects from the folder to the workspace.
40+
4. Run the `com.teamdev.jxbrowser.demo.product` run configuration.

tutorials/eclipse-rcp/build.gradle.kts

Lines changed: 0 additions & 115 deletions
This file was deleted.

tutorials/eclipse-rcp/com.example.e4.rcp/Application.e4xmi

Lines changed: 0 additions & 51 deletions
This file was deleted.

tutorials/eclipse-rcp/com.example.e4.rcp/META-INF/MANIFEST.MF

Lines changed: 0 additions & 20 deletions
This file was deleted.

tutorials/eclipse-rcp/com.example.e4.rcp/build.properties

Lines changed: 0 additions & 27 deletions
This file was deleted.

tutorials/eclipse-rcp/com.example.e4.rcp/com.example.e4.rcp.product

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)