Skip to content

Commit b8948da

Browse files
authored
Merge pull request mendix#6474 from lvanengelen/development
Clarifications for Using Eclipse flow
2 parents 51562a5 + 55fd777 commit b8948da

2 files changed

Lines changed: 22 additions & 15 deletions

File tree

content/en/docs/refguide/java-programming/using-eclipse.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,57 @@ url: /refguide/using-eclipse/
44
weight: 2
55
category: "Java Programming"
66
description: "Describes how to set up Eclipse, and how to add a Mendix application to Eclipse and launch it."
7-
tags: ["studio pro"]
7+
tags: ["studio pro", "Java", IDE"]
88
---
99

1010
## 1 Introduction
1111

12-
You can use Eclipse to write and debug Java actions in your Mendix app. When the Mendix model is deployed, an Eclipse project file, classpath file, and launch configuration are generated.
12+
You can use [Eclipse IDE for Java Developers](https://eclipseide.org/) to write and debug Java actions in your Mendix app.
1313

14-
## 2 Setting Up Eclipse
14+
## 2 Deploy For Eclipse
1515

16-
In Mendix, all text is saved in UTF-8 encoding. To make sure your source code is also saved in UTF-8, do the following:
16+
To use Eclipse, you first need to set up your app so that Eclipse recognizes it.
17+
18+
In Studio Pro, open the Mendix app containing the Java actions you want to edit. Select **App > Deploy for Eclipse** to generate the necessary files for Eclipse to recognize the App directory as a Java project. This generates the Eclipse project file, classpath file, and launch configuration.
19+
20+
## 3 Setting Up Eclipse
21+
22+
In Mendix, all text is saved in UTF-8 encoding. To make sure your source code is also saved in UTF-8, do the following in Eclipse:
1723

1824
1. Select **Window > Preferences**.
1925
2. Select **Workspace** in the new menu window.
2026
3. Select **UTF-8**:
2127

2228
{{< figure src="/attachments/refguide/java-programming/using-eclipse/eclipse-utf8-encoding.png" alt="Settings UTF-8 encoding" >}}
2329

24-
You should also have a Java Development Kit (JDK) installed and selected.
30+
You must also have a Java Development Kit (JDK) installed and selected. Make sure to add a JDK under **Installed JREs** and select it as the default in Eclipse.
2531

2632
{{< figure src="/attachments/refguide/java-programming/using-eclipse/eclipse-jdk.png" alt="Selecting a default JDK" >}}
2733

28-
Make sure to add a JDK and select it as the default in Eclipse.
29-
30-
## 3 Adding a Mendix App
34+
## 4 Adding a Mendix App
3135

32-
To add a Mendix app to Eclipse, do the following:
36+
To add a Mendix app to Eclipse, do the following in Eclipse:
3337

3438
1. Select **File > Import**.
35-
2. Open the **General** folder, select **Existing Projects into Workspace** and select **Next >**:
39+
2. Open the **General** folder, select **Existing Projects into Workspace** and click **Next >**:
3640

3741
{{< figure src="/attachments/refguide/java-programming/using-eclipse/eclipse-select-import.png" alt="Import existing project" >}}
3842

39-
3. Use the option **Select root directory**, browse to your Mendix app folder and select **Finish**:
43+
3. Use the option **Select root directory**, browse to your Mendix app folder and click **Finish**:
4044

4145
{{< figure src="/attachments/refguide/java-programming/using-eclipse/import-eclipse-project.png" alt="Select root directory" >}}
4246

43-
## 4 Launching a Mendix App
47+
## 5 Launching a Mendix App
4448

4549
To launch the app, do the following:
4650

4751
1. Select **Run > Run configurations...** or **Run > Debug configurations...**, depending on how you would like to start the application.
48-
2. Select **Java application** and a launch configuration—generated by Mendix Studio Pro—will appear.
49-
3. Select **Run** (or **Debug**) to start the application:
52+
2. Find **Java application** in the list. It should contain a launch configuration with the same name as the Mendix app's directory.
53+
3. Select the launch configuration.
54+
4. Select **Run** (or **Debug**) to start the application:
5055

5156
{{< figure src="/attachments/refguide/java-programming/using-eclipse/eclipse-run-configuration.png" alt="Launch configuration" >}}
5257

53-
After you have launched the application, the **M2EE Admin Console** will appear. This is the same console as you would normally see in Mendix Studio Pro, if you would run the application from there. You can stop your application by closing the console.
58+
After you have launched the application, the **M2EE Admin Console** will appear. This is the same console as you would normally see in Mendix Studio Pro, if you had run the application from there. You can stop your application by closing the console.
5459

5560
{{< figure src="/attachments/refguide/java-programming/using-eclipse/eclipse-debug-log.png" alt="M2EE Admin Console" >}}

content/en/docs/refguide/modeling/menus/app-menu/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ The **Deploy for Eclipse** option deploys the app to the deployment directory. T
5858

5959
Shortcut key: <kbd>F6</kbd>
6060

61+
For more information on how write Java actions from Eclipse, see [Using Eclipse](/refguide/using-eclipse/).
62+
6163
## 6 Create Deployment Package{#create-package}
6264

6365
The **Create Deployment Package** option creates a Mendix Deployment Archive package (*.mda*) that contains all necessary files to run the app. This can be used if you want to deploy your app on a Windows server or on a custom Mendix Cloud.

0 commit comments

Comments
 (0)