Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Scout/Tutorial/5.0/Minicrm/New Eclipse Scout Project"
(→Create a new Eclipse Scout project) |
m (→Create a new Eclipse Scout project) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
Right-click on the folder ''Scout Projects'' and choose '''New Scout Project''' in order to create a new Eclipse Scout project. | Right-click on the folder ''Scout Projects'' and choose '''New Scout Project''' in order to create a new Eclipse Scout project. | ||
− | [[Image:Scout. | + | [[Image:Scout.5.0.howto.createproject.01.png|The context menu to create a new Scout Project]] |
Use ''org.eclipsescout.demo.minicrm'' as the '''project name''' in the first step, click next. | Use ''org.eclipsescout.demo.minicrm'' as the '''project name''' in the first step, click next. | ||
Line 26: | Line 26: | ||
In the second step, choose the '''outline tree with table form''' application template. Confirm with Finish. | In the second step, choose the '''outline tree with table form''' application template. Confirm with Finish. | ||
− | [[Image:Scout. | + | [[Image:Scout.5.0.minicrm.scout_application_template.png||The wizard to create a new Scout Project (Step 2)]] |
{{note|RAP Target|We directly pressed Finish after the second step in the project creation wizard. By doing so we accepted the default values of the third step for the RAP target creation. To learn more about the project- and RAP target creation please see the {{ScoutLink|HowTo/5.0|Create_a_new_project|Create a new Project HowTo}}}} | {{note|RAP Target|We directly pressed Finish after the second step in the project creation wizard. By doing so we accepted the default values of the third step for the RAP target creation. To learn more about the project- and RAP target creation please see the {{ScoutLink|HowTo/5.0|Create_a_new_project|Create a new Project HowTo}}}} | ||
Line 33: | Line 33: | ||
Under the client node, 3 nodes represent the user interfaces, ''org.eclipsescout.demo.minicrm.ui.rap'', ''org.eclipsescout.demo.minicrm.ui.swing'' and ''org.eclipsescout.demo.minicrm.ui.swt''. | Under the client node, 3 nodes represent the user interfaces, ''org.eclipsescout.demo.minicrm.ui.rap'', ''org.eclipsescout.demo.minicrm.ui.swing'' and ''org.eclipsescout.demo.minicrm.ui.swt''. | ||
− | [[Image:Scout. | + | [[Image:Scout.5.0.minicirm.explorer_view.png]] |
== Start the Server == | == Start the Server == | ||
Line 70: | Line 70: | ||
'''Troubleshooting''' | '''Troubleshooting''' | ||
* Port 8080 has to be free for this to work. It is also possible to use another port, to do so you have to change the line ''org.eclipse.equinox.http.jetty.http.port=8080'' in the config.ini of the server product and the ''server.url='' in each client interface (rap, swt ,swing). | * Port 8080 has to be free for this to work. It is also possible to use another port, to do so you have to change the line ''org.eclipse.equinox.http.jetty.http.port=8080'' in the config.ini of the server product and the ''server.url='' in each client interface (rap, swt ,swing). | ||
− | * If you try to start the Swing Client in Mac OS X, this might fail. To fix this go to the run configuration (Run | + | * If you try to start the Swing Client in Mac OS X, this might fail. To fix this go to the run configuration (Run | Run Configurations...) and select the Swing Client in the tree on the left hand side. In the 'Arguments' tab change the following: |
**remove <tt>-ws ${target.ws}</tt> from the ''program arguments''. | **remove <tt>-ws ${target.ws}</tt> from the ''program arguments''. | ||
**add <tt>--launcher.secondThread</tt> to the ''program arguments'' (if not already present). | **add <tt>--launcher.secondThread</tt> to the ''program arguments'' (if not already present). |
Latest revision as of 08:56, 13 April 2015
The Scout documentation has been moved to https://eclipsescout.github.io/.
We need to create a new Scout Project and switch to the Scout Perspective. When we're done we can run the server, verify that it is running using a web browser, and we can run the client using either the Swing or the SWT user interface.
The client will not yet contain anything, but this will demonstrate that our infrastructure is working.
Once you're done, continue on to setup a SQL service.
Contents
Create a new Eclipse Scout project
If you haven't done so yet, change to the Scout Perspective.
Right-click on the folder Scout Projects and choose New Scout Project in order to create a new Eclipse Scout project.
Use org.eclipsescout.demo.minicrm as the project name in the first step, click next.
In the second step, choose the outline tree with table form application template. Confirm with Finish.
After the project has been created the Scout Explorer is expanded and contains nodes for org.eclipsescout.demo.minicrm.client, org.eclipsescout.demo.minicrm.shared and org.eclipsescout.demo.minicrm.server.
Under the client node, 3 nodes represent the user interfaces, org.eclipsescout.demo.minicrm.ui.rap, org.eclipsescout.demo.minicrm.ui.swing and org.eclipsescout.demo.minicrm.ui.swt.
Start the Server
Click on the server node. This will show two products, a production product and a development product. Click the green arrow of the development product to start it.
Test the Server
To test if the server is running properly, go to http://localhost:8080/minicrm_server/process. You should see a page providing information about the server.
Start the Client
Click on either the org.eclipsescout.demo.minicrm.ui.rap, org.eclipsescout.demo.minicrm.ui.swing or org.eclipsescout.demo.minicrm.ui.swt node and start the development client product by clicking on the green arrow.
When starting the Swing or SWT user interface, you should directly see an empty client application (the following screenshot shows the SWT client. Depending on the UI you are starting it could look different):
When starting the RAP user interface, no desktop application is started. Instead another server is running (by default on port 8082). To access the RAP UI please open a browser of your choice and navigate to the following URL: http://localhost:8082/web.
Troubleshooting
- Port 8080 has to be free for this to work. It is also possible to use another port, to do so you have to change the line org.eclipse.equinox.http.jetty.http.port=8080 in the config.ini of the server product and the server.url= in each client interface (rap, swt ,swing).
- If you try to start the Swing Client in Mac OS X, this might fail. To fix this go to the run configuration (Run | Run Configurations...) and select the Swing Client in the tree on the left hand side. In the 'Arguments' tab change the following:
- remove -ws ${target.ws} from the program arguments.
- add --launcher.secondThread to the program arguments (if not already present).
- remove -Dorg.eclipse.swt.internal.carbon.smallFonts from the VM arguments.
- remove -XstartOnFirstThread from the VM arguments.
For Mac OS X it is recommended to use the 32 bit Eclipse packages when working with the Swing Client. Please note: When the application is started from the .product file again (using the Launch links), this might undo the changes done to the launch configuration in the steps above!