Skip to content

Commit 63f5b3a

Browse files
committed
Improve and fix the markdown documentation
- Add a .project file to `docs` folder for a project named `org.eclipse.pde.docs` - Remove internal table of content entries. - Fix broken links and avoid absolute raw links.
1 parent 4f898d1 commit 63f5b3a

File tree

7 files changed

+72
-205
lines changed

7 files changed

+72
-205
lines changed

docs/.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.eclipse.pde.docs</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

docs/API_Tools.md

Lines changed: 19 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,9 @@
11
PDE/API Tools
22
========================
33

4-
5-
Contents
6-
--------
7-
8-
* [1 User Guide](#user-guide)
9-
* [2 Resources](#resources)
10-
* [3 Use Cases](#use-cases)
11-
* [4 Links](#links)
12-
13-
144
User Guide
155
==========
166

17-
Contents
18-
--------
19-
20-
* [1 Current State](#Current-State)
21-
* [2 API Tooling Setup](#API-Tooling-Setup)
22-
* [2.1 Define an API Baseline](#Define-an-API-Baseline)
23-
* [2.2 Configure Bundles for API Tooling](#Configure-Bundles-for-API-Tooling)
24-
* [3 API Problems](#API-Problems)
25-
* [3.1 Adjusting Problem Severities](#Adjusting-Problem-Severities)
26-
* [3.2 Filtering Known Problems](#Filtering-Known-Problems)
27-
* [4 Ant Tasks](#Ant-Tasks)
28-
297
Current State
308
-------------
319

@@ -47,7 +25,7 @@ For example, if you are developing bundles for Eclipse 3.4, you will use Eclipse
4725
API baselines are managed on the **Plug-in Development > API Baselines** preference page. Here you can create, edit, and delete API baselines.
4826
You can select one baseline as the 'default' - this is the baseline that the workspace will be compared against.
4927

50-
![Api_profiles_pref_page_2.PNG](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Api_profiles_pref_page_2.PNG)
28+
![Api_profiles_pref_page_2.PNG](images/Api_profiles_pref_page_2.PNG)
5129

5230
Use the **Add Baseline...** button to open a wizard to define a baseline.
5331
Any Eclipse SDK can be used as a baseline simply by giving it a name and specifying the root location of the plug-ins.
@@ -69,19 +47,19 @@ You can use content assist to insert tags with appropriate comments.
6947

7048
Using the **PDE Tools > API Tooling Setup...** action to configure your projects.
7149

72-
![Api_tooling_setup.PNG](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Api_tooling_setup.PNG)
50+
![Api_tooling_setup.PNG](images/Api_tooling_setup.PNG)
7351

7452

7553
A dialog appears allowing you to select projects you want to setup for API tooling.
7654

77-
![Api_tooling_setup_refactoring.PNG](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Api_tooling_setup_refactoring.PNG)
55+
![Api_tooling_setup_refactoring.PNG](images/Api_tooling_setup_refactoring.PNG)
7856

7957

8058
**Note**: By default, **component.xml files are deleted** from your workspace after corresponding Javadoc tags are inserted into source code.
8159
There is a checkbox to disable this option.
8260
You can also preview the text changes that will be made, by clicking 'next'.
8361

84-
![Api_tooling_setup_preview.PNG](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Api_tooling_setup_preview.PNG)
62+
![Api_tooling_setup_preview.PNG](images/Api_tooling_setup_preview.PNG)
8563

8664
After pressing finish, Javadoc tags will be inserted and the API Tooling nature (and builder) will be added to your projects.
8765
API problems will now appear in the workspace where appropriate.
@@ -103,7 +81,7 @@ The tooling breaks down the types of problems reported into one of three categor
10381
Similar to the way you can set compiler problem severities (error vs. warning vs. ignore), API tooling provides an **API Errors/Warnings** preference page that allows you to configure API problem severities.
10482
You can configure the problem severities on a **per project basis** as well, by using the **API Errors/Warnings** property page for a project, available from the **Properties...** action.
10583

106-
![Api_errors_pref.PNG](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Api_errors_pref.PNG)
84+
![Api_errors_pref.PNG](images/Api_errors_pref.PNG)
10785

10886
#### Filtering Known Problems
10987

@@ -114,44 +92,17 @@ You can add a filter for a specific api problem using the Eclipse 'quickfix' mec
11492

11593
Once a filter has been added you can edit / remove it from the 'Api Problem Filters' project property page.
11694

117-
![Api_tooling_problem_filters_page.PNG](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Api_tooling_problem_filters_page.PNG)
95+
![Api_tooling_problem_filters_page.PNG](images/Api_tooling_problem_filters_page.PNG)
11896

11997
Ant Tasks
12098
---------
12199

122100
API Tools provides a number of ant tasks to integrate the tooling into your build process.
123101

124102

125-
126-
127103
Resources
128104
=========
129105

130-
Contents
131-
--------
132-
133-
* [1 Articles](#Articles)
134-
* [2 Examples](#Examples)
135-
* [2.1 Important Notes](#Important-Notes)
136-
* [2.2 Running an API use scan (IDE)](#Running-an-API-use-scan-ide)
137-
* [2.2.1 Creating a new scan configuration](#Creating-a-new-scan-configuration)
138-
* [2.2.2 Configuring the new use scan](#Configuring-the-new-use-scan)
139-
* [2.3 Running an API use scan (commandline)](#Running-an-API-use-scan-commandline)
140-
* [2.3.1 Initial Setup](#Initial-Setup)
141-
* [2.3.2 The Build File](#The-Build-File)
142-
* [2.3.3 Use Scan Buildfile](#Use-Scan-Buildfile)
143-
* [2.3.4 Running The Buildfile](#Running-The-Buildfile)
144-
* [2.4 Generating Javadoc](#Generating-Javadoc)
145-
* [2.4.1 Using the Wizard](#Using-the-Wizard)
146-
* [2.4.2 Using the Commandline](#Using-the-Commandline)
147-
* [2.4.3 Customizing the Custom Tags](#Customizing-the-Custom-Tags)
148-
* [2.4.4 Ant Tasks](#Ant-Tasks)
149-
150-
Articles
151-
--------
152-
153-
There are currently no articles.
154-
155106
Examples
156107
========
157108

@@ -160,7 +111,7 @@ Important Notes
160111

161112
There are a few things that should be noted prior to getting started with the examples.
162113

163-
1. Whenever we refer to a "pattern" we are referring to a Java regular expression as defined [here](http://java.sun.com/docs/books/tutorial/essential/regex/). Take note of escaping, etc, that is used when formulating your regular expression. If a invalid regular expression is given, the use scanner will report it back to you and abort.
114+
1. Whenever we refer to a "pattern" we are referring to a Java regular expression as defined [here](https://java.sun.com/docs/books/tutorial/essential/regex/). Take note of escaping, etc, that is used when formulating your regular expression. If a invalid regular expression is given, the use scanner will report it back to you and abort.
164115
2. When using the Ant tasks from the command line you should always make sure the `eclipse.install.dir` property points to the most recent Eclipse build available. This way you get all the latest and greatest versions of the tasks. The other reason to do this is that the build file (`api-tasks.xml`) uses the API tools core jar from that directory on the Ant classpath.
165116
3. Any Ant tasks used from the command line must be called by their name as specified in the `ant-tasks.properties` file. This can cause some confusion for users who try out the Ant tasks in Eclipse and notice that the tasks are qualified with `apitooling` but they are not qualified in the `ant-tasks.properties` file. Consider the following example:
166117

@@ -193,7 +144,7 @@ Running an API use scan (IDE)
193144
In the IDE API use scans can be run from the External tools dialog.
194145
The benefits of providing the scanning as an external tool are many, the foremost being: 1. you can create as many different configurations as you want for scanning different distributions of your products and 2. each configuration can have its own persisted settings.
195146

196-
![The external tools dialog showing a use scan configuration](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Usescan-ext-dialog.png)
147+
![The external tools dialog showing a use scan configuration](images/Usescan-ext-dialog.png)
197148

198149
### Creating a new scan configuration
199150

@@ -361,11 +312,11 @@ It can be found by using the Generate Javadoc command located in the Project mai
361312

362313
Once the wizard starts you will have to locate the Javadoc executable (if not already specified) and select the bundles you wish to generate Javadoc for.
363314

364-
![The first page of the Generate Javadoc wizard](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Jdoc_wizard_p1.png)
315+
![The first page of the Generate Javadoc wizard](images/Jdoc_wizard_p1.png)
365316

366317
On the next page, you can configure additional options.
367318

368-
![The second page of the Generate Javadoc wizard](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Jdoc_wizard_p2.png)
319+
![The second page of the Generate Javadoc wizard](images/Jdoc_wizard_p2.png)
369320

370321
On the last page is where we need to tell the wizard about the custom API tools tags.
371322
In the `Extra Javadoc options` area you will want to enter the following tag definitions:
@@ -382,11 +333,11 @@ In the `Extra Javadoc options` area you will want to enter the following tag def
382333

383334
The wizard will then look like the following:
384335

385-
![The third page of the Generate Javadoc wizard](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Jdoc_wizard_p3.png)
336+
![The third page of the Generate Javadoc wizard](images/Jdoc_wizard_p3.png)
386337

387338
Once you press finish and the Javadoc tool completes you should see API tools tag restrictions appearing in your documentation like the following example:
388339

389-
![How the API tools tags look in the HTML documentation](https://raw.githubusercontent.com/eclipse-pde/eclipse.pde/master/docs/images/Doc_example.png)
340+
![How the API tools tags look in the HTML documentation](images/Doc_example.png)
390341

391342
### Using the Commandline
392343

@@ -411,7 +362,7 @@ Where the `apitags` file would contain the following:
411362

412363

413364
You will also have to specify where the source is and any extra parameter for javadoc to be able to complete.
414-
For a description of these and further information on using `javadoc` see [the Sun Javadoc guide](http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html)
365+
For a description of these and further information on using `javadoc` see [the Sun Javadoc guide](https://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html)
415366

416367
### Customizing the Custom Tags
417368

@@ -450,19 +401,6 @@ Use Cases
450401
=========
451402

452403

453-
Contents
454-
--------
455-
456-
* [1 Introduction](#Introduction)
457-
* [1.1 Binary Compatibility Reporting (Batch Mode)](#Binary-Compatibility-Reporting-Batch-Mode)
458-
* [1.2 Binary Compatibility Reporting (IDE Mode)](#Binary-Compatibility-Reporting-IDE-Mode)
459-
* [1.3 API Usage Reporting (Batch Mode)](#API-Usage-Reporting-Batch-Mode)
460-
* [1.4 API Usage Reporting (IDE Mode)](#API-Usage-Reporting-IDE-Mode)
461-
* [1.5 API Usage Searching (IDE Mode)](#API-Usage-Searching-IDE-Mode)
462-
* [1.6 Version Management](#Version-Management)
463-
* [1.7 Building API Components & Baselines](#Building-API-Components--Baselines)
464-
* [1.8 Javadoc Tags, API Visibilities & Restrictions](#Javadoc-Tags-API-Visibilities--Restrictions)
465-
466404
Introduction
467405
============
468406

@@ -564,13 +502,15 @@ The platform provides a default set of Javadoc tags. The tags and the Java membe
564502
Links
565503
=====
566504

567-
* [Website](http://www.eclipse.org/pde/pde-api-tools/)
568-
* [Download](http://download.eclipse.org/eclipse/downloads/)
505+
<!--
506+
* [Website](https://www.eclipse.org/pde/pde-api-tools/)
507+
-->
508+
* [Download](https://download.eclipse.org/eclipse/downloads/)
569509

570510
**Community**
571511
* [Mailing List](https://dev.eclipse.org/mailman/listinfo/pde-dev)
572-
* [Forums](http://www.eclipse.org/forums/eclipse.platform)
512+
* [Dicusssions](https://github.com/eclipse-pde/eclipse.pde/discussions)
573513

574514
**Contribute**
575-
* [Browse Source](http://dev.eclipse.org/viewcvs/index.cgi/)
515+
* [Browse Source](https://github.com/eclipse-pde/)
576516

docs/Execution_Environments.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Second, an application written entirely of bundles such as A can ship on a Java
1818

1919
## How can this be configured?
2020

21-
[OSGi](https://en.wikipedia.org/wiki/OSGi) allows bundles to be marked with the minimum execution environment they require (see the [ Setting the
22-
Execution Environment](#setting-the-execution-environment)).
21+
[OSGi](https://www.osgi.org/) allows bundles to be marked with the minimum execution environment they require
22+
(see the [ Setting the Execution Environment](#setting-the-execution-environment)).
2323
Setting this value has two effects.
2424

2525
1. The compiler attempts to compile your bundle against the JRE
@@ -53,8 +53,8 @@ Increasing your EE can create a lot of work with no real value, such as exposing
5353

5454
Projects should not leave these choices to chance.
5555
Dependency structures are key parts of an architecture.
56-
For example, the [Eclipse Project](https://eclipse.org/eclipse) has explicitly identified EEs for all of their bundles.
57-
These choices are documented in the [project plan](https://www.eclipse.org/projects/project-plan.php?projectid=eclipse#appendix).
56+
For example, the [Eclipse Project](https://eclipse.dev/eclipse) has explicitly identified EEs for all of their bundles.
57+
These choices are documented in the [project plan](https://eclipse.dev/eclipse/development/plans.html).
5858
The execution environment listed in the table is based on the needs of the bundle and the expected use scenarios for the bundle.
5959

6060
## I have prerequisites that require version X to run, so shouldn't I require version X too?
@@ -71,7 +71,6 @@ However, with the the fast evolving Java runtime environment, you may want to up
7171
4. Note the section in the lower left corner entitled **Execution
7272
Environments**.
7373
5. Add your appropriate environment(s) noting the [special
74-
cases](#special-cases) below.
7574
6. Save the file.
7675
7. Select the link "update the classpath and compiler compliance
7776
settings".

0 commit comments

Comments
 (0)