Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Access restriction occured when using "org.eclipse.ui.ide"
Access restriction occured when using "org.eclipse.ui.ide" [message #465889] Wed, 11 April 2007 15:43 Go to next message
Zhang Peng is currently offline Zhang PengFriend
Messages: 30
Registered: July 2009
Member
Hello, everyone!

I built an rcp application and dependent on the eclipse
ide(org.eclipse.ui.ide),the application can run in the eclipse
workspace, but after i created the .product file and syncronized the
..product file and the plugin-projects, some errors appeared, they are
the similar errors like this:

Access restriction: The type IFileEditorInput is not accessible due to
restriction on required library
E:\Eclipse-experimental\eclipse\plugins\org.eclipse.ui.ide_3 .3.0.I20070321-1300a.jar

I refreshed, rebuild, or even download a new version of eclipse, but the
same errors still appear. Could any one tell me how to solve these problems?

Thank you!
Re: Access restriction occured when using "org.eclipse.ui.ide" [message #465891 is a reply to message #465889] Wed, 11 April 2007 16:24 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
caveats: (a) I'm no expert, and (b) I have not tried putting IDE components into an RCP (not sure if
that can be made to work...)

BUT ... I think that downloading new versions and so on is not required. I believe that what you are
seeing is an instance of the very common error (by which I've been bitten more times than I can
easily count) of not specifying "I want that plug-in" in all the places in which you must do so, in
order to compile/ run/ export an RCP.

There are three places:
a) dependencies tab (required to get things to compile) -- I think you must be ok here
b) launch-config (required to get the RCP to run from within Eclipse) -- I think you must be ok here
c) in the .product file, "Configuration" tab -- EITHER list all plug-ins you need, OR (BETTER)
define features (that declare the plug-ins they need) and list all features -- required to get a
correct export

My guess is step c is defective in your RCP .product

HTH,
Paul
Re: Access restriction occured when using "org.eclipse.ui.ide" [message #466272 is a reply to message #465889] Tue, 17 April 2007 12:18 Go to previous messageGo to next message
Nicolai Czempin is currently offline Nicolai CzempinFriend
Messages: 21
Registered: July 2009
Junior Member
It's not a bug, it's a feature. Internal classes are not safe (they can be changed any time, etc.),
not meant to be used.

If you want to bypass these restrictions, go to
Windows->Preferences->Java->Compiler->Errors/Warnings->Deprecated and Restricted API,
and set the "Forbidden reference (access rules)" to "Warning" (or "Ignore").


nemo schrieb:
> Hello, everyone!
>
> I built an rcp application and dependent on the eclipse
> ide(org.eclipse.ui.ide),the application can run in the eclipse
> workspace, but after i created the .product file and syncronized the
> .product file and the plugin-projects, some errors appeared, they are
> the similar errors like this:
>
> Access restriction: The type IFileEditorInput is not accessible due to
> restriction on required library
> E:\Eclipse-experimental\eclipse\plugins\org.eclipse.ui.ide_3 .3.0.I20070321-1300a.jar
>
> I refreshed, rebuild, or even download a new version of eclipse, but the
> same errors still appear. Could any one tell me how to solve these problems?
>
> Thank you!
Re: Access restriction occured when using "org.eclipse.ui.ide" [message #466293 is a reply to message #465889] Tue, 17 April 2007 13:47 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What does your RCP MANIFEST.MF file look like?

Is your PDE target just your eclipse install, or is it an RCP SDK install?

PW


Previous Topic:public alternative for getShowViewActionIds method in Eclipse 3.2
Next Topic:Can anybody look at this........
Goto Forum:
  


Current Time: Fri Apr 26 05:48:37 GMT 2024

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

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

Back to the top