Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Access restriction: The type <type> is not accessible ...
Access restriction: The type <type> is not accessible ... [message #464277] Thu, 01 March 2007 08:58 Go to next message
Eclipse UserFriend
Originally posted by: nagel.trium.de

Hi all,

I get error messages of the form "Access restriction: The type <type> is
not accessible due to restriction on required project <project>", although
all packages of the <project> are exported. I get no such error messages
in comparable situations, adressing types of other plug-ins.

Have you any idea, what the reason could be?

Thanks,
Lars
Re: Access restriction: The type <type> is not accessible ... [message #464285 is a reply to message #464277] Thu, 01 March 2007 11:18 Go to previous messageGo to next message
Eclipse UserFriend
Is the required <project> listed in your Manifest.mf Require-Bundle header? (or
Import-Package).

-Andrew

Lars Nagel wrote:
> Hi all,
>
> I get error messages of the form "Access restriction: The type <type> is
> not accessible due to restriction on required project <project>",
> although all packages of the <project> are exported. I get no such error
> messages in comparable situations, adressing types of other plug-ins.
>
> Have you any idea, what the reason could be?
>
> Thanks,
> Lars
>
>
>
Re: Access restriction: The type <type> is not accessible ... [message #464293 is a reply to message #464285] Thu, 01 March 2007 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nagel.trium.de

Andrew Niefer wrote:
> Is the required <project> listed in your Manifest.mf Require-Bundle header?
(or
> Import-Package).

Yes, it is listed in it. The project is de.dimd.ctk.util.

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Permissionhandler Plug-in
Bundle-SymbolicName: de.dimdi.ctk.permissionhandler;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: de.dimdi.ctk.permissionhandler.PermissionHandlerPlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
de.dimdi.ctk.dbconnector,
org.eclipse.jface.text,
de.dimdi.ctk.util
Eclipse-LazyStart: true
Export-Package: de.dimdi.ctk.permissionhandler,
de.dimdi.ctk.permissionhandler.control
Bundle-ClassPath: library.jar


> Lars Nagel wrote:
>> Hi all,
>>
>> I get error messages of the form "Access restriction: The type <type> is
>> not accessible due to restriction on required project <project>",
>> although all packages of the <project> are exported. I get no such error
>> messages in comparable situations, adressing types of other plug-ins.
>>
>> Have you any idea, what the reason could be?
>>
>> Thanks,
>> Lars
>>
>>
>>
Re: Access restriction: The type <type> is not accessible ... [message #464299 is a reply to message #464293] Thu, 01 March 2007 12:48 Go to previous messageGo to next message
Eclipse UserFriend
If the de.dimdi.ctk.util plug-in is one that you wrote check the open
the manifest editor for that plug-in and make sure you are exporting the
package for the type you are trying to use. The package exports are
listed under the runtime tab of the editor.

Lars Nagel wrote:
> Andrew Niefer wrote:
>> Is the required <project> listed in your Manifest.mf Require-Bundle
>> header?
> (or
>> Import-Package).
>
> Yes, it is listed in it. The project is de.dimd.ctk.util.
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: Permissionhandler Plug-in
> Bundle-SymbolicName: de.dimdi.ctk.permissionhandler;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-Activator: de.dimdi.ctk.permissionhandler.PermissionHandlerPlugin
> Bundle-Localization: plugin
> Require-Bundle: org.eclipse.ui,
> org.eclipse.core.runtime,
> de.dimdi.ctk.dbconnector,
> org.eclipse.jface.text,
> de.dimdi.ctk.util
> Eclipse-LazyStart: true
> Export-Package: de.dimdi.ctk.permissionhandler,
> de.dimdi.ctk.permissionhandler.control
> Bundle-ClassPath: library.jar
>
>
>> Lars Nagel wrote:
>>> Hi all,
>>>
>>> I get error messages of the form "Access restriction: The type <type>
>>> is not accessible due to restriction on required project <project>",
>>> although all packages of the <project> are exported. I get no such
>>> error messages in comparable situations, adressing types of other
>>> plug-ins.
>>>
>>> Have you any idea, what the reason could be?
>>>
>>> Thanks,
>>> Lars
>>>
>>>
>>>
>
>
Re: Access restriction: The type <type> is not accessible ... [message #464303 is a reply to message #464299] Thu, 01 March 2007 15:12 Go to previous message
Eclipse UserFriend
Originally posted by: nagel.trium.de

Scott Hathaway wrote:

> If the de.dimdi.ctk.util plug-in is one that you wrote check the open
> the manifest editor for that plug-in and make sure you are exporting the
> package for the type you are trying to use. The package exports are
> listed under the runtime tab of the editor.

As I wrote, I export all packages. And other plug-ins have no problem to
access the type.

> Lars Nagel wrote:
>> Andrew Niefer wrote:
>>> Is the required <project> listed in your Manifest.mf Require-Bundle
>>> header?
>> (or
>>> Import-Package).
>>
>> Yes, it is listed in it. The project is de.dimd.ctk.util.
>>
>> Manifest-Version: 1.0
>> Bundle-ManifestVersion: 2
>> Bundle-Name: Permissionhandler Plug-in
>> Bundle-SymbolicName: de.dimdi.ctk.permissionhandler;singleton:=true
>> Bundle-Version: 1.0.0
>> Bundle-Activator: de.dimdi.ctk.permissionhandler.PermissionHandlerPlugin
>> Bundle-Localization: plugin
>> Require-Bundle: org.eclipse.ui,
>> org.eclipse.core.runtime,
>> de.dimdi.ctk.dbconnector,
>> org.eclipse.jface.text,
>> de.dimdi.ctk.util
>> Eclipse-LazyStart: true
>> Export-Package: de.dimdi.ctk.permissionhandler,
>> de.dimdi.ctk.permissionhandler.control
>> Bundle-ClassPath: library.jar
>>
>>
>>> Lars Nagel wrote:
>>>> Hi all,
>>>>
>>>> I get error messages of the form "Access restriction: The type <type>
>>>> is not accessible due to restriction on required project <project>",
>>>> although all packages of the <project> are exported. I get no such
>>>> error messages in comparable situations, adressing types of other
>>>> plug-ins.
>>>>
>>>> Have you any idea, what the reason could be?
>>>>
>>>> Thanks,
>>>> Lars
>>>>
>>>>
>>>>
>>
>>
Previous Topic:Strange behavior with setSaveAndRestore
Next Topic:RCP application like eclipse IDE
Goto Forum:
  


Current Time: Tue Apr 15 00:39:18 EDT 2025

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

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

Back to the top