# ... based on AWB-Installation

## Define the Target Platform

To do so, open the Eclipse preferences (menu ***Window*** => ***Preferences***) and type the word 'target' into the search text field (see image).

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-7d8025035e503ce2b5365fa814519a715184dc60%2F08_targetplatform_preferences.png?alt=media\&token=5e7d4cd3-b0a9-487e-9277-6d20efced9ac)

Further, ***Add*** a new Target Platform definition, choose **Nothing: Start with an empty target definition** on the first dialog page and press the ***Next*** button underneath. In the subsequent dialog:

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-535d6fef10d027fff0db27dbd2ae96963abef130%2F09_targetplatform_addcontent.png?alt=media)

1. Define the name of the Target Platform definition (e.g. Agent.Workbench)
2. Choose ***Add*** to select the content (bundles and / or features) that define your target platform.
3. Select ***Installation***, press ***Next*** and ***Browse*** to the installation of Agent.Workbench in your file system.
4. Again, click ***Next*** to get a preview of the bundles / plugins to be used for your Target Platform or directly click ***Finish***.

As a result, the field in the ***Locations*** tab should point to your Agent.Workbench installation, saying that approx. 131 plugins were found. Click on ***Finish*****.** The new target platform definition should now also be displayed in the list in the preference dialog. As final step mark this new definition as active (***tick the corresponding box***) and press ***Apply and Close***.

Now you are prepared to develop your first agent project with Agent.Workbench.

## Install the Developer Resources

When defining the target platform based on a local AWB installation, by default you cannot see the AWB source code. In case you are a developer who wants to read the source code, you can simply download those resources from your AWB installation.

Open the AWB installation that you defined your target platform with. Then click *Help* and open the *Eclipse Window*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-3a1fce21d7a06e5b8a7a94f4dbfc0ac186069c77%2Fopeneclipsewindowawb.jpg?alt=media\&token=e86755ae-272f-4880-997e-0bcf07c70155)

In the Eclipse Window, click *Help* and *Install New Software*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-bfadcff1871b26976710bcd1b658011d7a1bacad%2Fawbinstallnewsoftware.jpg?alt=media\&token=cc30ed70-ab04-450e-b0ae-f873e9eb1134)

In the drop-down menu select the *EnFlex.It Update Site*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-b64493706b9640e02e475a0145dd9aa3aa3814bd%2Fchooseupdatesite.jpg?alt=media)

To follow along, check *Group items by category*, then open Agent.Workbench and select *Agent.Workbench - Core Feature Developer Resources* and *EnFlex.IT common interfaces* and *classes Developer Resources.* Then click *Next*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-c634115629ba1b0ef8ac00cb04f8cf88af9799fd%2Fselectresources.jpg?alt=media)

Review the items to be installed and click Next.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-ccb479ebb246530a4a02c5171b611f7ed3a47d48%2Finstalldetailsresources.jpg?alt=media)

On the next page, accept the license agreement and click *Finish*. If a security warning shows up, click *Install anyway*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-f40d6a7c594b63b7ed27ae2ee6cd15c564b143cd%2Finstallanyway.jpg?alt=media\&token=7cb3a7e2-fda9-4602-9e05-9815345a8129)

Then restart Agent.Workbench.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-fd6b5655b362036e560998c865067f1e70f6c112%2Frestartafterdownload.jpg?alt=media)

Now you successfully installed the Developer Resources. As a last step, because we made changes to the AWB installation that Eclipse does not know about, we must reload the target platform. Open your target platform definition and click *Reload*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-18218f22c2b8cf964a8d32379518443552bb2627%2Freload-target-platform.jpg?alt=media)

## Uninstall Developer Resources

If you want to uninstall previous installed Developer Resources, open the Eclipse window in your AWB installation again. Then click *Help* > *About*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-da9c1f763fde7c24524b47a795698ae5a6a95940%2Fdeinstallsoftwareabout.jpg?alt=media)

Then open the *Installation Details*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-15a635f552d72ac525c3fa8a8a41f31ac00b8d88%2Finstallationdetails.jpg?alt=media)

In the Installation Details window select the resources you want to uninstall and click *Uninstall*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-bf70b3a65cc5491ce32cadc725801f2912a62681%2Funinstallselect.jpg?alt=media)

On the next page confirm the uninstallation by clicking *Finish*.

![](https://874617837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LL95HBh1KIqu90YyWBK%2Fuploads%2Fgit-blob-480b3db492ecf98bbb49cfab72f94c6a05082040%2Funinstalldetails.jpg?alt=media)

After restarting Agent.Workbench the resources are uninstalled. As a last step you have to reload the target platform in Eclipse again, as explained [above](#install-the-developer-resources), to get the changes in your Eclipse workspace.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enflexit.gitbook.io/agent-workbench/development/basic-steps/define-a-target-platform/target-platform-based-on-awb-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
