|
|
|
Re: How to refresh decorators? [message #1036612 is a reply to message #163163] |
Mon, 08 April 2013 15:57 |
Eclipse User |
|
|
|
Hy guys, it comes late but can be usefull, here is way to refresh
decorators :
EditPolicy ep = getEditPolicy(EditPolicyRoles.DECORATION_ROLE);
if (ep != null && ep instanceof GraphicalEditPolicyEx){
((GraphicalEditPolicyEx)ep).refresh();
}
Ludovic
Le 28/11/2007 19:40, Nicolai Kamenzky a écrit :
> Hi Cherie,
>
> I have already implemented it this way but I have
> the problem that I don't know when to remove those
> instances.
> If I don't remove them from my list the number of
> instances is only increasing and thus consume too
> much memory.
> Without adding them to my list those instances
> would be garbage collected at some point.
>
> Any suggestions?
> Nicolai
>
> In article <fik2am$n1u$1@xxxxxxxxe.org> Cherie
> Revells<crevells@xxxxxxxx.com> wrote:
>> Nicolai,
>
>> You will need to keep track of your IDecorator instances somewhere
>> if you need the ability to refresh them all. You might be able to
>> keep a static list in your IDecoratorProvider that is updated when
>> a new decorator is added.
>
>> Regards,
>> Cherie
>
>> Nicolai Kamenzky wrote:
>>> Hi!
>>>
>>> I have successfully implemented IDecoratorProvider and
>>> IDecorator and want to refresh my decorators
>>> programmatically.
>>>
>>> Refreshing works fine if I call refresh() of all my
>>> IDecorator instances.
>>>
>>> But where do I get to know the currently existing
>>> IDecorator instances?
>>>
>>> Cheers,
>>> Nicolai
>>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02959 seconds