Hidden access restrictions? [message #190426] |
Sat, 27 January 2007 22:14 |
Eclipse User |
|
|
|
Originally posted by: arkaaito.users.sourceforge.net
We're having a problem with apparently spurious access restriction errors.
The problem is this: we need access to certain plug-in classes in Eclipse
(JFace-related). However, when I type in the imports, it says I have access
restrictions, and I don't know why - they're not showing up on the access
restriction list. Yet these imports work fine in a different project which
has the same access restriction list. Help?
-A.s.
|
|
|
Re: Hidden access restrictions? [message #190442 is a reply to message #190426] |
Sun, 28 January 2007 02:08 |
Eclipse User |
|
|
|
Originally posted by: wayne.beaton._NOSPAM_eclipse.org
A. Smiley wrote:
> We're having a problem with apparently spurious access restriction errors.
>
> The problem is this: we need access to certain plug-in classes in Eclipse
> (JFace-related). However, when I type in the imports, it says I have access
> restrictions, and I don't know why - they're not showing up on the access
> restriction list. Yet these imports work fine in a different project which
> has the same access restriction list. Help?
>
> -A.s.
>
>
Can you give us an example of one or two of the classes that are giving
you problems?
Wayne
|
|
|
Re: Hidden access restrictions? [message #190523 is a reply to message #190442] |
Mon, 29 January 2007 09:57 |
Eclipse User |
|
|
|
Originally posted by: jakub.jurkiewicz.gmail.com
Wayne Beaton wrote:
> A. Smiley wrote:
>> We're having a problem with apparently spurious access restriction
>> errors.
>>
>> The problem is this: we need access to certain plug-in classes in
>> Eclipse (JFace-related). However, when I type in the imports, it says
>> I have access restrictions, and I don't know why - they're not showing
>> up on the access restriction list. Yet these imports work fine in a
>> different project which has the same access restriction list. Help?
>>
>> -A.s.
>>
>>
> Can you give us an example of one or two of the classes that are giving
> you problems?
>
> Wayne
Hi,
Are you developing a plug-in? If so, you need to add new dependencies in
the Dependenices tab of plugin.xml file.
regards
Jakub Jurkiewicz
|
|
|
Re: Hidden access restrictions? [message #191954 is a reply to message #190442] |
Sat, 03 February 2007 19:28 |
Eclipse User |
|
|
|
Originally posted by: arkaaito.users.sourceforge.net
Sure - I will provide a greatly abridged version (hopefully not so abridged
as to be useless). At the end of this message I've appended code from two
files authored by a contributor to the JML project. The first one gives an
access restriction error at "import
org.eclipse.jface.text.source.Annotation" - the second one gives no such
error. Both have the same set of access restrictions which allow access to
org.eclipse.jface.text.source.* (among other things).
Also, another member of my group pointed out that despite the error showing
up in the code view, it does not show up in the package explorer / hierarchy
view. Could this just be a display bug in Eclipse? I attempted to search
for evidence of such a bug when we first ran into this problem, but I
couldn't find it reported anywhere.
---
[From AbstractPreference.java:]
package org.jmlspecs.eclipse.ui;
import java.util.Collection;
// ... and some other java.util imports which work fine
import org.eclipse.jface.text.source.Annotation;
public class AbstractPreference {
// code removed
}
[From JmlChecker.java:]
package org.jmlspecs.eclipse.jmlchecker;
import java.util.ArrayList;
// etc.
import org.eclipse.jface.text.source.Annotation;
public class JmlChecker {
// etc.
}
|
|
|
Powered by
FUDForum. Page generated in 0.07823 seconds