Single Sourcing - Fragment Project question [message #138045] |
Thu, 25 June 2009 23:23  |
Eclipse User |
|
|
|
Originally posted by: michael.suwiryo.siemens.com
Hi,
I'm trying to make single sourcing on our RCP and RAP application. Basically
I'm using fragment plugin project to separate any API differences between
RCP and RAP.
I encounter some issue when trying to access concrete class defined in the
fragment plugin from within my host plugin. I get 'class can't be resolved'
error.
However, I don't have any problem accessing concrete class from host plugin
in the fragment plugin.
Is there anything I miss here when creating fragment project? Thanks.
Regards,
Michael Suwiryo
|
|
|
|
Re: Single Sourcing - Fragment Project question [message #138450 is a reply to message #138056] |
Sat, 27 June 2009 15:10  |
Eclipse User |
|
|
|
Originally posted by: michael.suwiryo.siemens.com
That makes sense. Thanks, Elias.
Regards,
Michael
"Elias Volanakis" <eclipse-dev@volanakis.de> wrote in message
news:h21hg4$qre$1@build.eclipse.org...
> Hi Michael,
>
> the only way to have plug-in code call fragment-code is to use reflection.
>
> The reason is that the fragment classes are only available on the plug-in
> classpath at runtime.
>
> By design, there is no way for the plug-in to know which fragments to it
> exist at compile time. In other words: if you look at the MANIFEST.MFs,
> you can see that the fragment knows it's host plugin, but the host plugin
> does not know it's fragments.
>
> Hope this helps,
> Elias.
>
> Michael Suwiryo wrote:
>> Hi,
>>
>> I'm trying to make single sourcing on our RCP and RAP application.
>> Basically I'm using fragment plugin project to separate any API
>> differences between RCP and RAP.
>>
>> I encounter some issue when trying to access concrete class defined in
>> the fragment plugin from within my host plugin. I get 'class can't be
>> resolved' error.
>>
>> However, I don't have any problem accessing concrete class from host
>> plugin in the fragment plugin.
>>
>> Is there anything I miss here when creating fragment project? Thanks.
>>
>> Regards,
>> Michael Suwiryo
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02445 seconds