Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Compile errors after setting dependencies between Rcp and NON-Rcp projects.
Compile errors after setting dependencies between Rcp and NON-Rcp projects. [message #459673] Wed, 06 December 2006 06:06 Go to next message
Eclipse UserFriend
Originally posted by: sjeevan.eclipse.org

Hi,

This is too further the discussion thread found @
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg13812.html

I have a Rcp poject (MyRCP) and several Non-rcp projects (ProjA, ProjB &
ProjeC).
MyRCP uses objects implemented in ProjA. (ProjB and ProjC also use ProjA)

As suggested by Paul, I made ProjA, ProjB & ProjeC into plugin-projects
("PDE Tools>Convert java projects to plugin projects.")

In the MyRCP, plugin.xml, Dependencies tab, required Plug-ins added ProjA,
ProjB & ProjeC which were now visible.

But I get compile errors in MyRCP code like:

Access restriction: The method method-Name(interfaceName) from the type
MyInterface is not accessible due to restriction on required project
projA ..... .java line 26

I cannot figure out what the problem is.

ProjB and ProjC which are dependant on ProjA can use method-Nameof
MyInterface.java

Any clues will be appreciated.

thx
~g1
Re: Compile errors after setting dependencies between Rcp and NON-Rcp projects. [message #459676 is a reply to message #459673] Wed, 06 December 2006 07:19 Go to previous message
Eclipse UserFriend
Check if ProjA exposes all packages needed by MyRCP and that MyRCP
depends on ProjA, or ProjB/ProjC exports the dependent packages from ProjA.

Regards
Stefan

sjeevan wrote:
> Hi,
>
> This is too further the discussion thread found @
> http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg13812.html
>
> I have a Rcp poject (MyRCP) and several Non-rcp projects (ProjA, ProjB &
> ProjeC).
> MyRCP uses objects implemented in ProjA. (ProjB and ProjC also use ProjA)
>
> As suggested by Paul, I made ProjA, ProjB & ProjeC into plugin-projects
> ("PDE Tools>Convert java projects to plugin projects.")
>
> In the MyRCP, plugin.xml, Dependencies tab, required Plug-ins added
> ProjA, ProjB & ProjeC which were now visible.
>
> But I get compile errors in MyRCP code like:
>
> Access restriction: The method method-Name(interfaceName) from the type
> MyInterface is not accessible due to restriction on required project
> projA ..... .java line 26
>
> I cannot figure out what the problem is.
>
> ProjB and ProjC which are dependant on ProjA can use method-Nameof
> MyInterface.java
> Any clues will be appreciated.
>
> thx
> ~g1
>
>
>
>
Previous Topic:How to show stack trace with error dialog in eclipse workbench
Next Topic:Activator class - newbie question
Goto Forum:
  


Current Time: Wed Mar 26 05:23:43 EDT 2025

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

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

Back to the top