Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Ho to make packages in my feature available to plug-in developers
Ho to make packages in my feature available to plug-in developers [message #461122] Fri, 05 January 2007 10:02 Go to next message
Dan Phifer is currently offline Dan PhiferFriend
Messages: 72
Registered: July 2009
Member
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).
Re: Ho to make packages in my feature available to plug-in developers [message #461129 is a reply to message #461122] Fri, 05 January 2007 12:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krishna.kamath.gmail.com

Hi Dan,

In the plugin.xml file, go to the runtime subtab. There add all the
packages that you want to expose to other plugin developers.

Hope this solves your problem. :)

Regards,
Krishna
Re: Ho to make packages in my feature available to plug-in developers [message #461131 is a reply to message #461129] Fri, 05 January 2007 13:38 Go to previous messageGo to next message
Dan Phifer is currently offline Dan PhiferFriend
Messages: 72
Registered: July 2009
Member
Krishna,
All of my packages are already listed under the Exported Packages section
on the Runtime tab. Any other ideas?
Re: Ho to make packages in my feature available to plug-in developers [message #461133 is a reply to message #461131] Fri, 05 January 2007 14:29 Go to previous messageGo to next message
Andy Czerwonka is currently offline Andy CzerwonkaFriend
Messages: 42
Registered: July 2009
Member
Expose them in your plugins, not your features.

"Dan Phifer" <dan.phifer@gmail.com> wrote in message
news:7fc150dff7a4b2eef03a6586613fbd71$1@www.eclipse.org...
> Krishna,
> All of my packages are already listed under the Exported Packages section
> on the Runtime tab. Any other ideas?
>
Re: How to make packages in my feature available to plug-in developers [message #461139 is a reply to message #461133] Fri, 05 January 2007 15:13 Go to previous messageGo to next message
Dan Phifer is currently offline Dan PhiferFriend
Messages: 72
Registered: July 2009
Member
> Expose them in your plugins, not your features.

Andy, I'm not sure what you mean. For each plugin in my feature, I have
gone to the plugin.xml file and on the Runtime tab I have selected all of
the packages in my project. I then created a feature project and included
my plug-ins, but that seems to be independent of what gets exported.
Steps to reproduce [message #461143 is a reply to message #461122] Fri, 05 January 2007 15:49 Go to previous message
Dan Phifer is currently offline Dan PhiferFriend
Messages: 72
Registered: July 2009
Member
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?
Previous Topic:how can a change to a viewer's content be picked up via the selection service?
Next Topic:Classsloading Problem
Goto Forum:
  


Current Time: Fri Apr 19 09:49:38 GMT 2024

Powered by FUDForum. Page generated in 0.02160 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top