[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ptp-dev] Problem with IRuntimeRemoveNodeEvent
|
On Jun 7, 2007, at 12:45 PM, Dave Wootton wrote:
I'm having problems with getting a PROXY_EV_RT_REMOVE_NODE event
sent from
my proxy to delete the node object from the machine view. My proxy
code
calls proxy_remove_node_event to create the event object that I
sent to
the front end. This generates a message with two parameters, an
integer
'1', and the second parameter, which is a single node identifier,
using
the id number generated by my proxy. The front end gets this event but
does not do anything with it.
I tried to debug this and found that the
handleEvent(IRuntimeRemoveNodeEvent) method at about line 441 in
AbstractRuntimeResourceManager is not properly matching the event
id sent
from the proxy. I think part of the problem is that the method
handleEvent(IProxyRuntimeRemoveNodeEvent) in
AbstractProxyRuntimeSystem
near line 509 is using attrs[0] rather than attrs[1]. If I change
this to
use attrs[1], then the event is matched and removeNode() is called.
Actually it was the C proxy code that was formatting the event
incorrectly. I've updated it now.
However, the machines view does not seem to be deleting the node icon.
Originally, when my job ended, the node icon changed from a diamond on
green background to caution icon on green background. Now it
changes to
caution icon, then to a question mark on white background.
Ah. That would be because I haven't hooked remove events up to the
views yet. I wasn't expecting you to start using them so quickly :-).
I'll take a look now.
Dave
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev