|
|
|
Re: How to programmatically set an EditPart to be selected [message #145644 is a reply to message #145637] |
Tue, 07 August 2007 10:49   |
Eclipse User |
|
|
|
Hi Tina,
If you have an edit part (well, I believe you have it, otherwise you
cannot select it), use EditPart#getViewer() to navigate to the edit part
viewer.
Best regards,
Boris
Tina Chen wrote:
> Thanks for you reply,but how to get an instanceof EditPartViewer ?
>
>
>
>
> Boris Blajer wrote:
>
>> Hi Tina,
>
>> Use EditPartViewer#select(EditPart),
>> EditPartViewer#appendSelection(EditPart),
>> EditPartViewer#deselect(EditPart) or EditPartViewer#deselectAll().
>
>> Best regards,
>> Boris
>
>> Tina Chen wrote:
>>> Hi there,
>>> How to programmatically set an EditPart to be selected?
>>>
>>> Thanks in advance!
>>>
>
>
|
|
|
Re: How to programmatically set an EditPart to be selected [message #145653 is a reply to message #145628] |
Tue, 07 August 2007 10:53  |
Eclipse User |
|
|
|
Originally posted by: tyhoho.gmail.com
Hi,Boris
Thank you very much! Problem solved.
I get the EditPart instance named editP,
then use editP.getViewer().select(editP).
It works!
Boris Blajer wrote:
> Hi Tina,
> Use EditPartViewer#select(EditPart),
> EditPartViewer#appendSelection(EditPart),
> EditPartViewer#deselect(EditPart) or EditPartViewer#deselectAll().
> Best regards,
> Boris
> Tina Chen wrote:
>> Hi there,
>> How to programmatically set an EditPart to be selected?
>>
>> Thanks in advance!
>>
|
|
|
Powered by
FUDForum. Page generated in 0.44910 seconds