Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Disposing Images returned by ILabelDecorator

Boris,

Questions like this are better posted to the newsgroup so that others can 
contribute and benefit from the discussion.
This list and the other team mailing lists are intended mainly for 
internal development issues.

To answer your question, label providers and label decorators are 
responsible for disposing any images they create.
They should cache the images internally, to avoid recreating them each 
time they are needed, and implement dispose() to free any cached images.
dispose() is called by the viewer when its control is disposed.

Nick





<boris+mailinglists.platform-ui-dev@xxxxxxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
05/06/02 05:37 AM
Please respond to platform-ui-dev

 
        To:     <platform-ui-dev@xxxxxxxxxxx>
        cc: 
        Subject:        [platform-ui-dev] Disposing Images returned by ILabelDecorator



One small question concering decorators. Who is supposed to dispose Image 
objects returned by ILabelDecorator.decorateImage ?

Greetings,
Boris

-- 
"Engineering does not require science. Science helps a lot but 
people built perfectly good brick walls long before they knew why 
cement works." - Alan Cox


_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev





Back to the top