<?xml version="1.0" encoding="UTF-8"?> | |
<!--/******************************************************************************* | |
* Copyright (c) 2009 IBM Corporation and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* IBM Corporation - initial API and implementation | |
*******************************************************************************/--> | |
<cheatsheet | |
title="Setting up API Tooling for existing plug-in projects"> | |
<intro href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm"> | |
<description> | |
This cheat sheet will help in setting up API Tooling for existing plug-in projects. | |
</description> | |
</intro> | |
<item | |
skip="true" | |
title="Prerequisite"> | |
<description> | |
The plug-in projects should be located in the workspace and be in open state. The API is public and the relevant packages are exported through the "Exported Packages" on the "Runtime" tab of the Manifest Editor. | |
</description> | |
</item> | |
<item | |
href="/org.eclipse.pde.doc.user/reference/api-tooling/actions/ref-apitooling-setup-action.htm" | |
title="Setting up API Tooling"> | |
<description> | |
</description> | |
<subitem | |
label="Select any project in package explorer and invoke the "API Tooling Setup" wizard from "PDE Tools" in the right-click context menu."> | |
</subitem> | |
<subitem | |
label="Select all the projects for which API Tooling is to be enabled. Click "Finish"."> | |
</subitem> | |
<subitem | |
label="When prompted for setting up an API Baseline, select "Yes"."> | |
</subitem> | |
<subitem | |
label="You are now presented with the "API Baseline" preference page. Click "Add Baseline" to create a default baseline. Provide a name and location, where the location contains an older version of the bundle(s) you are enabling API Tooling for. Click "Reset". Click "Finish". This will trigger a full build."> | |
</subitem> | |
</item> | |
<item | |
title="Testing API Tooling"> | |
<description> | |
This is optional and is there just to make sure everything is in place properly. | |
</description> | |
<subitem | |
label="Open any class in one of the exported packages. Add a public function to it and save it." | |
skip="false"> | |
</subitem> | |
<subitem | |
label="There will be two problems generated. Use a quick-fix to fix them. First, quick-fix the version change in MANIFEST.MF and then the @since tag to the newly added method." | |
skip="false"> | |
</subitem> | |
<subitem | |
label="Select the class or project in the package explorer and select "API Baseline" from the "Compare with" right-click context menu."> | |
</subitem> | |
<subitem | |
label="Let the default baseline "1.0" be selected and click "Finish"."> | |
</subitem> | |
<subitem | |
label="The "API Tooling" view will open displaying the newly added method."> | |
</subitem> | |
</item> | |
</cheatsheet> |