Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/HowTo/3.9/Create a minimal Standalone Client"

< Scout‎ | HowTo‎ | 3.9
(Getting rid of all Aspects that involve the Server)
Line 7: Line 7:
 
Before you proceed, go through the standard client server Scout Hello World tutorial.
 
Before you proceed, go through the standard client server Scout Hello World tutorial.
  
== Getting rid of all Aspects that involve the Server ==
+
== Update the ClientSession and remove the Bookmarks menu ==
  
 
In the Scout Explorer, double click the ClientSession node and in method ''execLoadSession'' remove the setting up of to the service tunnel and the fetching of the code types.  
 
In the Scout Explorer, double click the ClientSession node and in method ''execLoadSession'' remove the setting up of to the service tunnel and the fetching of the code types.  
 
+
The resulting method will then be:
 
    
 
    
 
   @Override
 
   @Override
Line 16: Line 16:
 
     setDesktop(new Desktop());
 
     setDesktop(new Desktop());
 
   }
 
   }
 +
 +
The next step is to remove the '''Bookmarks''' menu entry. For this navigate in the Scout Explorer to the orange client node and expand the '''Desktop''' node under it. Then, expand the '''Menus''' folder and delete the bookmarks menu entry using the context menu '''Delete ...'''.
 +
 +
== Remove the DesktopService from the Server and add it to the Client ==
 +
 +
First, remove the DesktopService from the Scout server plugin.
 +
For this, expand the blue server node and the underlying folder '''Services''' and select the contextmenu '''Delete ...''' on the entry ''DesktopService''.
 +
In the proposal box deselect the item ''IDesktopService'' in the shared plugin of the application and click '''Ok'''.

Revision as of 07:16, 19 November 2013

The Scout documentation has been moved to https://eclipsescout.github.io/.

A common Scout application typically consists of a client part (front end) and a server part (back end). But what if you just need a minimal client application? This How-to guides you through the necessary steps to get there. At the end you will have a client-only "Hello World!" application.


Initial Project Setup

Before you proceed, go through the standard client server Scout Hello World tutorial.

Update the ClientSession and remove the Bookmarks menu

In the Scout Explorer, double click the ClientSession node and in method execLoadSession remove the setting up of to the service tunnel and the fetching of the code types. The resulting method will then be:

 @Override
 public void execLoadSession() throws ProcessingException {
   setDesktop(new Desktop());
 }

The next step is to remove the Bookmarks menu entry. For this navigate in the Scout Explorer to the orange client node and expand the Desktop node under it. Then, expand the Menus folder and delete the bookmarks menu entry using the context menu Delete ....

Remove the DesktopService from the Server and add it to the Client

First, remove the DesktopService from the Scout server plugin. For this, expand the blue server node and the underlying folder Services and select the contextmenu Delete ... on the entry DesktopService. In the proposal box deselect the item IDesktopService in the shared plugin of the application and click Ok.

Back to the top