Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to refresh decorators?
https://www.eclipse.org/forums/index.php/mv/msg/50886/162936/#msg_162936
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
--
I'm using an evaluation license of nemo since 86 days.
You should really try it! http://www.malcom-mac.com/nemo]]>Nicolai Kamenzky2007-11-27T21:28:20-00:00Re: How to refresh decorators?
https://www.eclipse.org/forums/index.php/mv/msg/50886/163113/#msg_163113
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
>
>]]>Cherie Revells2007-11-28T15:39:50-00:00Re: How to refresh decorators?
https://www.eclipse.org/forums/index.php/mv/msg/50886/163163/#msg_163163
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.
> 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
>>
--
I'm using an evaluation license of nemo since 86 days.
You should really try it! http://www.malcom-mac.com/nemo]]>Nicolai Kamenzky2007-11-28T18:40:25-00:00Re: How to refresh decorators?
https://www.eclipse.org/forums/index.php/mv/msg/50886/1036612/#msg_1036612
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
>>>
>
>
>]]>2013-04-08T15:57:29-00:00