Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Help Needed
Help Needed [message #157711] Thu, 11 November 2004 18:56 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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???
>
>
Previous Topic:Moving EditParts
Next Topic:Open a *.logic file directly from file system rather than workspace?
Goto Forum:
  


Current Time: Sun Jan 19 21:15:48 GMT 2025

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

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

Back to the top