Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to programmatically set an EditPart to be selected
How to programmatically set an EditPart to be selected [message #145612] Tue, 07 August 2007 10:25 Go to next message
Eclipse UserFriend
Originally posted by: tyhoho.gmail.com

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 #145628 is a reply to message #145612] Tue, 07 August 2007 10:36 Go to previous messageGo to next message
Eclipse UserFriend
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 #145637 is a reply to message #145628] Tue, 07 August 2007 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tyhoho.gmail.com

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 #145644 is a reply to message #145637] Tue, 07 August 2007 10:49 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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!
>>
Previous Topic:In-Code documentation xpt
Next Topic:Online Doc linked to Eclipse 3.1 help
Goto Forum:
  


Current Time: Fri Jul 18 09:05:14 EDT 2025

Powered by FUDForum. Page generated in 0.32069 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top