Ho to make packages in my feature available to plug-in developers [message #461122] |
Fri, 05 January 2007 05:02  |
Eclipse User |
|
|
|
A few of the plug-ins within my feature define interfaces and abstract
classes that should be visible to plug-in developers after they have
installed the feature and added my plug-ins as dependencies. However, the
classes do not appear to be available unless, after installing the
feature, I go to the plug-ins view and import the plug-in as a source or
binary project. For other plug-ins, such as org.eclipse.ui, adding the
plug-in as a dependency in my plug-in project is all I need to do to be
able to use the packages/classes that org.eclipse.ui exports. What am I
doing wrong? (For now, all packages in all of my plug-ins are in the
"Export Packages" list and "visible to downstream plug-ins" is selected).
|
|
|
|
|
|
|
Steps to reproduce [message #461143 is a reply to message #461122] |
Fri, 05 January 2007 10:49  |
Eclipse User |
|
|
|
Steps to reproduce this problem. I am using Eclipse 3.2. Create a new
plug-in project, TestExport, use the defaults (targeted to run with
Eclipse 3.2). Click next.
<BR>
Uncheck "this plug-in will make contributions to the UI". Click next.
<BR>
Uncheck "Create a plug-in using one of the templates".
<BR>
In your new plug-in project, create a new class, such as MyTestClass.java.
<BR>
Be sure to list the package under the Exported Packages on the Runtime
tab.
<BR>
Export the project using the export wizard for Deployable plugins and
fragments to a zip file.
<BR>
Extract the zip file into an eclipse installation. Create a new plug-in
project, TestImport, and list the TestExport project as a dependency.
Create a new java class and try to reference the MyTestClass. I cannot
reference the MyTestClass. Am I doing something wrong?
|
|
|
Powered by
FUDForum. Page generated in 0.05356 seconds