Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html lang="en">
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2006, 2009. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript" src="PLUGINS_ROOT/"></script>
<title>Feature Import</title>
<link href="../../book.css" rel="stylesheet" type="text/css">

<h1>Feature Import </h1>
<p>PDE provides a <strong>Feature Import</strong> wizard to import features from the file system into the workspace. The wizard is available  under <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.file.import(importWizardId=org.eclipse.pde.ui.FeatureImportWizard)")'>
<img src="PLUGINS_ROOT/" alt="Open the feature import wizard"><strong>File &gt; Import... &gt; Plug-in Development &gt; Features</strong></a> from the top level menu.</p>
<p><img src="../../images/import_wizards/feature_import.png" alt="Feature Import" ></p>

<h2>Import Location </h2>
<p>By default, the location to import features from is the target platform as specified on the <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.pde.ui.TargetPlatformPreferencePage)")'>
<img src="PLUGINS_ROOT/" alt="Open the target platform preference page">
<strong>Window &gt; Preferences... &gt; Plug-in Development &gt; Target Platform</strong></a> preference page. </p>
<p>The <strong>Target Platform...</strong> button is a shortcut that opens the <strong>Target Platform</strong> preference page for inspection or modification.</p>
<p>If you choose to import features from an arbitrary location on the file system and you do not wish to change the location of the target platform in the preferences, uncheck the <strong>Choose from features in the target platform</strong> checkbox.  Then, use the <strong>Browse...</strong> button to navigate and enter the directory of choice.
Finally, make sure to press the <strong>Reload</strong> button to refresh the dialog.</p>

<h2>Import Format and Destination </h2>
<p>When features are imported, a project is created in the workspace for each feature. The project name is the concatenation of the feature ID and &quot;<em>-feature</em>&quot;.</p>
<p>If PDE detects that your workspace is set up for feature-based self-hosting (as detailed in the <a href="../../../tips/pde_tips.htm">Tips and Tricks</a> section), the  features will be imported into a <em>features/</em> directory that is a sibling of the <em>plugins/</em> directory where the workspace is located. </p>

New to GrepCode? Check out our FAQ X