Compile errors after setting dependencies between Rcp and NON-Rcp projects. [message #459673] |
Wed, 06 December 2006 06:06  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02752 seconds