Help Needed [message #157711] |
Thu, 11 November 2004 18:56 |
Eclipse User |
|
|
|
Originally posted by: giannopoulos.ced.tuc.gr
Is there a command to force the selection of an element in a diagram and if
there is which is it?
I have a table in a view which lists the nodes of a diagram and i want by
double-clicking on a table item to focus on the editor and select the figure
that corresponds to the selection...Any suggestions???
|
|
|
Re: Help Needed [message #157721 is a reply to message #157711] |
Thu, 11 November 2004 19:37 |
Eclipse User |
|
|
|
Originally posted by: boris.bokowski.de
Assuming you have a reference to the IEditorPart you want to switch to, and
the GraphicalViewer in which to select your object, you can try the
following:
EditPart targetEditPart =
(EditPart)graphicalViewer.getEditPartRegistry().get(targetMo delObject);
graphicalViewer.select(targetEditPart);
editorPart.setFocus();
Boris
"Nikos Giannopoulos" <giannopoulos@ced.tuc.gr> wrote:
> Is there a command to force the selection of an element in a diagram and
> if
> there is which is it?
> I have a table in a view which lists the nodes of a diagram and i want by
> double-clicking on a table item to focus on the editor and select the
> figure
> that corresponds to the selection...Any suggestions???
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02653 seconds