de-select a shape on double click [message #650473] |
Tue, 25 January 2011 02:52  |
Eclipse User |
|
|
|
Hi,
I'm trying to de-select a shape on a double click.
I'm using a AbstractCustomFeature and in the execute method I'm just doing
public void execute(ICustomContext context) {
getDiagramEditor().setPictogramElementForSelection(null);
getDiagramEditor().refresh();
}
But this doesn't remove the selection feedback from the current figure.
Any hints what I can do?
Thanks,
Henrik
|
|
|
|
Re: de-select a shape on double click [message #650497 is a reply to message #650481] |
Tue, 25 January 2011 04:50  |
Eclipse User |
|
|
|
Michael,
fine, I changed that to
getDiagramEditor().selectPictogramElements(new PictogramElement[] {});
(without refresh).
Now it works like a charm :-)
-Henrik
Am 25.01.2011 09:12, schrieb Michael Wenz:
> Hi Henrik,
>
> this metthod is just a setted for a member variable that is actually
> read while doing a refresh (lazy refresh). Try calling refresh on the
> editor afterwards or using selectPictogramElements.
>
> Michael
>
>
> "Henrik Rentz-Reichert" wrote in message
> news:ihlv4q$51r$1@news.eclipse.org...
>
> Hi,
>
> I'm trying to de-select a shape on a double click.
> I'm using a AbstractCustomFeature and in the execute method I'm just doing
>
> public void execute(ICustomContext context) {
> getDiagramEditor().setPictogramElementForSelection(null);
> getDiagramEditor().refresh();
> }
>
> But this doesn't remove the selection feedback from the current figure.
>
> Any hints what I can do?
>
> Thanks,
> Henrik
|
|
|
Powered by
FUDForum. Page generated in 0.03220 seconds