Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<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">
<title>OSGi Framework Launcher</title>
<link href="../../book.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>OSGi Framework Launcher</h1>
<p>PDE provides an <em>OSGi Framework</em> launcher, which allows you to launch an OSGi framework and test or debug your OSGi bundle. As with all other launchers in Eclipse (e.g. the <em>Java Application</em> and <em>Java Applet</em> launchers,...), the <em>OSGi Framework</em> launcher can be invoked via a shortcut, and its launch configurations are centrally managed in the <strong>Launch Configuration Dialog</strong>. </p>
<p>Note that in Eclipse, the words <em>plug-in </em>and <em>bundle</em> are used interchangeably. <em>A plug-in is a bundle and a bundle is a plug-in</em>. </p>

<h2>Launching via a Shortcut</h2>
<p>A quick way to test a bundle is by launching an <em>OSGi Framework</em> via<strong> Run As &gt; OSGi Framework</strong> from the context menu of a plug-in project. To launch in debug mode, choose <strong>Debug As &gt; OSGi Framework</strong> from the context menu of the plug-in project.   </p>
<p>When a shortcut is used, PDE searches for existing <em>OSGI Framework</em> launch configurations and creates a new launch configuration only if none were found. If a single launch configuration is found, it is used. If multiple configurations are found, PDE presents a selection dialog containing all existing <em>OSGi Framework</em> launch configurations and prompts the user to choose one. If a new <em>OSGi Framework</em> launch configuration is created, PDE will use the default
 <code>OSGi Framework</code> which is specified on the
 <a href="../preference_pages/osgi_frameworks.htm">OSGi Frameworks</a> preference page.
</p>

<h2>Customizing a Launch Configuration</h2>
<p>In order to have full control over launching an <em>OSGi Framework</em>, you can create and customize a launch configuration in the <strong>Launch Configuration Dialog</strong>.</p>
<p>The <strong>Launch Configuration Dialog</strong> can be invoked via <strong>Run &gt; Run...</strong> or <strong>Debug &gt; Debug...</strong> from the top level menu.    A new <em>OSGi Framework</em> launch configuration can be created by double-clicking on the <strong>OSGi Framework</strong> node in the tree viewer to the left. </p>
<p>An <em>OSGi Framework</em> launch configuration contains six tabs allowing you to customize all aspects of the test launch.  Please refer to the following documents for more details: </p>
<ul><li><a href="equinox_plugins.htm">Bundles Tab</a></li>
  <li><a href="equinox_args.htm">Arguments Tab </a></li>
  <li><a href="equinox_settings.htm">Settings Tab</a></li>
  <li><a href="tracing.htm">Tracing Tab</a></li>
  <li><a href="environment.htm">Environment Tab</a></li>
  <li><a href="common.htm">Common Tab</a></li>
</ul>


<p><img src="../../../images/ngrelr.png" alt="Related reference"></p>
<p>
  <a href="eclipse_application_launcher.htm">Eclipse Application Launcher</a><br>
  <a href="junit_launcher.htm">JUnit Plug-in Test Launcher</a>
</p>

</body>
</html>
New to GrepCode? Check out our FAQ X