Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plugins Access restriction
Plugins Access restriction [message #523445] Fri, 26 March 2010 13:43 Go to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

I'm using Eclipse Helios M6 on Ubuntu 9.10 to develop some plugins
(available at
https://gforge.inria.fr/scm/viewvc.php/trunk/v1/?root=calico). My
problem is a stupid dependencies problem, I have a plugin containing a
class which inherits from a class in another plugin, then the first
plugin declares in its MANIFEST.MF than it requires the second plugin
with the Require-Bundle keyword.

This second plugin reexport its dependencies which are needed by the
first plugin. But in the imports of my first class (in my first plugin)
I have java errors :

"Access restriction: The _____ is not accessible due to restriction on
required library _____"

while its required libraries are on the project build path from "Plug-in
Dependencies"

I have tried to change the reexported plugins from the second plugin as
direct dependencies of the first plugin, but without improvments.


I don't understand my mistake, I begin to believe to a PDE bug, if
someone could checkout these projects to see my problem.


In my project the first plugin project is
fr.inria.adam.calico.models.instrumentation.fractal
at
https://gforge.inria.fr/scm/viewvc.php/trunk/v1/plugins/fr.i nria.adam.calico.models.instrumentation.fractal/?root=calico

and the second is
fr.inria.adam.calico.models.generation.xpand.fractalTemplate
at
https://gforge.inria.fr/scm/viewvc.php/trunk/v1/plugins/fr.i nria.adam.calico.models.generation.xpand.fractalTemplate/?ro ot=calico


Thanks in advance.
Esteban
Re: Plugins Access restriction [message #523742 is a reply to message #523445] Mon, 29 March 2010 06:35 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Problems solved.

The problem was that I had "Plug-in Dependencies" entry checked in my
build path configuration (in "Order and Export" pane).

I don't know if it is a normal behaviour, this configuration pane (to
export library from build path to dependend projects) seems redundant to
"Dependencies" pane from the MANIFEST.MF tabbed editor where we can
also reexport required plugins to dependent plugins.

Having required plugins exported with these two configuration panes
causes a "Access restriction" java error in my problems view.

Regards.
Re: Plugins Access restriction [message #605307 is a reply to message #523445] Mon, 29 March 2010 06:35 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Problems solved.

The problem was that I had "Plug-in Dependencies" entry checked in my
build path configuration (in "Order and Export" pane).

I don't know if it is a normal behaviour, this configuration pane (to
export library from build path to dependend projects) seems redundant to
"Dependencies" pane from the MANIFEST.MF tabbed editor where we can
also reexport required plugins to dependent plugins.

Having required plugins exported with these two configuration panes
causes a "Access restriction" java error in my problems view.

Regards.
Previous Topic:Need some references for learning modules/facets/servers etc
Next Topic:Simple plugin export and install
Goto Forum:
  


Current Time: Thu Apr 25 09:05:48 GMT 2024

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

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

Back to the top