Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Access restriction for ResourceException(Access restriction for ResourceException)
icon2.gif  Access restriction for ResourceException [message #757206] Thu, 17 November 2011 06:03 Go to next message
tskumarme is currently offline tskumarmeFriend
Messages: 13
Registered: November 2011
Junior Member
Hi All,

I've imported org.eclipse.core.internal.resources.ResourceException to catch resource exceptions in my eclipse plugin, where my code checks the workspace path related constraints.
Able to catch ResourceException and works fine even the log doesn't have any warning/error regarding this exception.
But in eclipse IDE shows a warning of "No access rights" for this package and gives suggestion as suppresswarnings.

Is this package accessible? Shocked Do I need to change/do anything? Thanks in advance.
Re: Access restriction for ResourceException [message #757921 is a reply to message #757206] Thu, 17 November 2011 09:43 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 17.11.2011 07:03, tskumarme wrote:
> Hi All,
>
> I've imported
> org.eclipse.core.internal.resources.ResourceException to catch
> resource exceptions in my eclipse plugin, where my code checks the
> workspace path related constraints.
> Able to catch ResourceException and works fine even the log
> doesn't have any warning/error regarding this exception.
> But in eclipse IDE shows a warning of "No access rights" for this
> package and gives suggestion as suppresswarnings.
>
> Is this package accessible? 8o Do I need to change/do anything?
> Thanks in advance.
It's internal and subject to change. You should not refer to internal
classes. Use org.eclipse.core.runtime.CoreException instead.

Dani
Re: Access restriction for ResourceException [message #758713 is a reply to message #757921] Thu, 24 November 2011 11:00 Go to previous messageGo to next message
tskumarme is currently offline tskumarmeFriend
Messages: 13
Registered: November 2011
Junior Member
No Message Body
Re: Access restriction for ResourceException [message #758714 is a reply to message #758713] Thu, 24 November 2011 11:02 Go to previous message
tskumarme is currently offline tskumarmeFriend
Messages: 13
Registered: November 2011
Junior Member
Hi Dani,

Thanks for your reply and I wanted to display a custom message to the user, that time without using this type of exception I'm not able to proceed.
Previous Topic:Can't start Eclipse on Mac OS X 10.7.2
Next Topic:Jess in eclipse
Goto Forum:
  


Current Time: Sun May 12 12:41:31 GMT 2024

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

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

Back to the top