Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] How should clients be expected to dispose of IEclipseContext instances?

If code creates a creates a context with EclipseContextFactory then
they should  dispose  it when they're done with it.  i.e. in our
model/renderer code we have to create and dispose the context.  We use
the pattern with IDisposable (as you found :-)

if (context implements IDisposable) {
  ((IDisposable)context).dispose();
}

PW

-- 
Paul Webster
Hi floor.  Make me a sammich! - GIR


Back to the top