Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Databinding Access Restriction
Databinding Access Restriction [message #332952] Sun, 16 November 2008 14:36 Go to next message
Ralph Bosson is currently offline Ralph BossonFriend
Messages: 16
Registered: July 2009
Junior Member
Hi

I have been developing with Eclipse since 3.0 so I have had some
experience with accessing Eclipse plug-ins. The problem I describe below
feels like an Eclipse internals issue, but, I like to know what others
think before running this through bugzilla. So thanks for your time.

Platform.
Eclipse 3.4.1
OS X 10.5.5

Here's my situation:

Plugin (B) contains a view and uses the imports
org.eclipse.core.databinding.DataBindingContext,
org.eclipse.core.databinding.beans.BeansObservables,
org.eclipse.core.databinding.observable.value.IObservableVal ue.

All works as described until I add
org.eclipse.core.databinding to a Plugin (A) that Plugin (B) depends on.

After adding org.eclipse.core.databinding to Plugin (A) the following
import statements go bad in Plugin (B).
import org.eclipse.core.databinding.DataBindingContext;
import org.eclipse.core.databinding.observable.value.IObservableVal ue;
The error message is "Access restriction: The type (substitute import)
is not accessible due to restrictions on required library /
myEclipseInstallation/plugins/org.eclipse.core.databinding "

I have tried moving org.eclipse.core.databinding around in both
Plugins in any number of combinations using the Required Plug-ins and
Imported Packages categories found in their MANIFEST to no avail. If I
have developed some type of brain cramp and I'm missing the obvious, I
would really appreciate a heads up. Thanks again for your time.
Re: Databinding Access Restriction [message #332956 is a reply to message #332952] Mon, 17 November 2008 07:39 Go to previous messageGo to next message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
Could you file a bug and attach a zip with which we can reproduce this?
Don't send us all your code, just create two new projects and try to
reproduce the situation.

Boris

"Ralph Bosson" <rbosson@corgroup.com> wrote in message
news:a921dbb93e7e4265774732e3dbee9eae$1@www.eclipse.org...
> Hi
>
> I have been developing with Eclipse since 3.0 so I have had some
> experience with accessing Eclipse plug-ins. The problem I describe below
> feels like an Eclipse internals issue, but, I like to know what others
> think before running this through bugzilla. So thanks for your time.
>
> Platform.
> Eclipse 3.4.1
> OS X 10.5.5
>
> Here's my situation:
>
> Plugin (B) contains a view and uses the imports
> org.eclipse.core.databinding.DataBindingContext,
> org.eclipse.core.databinding.beans.BeansObservables,
> org.eclipse.core.databinding.observable.value.IObservableVal ue.
>
> All works as described until I add org.eclipse.core.databinding to a
> Plugin (A) that Plugin (B) depends on.
> After adding org.eclipse.core.databinding to Plugin (A) the following
> import statements go bad in Plugin (B).
> import org.eclipse.core.databinding.DataBindingContext;
> import org.eclipse.core.databinding.observable.value.IObservableVal ue;
> The error message is "Access restriction: The type (substitute import) is
> not accessible due to restrictions on required library /
> myEclipseInstallation/plugins/org.eclipse.core.databinding "
>
> I have tried moving org.eclipse.core.databinding around in both Plugins
> in any number of combinations using the Required Plug-ins and Imported
> Packages categories found in their MANIFEST to no avail. If I have
> developed some type of brain cramp and I'm missing the obvious, I would
> really appreciate a heads up. Thanks again for your time.
>
Re: Databinding Access Restriction [message #332979 is a reply to message #332956] Mon, 17 November 2008 19:48 Go to previous messageGo to next message
Ralph Bosson is currently offline Ralph BossonFriend
Messages: 16
Registered: July 2009
Junior Member
Boris,

Thanks for responding. I have been at this all day and have made little
progress. As-per your request I tried to recreate this problem by
creating two simple plugins that would reproduce the result. For purpose
of explanation I will call them PluginC and PluginD. Using PluginC in
place of PluginA and PluginD in place of PluginB I was unable to reproduce
the problem. When I paired PluginA with PluginD I was able to reproduce
the problem. I imported all the imports and plugin dependencies that
PluginA uses into PluginC to see if there was a combination issue I had
missed in my earlier tests. However, I was still unable to reproduce the
error.

I decided to clear the deck and give myself a clean workspace. I
downloaded a fresh copy of Eclipse 3.4.1 and set it up to match my
environment. Created a new workspace, imported the required plugin
projects to the new workspace and got the same result. I might fit a
common definition of crazy.

I then removed PluginA from PluginB's dependencies list. Which of course
removed the Access Restriction error from the databinding import
statement. I then added exported packages from PluginA to PluginB import
list. No matter what package was added the databinding Access Restriction
error reappeared in PluginB. Maybe this means something to someone, but, I
can't think of anything else to try.

-Ralph
Re: Databinding Access Restriction [message #332980 is a reply to message #332956] Mon, 17 November 2008 20:05 Go to previous messageGo to next message
Ralph Bosson is currently offline Ralph BossonFriend
Messages: 16
Registered: July 2009
Junior Member
Also,

I created the same Eclipse environment on a Windows XPsp2 system and got
the same result. It appears that there is something in PluginA the is
giving databindings a problem when loaded. Any ideas on what could be
creating an issue like this?

-Ralph
Re: Databinding Access Restriction [message #333060 is a reply to message #332980] Mon, 24 November 2008 01:09 Go to previous message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
I have no idea, but if you are not able to reproduce the problem with new
plugin projects, how about you create new plugin projects and import just
your code (i.e. not the complete "broken" projects)? There must be something
wrong with your .classpath or MANIFEST.MF files.

Boris

"Ralph Bosson" <rbosson@corgroup.com> wrote in message
news:8466b04790f42287f414e9473747d6cc$1@www.eclipse.org...
> Also,
>
> I created the same Eclipse environment on a Windows XPsp2 system and got
> the same result. It appears that there is something in PluginA the is
> giving databindings a problem when loaded. Any ideas on what could be
> creating an issue like this?
>
> -Ralph
Previous Topic:[Databinding] Need cron-like use-case help
Next Topic:Contributing org.eclipse.ui.menus to actionSets
Goto Forum:
  


Current Time: Thu Apr 25 23:58:49 GMT 2024

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

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

Back to the top