Community
Participate
Working Groups
Build Identifier: 20110615-0604 I get 'Access to referenced class 'org.eclipse.xtext.builder.nature.ToggleXtextNatureAction' in attribute 'class' is discouraged' in my plugin.xml, EVEN if I've configured the access rules. This is how the classpath for that project looks like the attached file. The problem is, in the .java files the warning is not triggered, only in the plugin.xml. Reproducible: Always
Created attachment 201627 [details] The classpath file
Hmm.. It should be eclipse indigo. 3.7
Can you provide more detailed steps? When I add an access rule to the PDE container, I get warnings on any java file using packages that match that access rule.
I have my plugin project: 1) Right click on it 2) Build Path -> Configure Build Path 3) Libraries tab 4) Expand the "Plug-in dependencies", and select the "Access Rules: ..." item. 5) In the right menu, select "Edit" 6) "Add..." Button 7) Selecting resolution: "Accessible", and as rule pattern: "org/eclipse/xtext/builder/nature/**" Rebuilding occurs. However, in my plugin.xml I *still* get that warning for discouraged access, even though I've added that rule. That is, the build path access rules are not checked by the plugin.xml builder :( And they should. Or not?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.