Skip to content

Commit 185262a

Browse files
committed
[manual] Added a manual section
1 parent 76f0e10 commit 185262a

39 files changed

+157
-4
lines changed

.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>docs</name>
3+
<name>bndtools.github.io</name>
44
<comment></comment>
55
<projects>
66
</projects>

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
source 'https://rubygems.org'
2-
3-
gem 'github-pages'
2+
gem 'github-pages', group: :jekyll_plugins
43
gem 'jekyll-seo-tag'

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins:
55
markdown: kramdown
66

77
collections:
8-
chapters:
8+
manual:
99
output: true
1010

1111
defaults:

_includes/sidebar.htm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@
88
<li><a href="/concepts.html">Workspace Concepts</a></li>
99
<li><a href="/installation.html">Installation</a></li>
1010
<li><a href="/tutorial.html">Tutorials</a></li>
11+
<li><a href="/manual/about.html">Bndtools Reference</a>
12+
{% if page.url contains '/manual' %}
13+
<ul>
14+
<li><a href="/manual/packageexplorer.html">Package Explorer</a>
15+
<li><a href="/manual/repositories-view.html">Repositories View</a>
16+
<li><a href="/manual/resolution-view.html">Resolution View</a>
17+
<li><a href="/manual/bndeditor.html">The bnd Editor</a>
18+
<li><a href="/manual/jareditor.html">The JAR Viewer</a>
19+
</ul>
20+
{% endif %}
1121
<li><a class="external-left" href="http://bnd.bndtools.org">bnd manual</a></li>
1222
<li><a href="/faq.html">FAQ</a></li>
1323

_manual/about.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Introduction
3+
description: An overview of the Bndtools manual
4+
---
5+
6+
Bndtools is an Eclipse Plugin based on [bnd][1] with the goal to make programming for OSGi easier than in
7+
any other environment. Correction, to make programming in Java easier than any other environment!
8+
9+
As a plugin Bndtools hooks into the IDE in numerous places. Clearly, Eclipse already provides a very comprehensive
10+
Java programming environment and Bndtools leverages this to the hilt.
11+
12+
The following image provides an overview of the most important views in the Bndtools plugin. You can click on the
13+
view and it should take you to the appropriate place.
14+
15+
<!-- Image Map Generated by http://www.image-map.net/ -->
16+
<img src="https://user-images.githubusercontent.com/200494/44413668-38a21f00-a56c-11e8-8356-157c307ea4ac.png" usemap="#image-map" style="width:1000px">
17+
18+
<map name="image-map">
19+
<area target="_self" alt="Package Explorer" title="Package Explorer" href="/manual/packageexplorer.html" coords="0,55,250,408" shape="rect">
20+
<area target="_self" alt="Bnd Editor" title="Bnd Editor" href="/manual/bndeditor.html" coords="250,56,808,455" shape="rect">
21+
<area target="_self" alt="Resolution view" title="Resolution view" href="/manual/resolution-view.html" coords="256,462,994,589" shape="rect">
22+
<area target="_self" alt="Repositories" title="Repositories" href="/manual/repositories-view.html" coords="250,559,0,408" shape="rect">
23+
</map>
24+
25+
[1]: https://bnd.bndtools.org

_manual/bndeditor.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Bnd Editor
3+
description: The Bnd properties editor for bnd files
4+
---
5+
6+
The bnd editor provides a number of tabs with graphic editors. The following tabs are available:
7+
8+
* [Contents](#contents) – The content and resulting imports of the selected bundle
9+
* [Description](#description) – Editor for the OSGi headers that describe a bundle
10+
* [Build](#build) – The build path
11+
* [Run](#run) – Create a launch configuration
12+
* [Tests](#tests) – Managing tests
13+
* [Source](#source) – Source code editor for the bnd properties file
14+
15+
16+
## Contents
17+
18+
<img src="/images/bnd-editor-contents.png" style="width:772px" class="view">
19+
20+
21+
## Description
22+
23+
<img src="/images/bnd-editor-description.png" style="width:772px" class="view">
24+
25+
26+
## Build
27+
28+
<img src="/images/bnd-editor-build.png" style="width:772px" class="view">
29+
30+
## Run
31+
32+
<img src="/images/bnd-editor-run.png" style="width:772px" class="view">
33+
34+
## Tests
35+
36+
<img src="/images/bnd-editor-tests.png" style="width:772px" class="view">
37+
38+
## Source
39+
40+
<img src="/images/bnd-editor-source.png" style="width:772px" class="view">

_manual/jareditor.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: JAR Viewer
3+
description: Shows the content of a JAR file with extra attention for OSGi information
4+
---
5+
6+
* [Content](#content) – The content of the selected JAR
7+
* [Print](#print) – Summary of OSGi information
8+
9+
## Content
10+
11+
<img src="/images/jar-editor-content.png" style="width:772px" class="view">
12+
13+
## Print
14+
15+
<img src="/images/jar-editor-print.png" style="width:772px" class="view">
16+

_manual/packageexplorer.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Package Explorer
3+
description: An overview of the Package Explorer with Bndtools
4+
---
5+
6+
The [Eclipse Package Explorer][1] provides an overview of the projects and their contents. Icons are used extensively to mark the projects. They are either used as direct icons for an object (e.g. a bnd.bnd file) or are used to decorate existing icons. For example, if a package is exported or not. The following image shows all icons in their context.
7+
8+
<img src="/images/package-explorer.png" alt="Package Explorer" style='width:481px' class="view"/>
9+
10+
Bndtools adds the following icons in the Package Explorer:
11+
12+
|----------------|------------------------------------------------------------------------------------------------|
13+
| ![bnd project file](/images/icons/bnd-project.png) | Contains all the project configuration. The project configuration inherits properties from from `cnf/build.bnd` and any bnd files in `cnf/ext/`|
14+
| ![*.bnd file](/images/icons/bnd-general.png) | A general bnd file. This is either a bnd file in the `cnf` directory to configure the workspace or it can be a sub bundle when in a project. Bndtools contains a special editor for the bnd files. This type of file is generally used in an inheritance hierarchy. |
15+
| ![*.bndrun file](/images/icons/bndrun.png) | Describes a launch configuration. The required bundles can be indicated with _initial requirements_ that the Bndtools resolver can turn into a list of bundles. An extensive editor is available to edit the launch configuration. A project can contain many bndrun files.|
16+
| ![build.bnd](/images/icons/build-bnd.png) | This is the _master configuration_ file of the workspace. When Bndtools starts, bnd first reads the bnd files in the `cnf/ext/` directory, and then the `cnf/build.bnd` file. Any property or header set in this file is available to any project. There is only one such file in a workspace and it is also used as the _marker_ file for a workspace. |
17+
| ![Bnd Bundle Path](/images/icons/library.png) | `Bnd Bundle Path` – This is an _Eclipse Library container_ for Bndtools. The children of the container are specified in the project's `bnd.bnd` file in the `-buildpath` and `-testpath` instructions. Entries from the `-testpath` are shaded since Eclipse Photon and bnd 4.1.0. The entries are automatically updated when changes are made to the workspace.|
18+
| ![Dependency with attached source](/images/icons/jar-src.png) | A `Bnd Bundle Path` dependency with source code attached. If the icon is darker then it is a test dependency. |
19+
| ![Dependency](/images/icons/jar.png) | A `Bnd Bundle Path` dependency without source code attached. If the icon is darker then it is a test dependency. |
20+
| ![Dependency](/images/icons/jar-test.png) | A `Bnd Bundle Path` dependency without source code attached that is only used for test code. |
21+
| ![Component class](/images/icons/java-component.png) | A class that is a DS component. The general icon for a component is an eco friendly green LED. |
22+
| ![Component package](/images/icons/package-component.png) | A package that contains DS components |
23+
| ![src folder](/images/icons/src-main.png) | The source folder classes that are part of the bundle |
24+
| ![test folder](/images/icons/src-test.png) | The source folder for test code. |
25+
| ![Private package](/images/icons/package-private.png) | A private package in a bundle. This package is included but not exported.|
26+
| ![Exported package](/images/icons/package-exported.png) | An exported package of a bundle. If the package has a version it will also be displayed.|
27+
| ![Excluded package](/images/icons/package-excluded.png) | A package that is **not** included in any bundle. This is rare and not a good practice so it is generally a warning sign.|
28+
29+
If you're looking for other icons, the [Eclipse Help](http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-icons.htm) shows a further reference of all icons.
30+
31+
32+
[1]: https://help.eclipse.org/photon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-74.htm

_manual/repositories-view.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Repositories View
3+
description: Shows the repositories and their contents
4+
---
5+
6+
<img src="/images/repositories-view.png" style="width:461px" class="view">

_manual/resolution-view.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Resolution View
3+
description: Provides insight into the requirements and capabilities of the selected bundle
4+
---
5+
6+
<img src="/images/resolution-view.png" style="width:750px" class="view">

css/style.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@
88

99
table {
1010
width: 100%;
11+
}
12+
13+
img { width: auto; max-width: fit-content;}
14+
15+
img.view {
16+
border-radius: 10px;
17+
border: 1px solid grey;
18+
padding: -2px;
19+
box-shadow: 5px 5px 2px lightgrey;
1120
}

icons.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Legend
3+
description: A description of each icon used in Bndtools
4+
---
5+
6+
|----------------|------------------------------------------------------------------------------------------------|
7+
|![add][add] | Add element to a list. In general you can also use an appropriate drag and drop |
8+
9+
10+
[add]: https://github.com/bndtools/bndtools/raw/master/bndtools.core/resources/unprocessed/icons/add_obj.png

images/bnd-editor-build.png

130 KB
Loading

images/bnd-editor-contents.png

145 KB
Loading

images/bnd-editor-description.png

120 KB
Loading

images/bnd-editor-run.png

246 KB
Loading

images/bnd-editor-source.png

163 KB
Loading

images/bnd-editor-tests.png

77 KB
Loading

images/icons/bnd-general.png

1.65 KB
Loading

images/icons/bnd-project.png

1.84 KB
Loading

images/icons/bndrun.png

1.59 KB
Loading

images/icons/build-bnd.png

1.6 KB
Loading

images/icons/jar-build.png

1.63 KB
Loading

images/icons/jar-src.png

2.43 KB
Loading

images/icons/jar-test.png

2.38 KB
Loading

images/icons/jar.png

2.43 KB
Loading

images/icons/java-component.png

1.83 KB
Loading

images/icons/library.png

1.89 KB
Loading

images/icons/package-component.png

2.05 KB
Loading

images/icons/package-excluded.png

1.96 KB
Loading

images/icons/package-exported.png

1.83 KB
Loading

images/icons/package-private.png

1.86 KB
Loading

images/icons/src-main.png

2.16 KB
Loading

images/icons/src-test.png

2.09 KB
Loading

images/jar-editor-content.png

227 KB
Loading

images/jar-editor-print.png

221 KB
Loading

images/package-explorer.png

175 KB
Loading

images/repositories-view.png

109 KB
Loading

images/resolution-view.png

146 KB
Loading

0 commit comments

Comments
 (0)