Jump to: navigation, search

Difference between revisions of "PDE/FAQ"

< PDE
Line 1: Line 1:
= General  =
+
== General  ==
  
== What is PDE  ==
+
=== What is PDE  ===
  
 
The Plug-in Development Environment (PDE) provides tools to create, develop, test, debug, build and deploy OSGi bundles and RCP applications.  
 
The Plug-in Development Environment (PDE) provides tools to create, develop, test, debug, build and deploy OSGi bundles and RCP applications.  
  
= Installation  =
+
== Installation  ==
  
== How do I install PDE?  ==
+
=== How do I install PDE?  ===
  
 
TODO  
 
TODO  
  
= Target Management  =
+
== Target Management  ==
  
= Classpath  =
+
See our [[PDE/Target Definitions|Target Definitions]] page.
  
== How do I find a plug-in (bundle) given a class  ==
+
== Classpath  ==
 +
 
 +
=== How do I find a plug-in (bundle) given a class  ===
  
 
If you're interested in finding a class at runtime, please use the PackageAdmin service from OSGi  
 
If you're interested in finding a class at runtime, please use the PackageAdmin service from OSGi  
  
== How do I get access to a plug-in (bundle) in my workspace or target  ==
+
=== How do I get access to a plug-in (bundle) in my workspace or target  ===
  
 
Use the PluginRegistry API to acquire models from your workspace or target  
 
Use the PluginRegistry API to acquire models from your workspace or target  
  
== I have an error that says some package (e.g., com.sun.misc) isn't accessible but it's on my classpath  ==
+
=== I have an error that says some package (e.g., com.sun.misc) isn't accessible but it's on my classpath  ===
  
 
In most cases, people get this error by accessing the Base64 class from the Sun VM. We generally don't recommend using the Base64 class from the VM because your bundle will be tired to only VMs that have that specific class. However, if this isn't an issue, you can get around the access restriction error by adding an access rule to your system library to make the package accessible. You can do this on the '''Libraries''' tab of the '''Java Build Path''' project properties. Add an '''Accessible''' rule for '''com/sun/misc/*'''  
 
In most cases, people get this error by accessing the Base64 class from the Sun VM. We generally don't recommend using the Base64 class from the VM because your bundle will be tired to only VMs that have that specific class. However, if this isn't an issue, you can get around the access restriction error by adding an access rule to your system library to make the package accessible. You can do this on the '''Libraries''' tab of the '''Java Build Path''' project properties. Add an '''Accessible''' rule for '''com/sun/misc/*'''  
Line 29: Line 31:
 
Also, in most cases, this package needs to be visible during runtime. To have a package visible during runtime, you will need to add the '''org.osgi.framework.system.packages.extra''' system property. For example:  
 
Also, in most cases, this package needs to be visible during runtime. To have a package visible during runtime, you will need to add the '''org.osgi.framework.system.packages.extra''' system property. For example:  
  
org.osgi.framework.system.packages.extra=com.sun.misc,com.sun.java.swing.plaf.windows  
+
org.osgi.framework.system.packages.extra==com.sun.misc,com.sun.java.swing.plaf.windows  
  
= API Tooling  =
+
== API Tooling  ==
  
== How do I enable API Tooling for my projects  ==
+
=== How do I enable API Tooling for my projects  ===
  
= Build  =
+
== Build  ==
  
== How do I build from SVN  ==
+
=== How do I build from SVN  ===
  
 
Out of the box, PDE Build does not have the ability to fetch code from a subversion repository. Some discussion have started to make Subversive Fetch tasl part of the [https://bugs.eclipse.org/bugs/show_bug.cgi?id=276662 BaseBuilder]. Subversive provides an SVN fetch task. The corresponding plugin can be downloaded from Subversive's website and some documentation can be found on [[Subversive PDE Fetch|dedicated wiki page]].  
 
Out of the box, PDE Build does not have the ability to fetch code from a subversion repository. Some discussion have started to make Subversive Fetch tasl part of the [https://bugs.eclipse.org/bugs/show_bug.cgi?id=276662 BaseBuilder]. Subversive provides an SVN fetch task. The corresponding plugin can be downloaded from Subversive's website and some documentation can be found on [[Subversive PDE Fetch|dedicated wiki page]].  
Line 43: Line 45:
 
Before that, Chris Vines from the community created a plug-in adding this support. It can be found at [http://sourceforge.net/projects/svn-pde-build/]. Any specific problem with this plug-in must be reported there too.  
 
Before that, Chris Vines from the community created a plug-in adding this support. It can be found at [http://sourceforge.net/projects/svn-pde-build/]. Any specific problem with this plug-in must be reported there too.  
  
= Misc  =
+
== Misc  ==
  
 
[[Category:FAQ]] [[Category:PDE]]
 
[[Category:FAQ]] [[Category:PDE]]

Revision as of 12:06, 20 July 2009

General

What is PDE

The Plug-in Development Environment (PDE) provides tools to create, develop, test, debug, build and deploy OSGi bundles and RCP applications.

Installation

How do I install PDE?

TODO

Target Management

See our Target Definitions page.

Classpath

How do I find a plug-in (bundle) given a class

If you're interested in finding a class at runtime, please use the PackageAdmin service from OSGi

How do I get access to a plug-in (bundle) in my workspace or target

Use the PluginRegistry API to acquire models from your workspace or target

I have an error that says some package (e.g., com.sun.misc) isn't accessible but it's on my classpath

In most cases, people get this error by accessing the Base64 class from the Sun VM. We generally don't recommend using the Base64 class from the VM because your bundle will be tired to only VMs that have that specific class. However, if this isn't an issue, you can get around the access restriction error by adding an access rule to your system library to make the package accessible. You can do this on the Libraries tab of the Java Build Path project properties. Add an Accessible rule for com/sun/misc/*

Also, in most cases, this package needs to be visible during runtime. To have a package visible during runtime, you will need to add the org.osgi.framework.system.packages.extra system property. For example:

org.osgi.framework.system.packages.extra==com.sun.misc,com.sun.java.swing.plaf.windows

API Tooling

How do I enable API Tooling for my projects

Build

How do I build from SVN

Out of the box, PDE Build does not have the ability to fetch code from a subversion repository. Some discussion have started to make Subversive Fetch tasl part of the BaseBuilder. Subversive provides an SVN fetch task. The corresponding plugin can be downloaded from Subversive's website and some documentation can be found on dedicated wiki page.

Before that, Chris Vines from the community created a plug-in adding this support. It can be found at [1]. Any specific problem with this plug-in must be reported there too.

Misc