Thomas Watson | 8 Oct 2009 23:04
Picon
Favicon

Re: attach a fragment in runtime

That console output does not look familiar to me. Is that from the Equinox console? Fragments cannot dynamically detach from a host on uninstall. The host bundle must be refreshed in order for the fragment to be completely flushed from the system. A new version of the fragment will not be allowed to attach to the host until the old version is flushed. This is done by calling PackageAdmin.refreshPackages() method on the host bundle.

HTH.

Tom



prof_trg ---10/08/2009 03:53:57 PM---Hello,


From:

prof_trg <prof.target-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

To:

equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

Date:

10/08/2009 03:53 PM

Subject:

[equinox-dev] attach a fragment in runtime




Hello,
I am trying to attach a fragment to its host at runtime, but I have some
issues...
in fact , I uninstall the fragment then I install it again, but as if it is
not detected by the host...

before uninstalling the fragment, I have this line in my console:

29 2/active Host (h:28)
28 2/resolved Fragment (f:29)

after uninstalling and then installing the fragment again :

29 2/active Host (h:28)
30 2/installed Fragment

would someone help me understanding this?
Regard
--
View this message in context: http://www.nabble.com/attach-a-fragment-in-runtime-tp25810711p25810711.html
Sent from the Equinox - Dev mailing list archive at Nabble.com.

_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


<div>
<p>That console output does not look familiar to me.  Is that from the Equinox console?  Fragments cannot dynamically detach from a host on uninstall.  The host bundle must be refreshed in order for the fragment to be completely flushed from the system.  A new version of the fragment will not be allowed to attach to the host until the old version is flushed.  This is done by calling PackageAdmin.refreshPackages() method on the host bundle.<br><br>
HTH.<br><br>
Tom<br><br><br><br>prof_trg ---10/08/2009 03:53:57 PM---Hello,<br><br></p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="1%">
<br>From:</td>
<td width="100%">
<br>prof_trg &lt;prof.target@...&gt;</td>
</tr>
<tr valign="top">
<td width="1%">
<br>To:</td>
<td width="100%">
<br>equinox-dev@...</td>
</tr>
<tr valign="top">
<td width="1%">
<br>Date:</td>
<td width="100%">
<br>10/08/2009 03:53 PM</td>
</tr>
<tr valign="top">
<td width="1%">
<br>Subject:</td>
<td width="100%">
<br>[equinox-dev] attach a fragment in runtime</td>
</tr>
</table>
<br><br><br><br>
Hello,<br>
I am trying to attach a fragment to its host at runtime, but I have some<br>
issues...<br>
in fact , I uninstall the fragment then I install it again, but as if it is<br>
not detected by the host...<br><br>
before uninstalling the fragment, I have this line in my console:<br><br>
29 2/active Host (h:28)<br>
28 2/resolved Fragment (f:29)<br><br>
after uninstalling and then installing the fragment again :<br><br>
29 2/active Host (h:28)<br>
30 2/installed Fragment<br><br>
would someone help me understanding this?<br>
Regard<br>
-- <br>
View this message in context: <a href="http://www.nabble.com/attach-a-fragment-in-runtime-tp25810711p25810711.html">http://www.nabble.com/attach-a-fragment-in-runtime-tp25810711p25810711.html</a><br>
Sent from the Equinox - Dev mailing list archive at Nabble.com.<br><br>
_______________________________________________<br>
equinox-dev mailing list<br>
equinox-dev@...<br><a href="https://dev.eclipse.org/mailman/listinfo/equinox-dev">https://dev.eclipse.org/mailman/listinfo/equinox-dev</a><br><br><br>
</div>

Gmane