Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Event hierarchy confusion and problem

<stuff deleted>


Not sure I agree that that would be the best solution. I would in fact rather have the getSource() return null in case it's not available. If all I want is those values, that would give me a chance to do the following:

IIncomingFileTransfer src = event.getSource();
if(src != null)
  pickWantedValues(src);
else {
// Ouch, no source until we start the transfer. So let's start it and then cancel
  // once we have the values that we want.
  src = event.receive(output stream to /dev/null);
  pickWantedValues(src);
  event.cancel();
}

Ok...let's do the reparenting of the event type hierarchy then. Would you please file a bug or attach patch to existing relevant bug and I'll try to get to it as soon as I can.

Scott



Back to the top