Skip to main content



      Home
Home » Eclipse Projects » GEF » Editor -> MultiPageEditor
Editor -> MultiPageEditor [message #157307] Mon, 08 November 2004 13:37 Go to next message
Eclipse UserFriend
Originally posted by: nospam.gmx.net

Hello group!

After having embedded my GEF Editor into an MultipageEditorPart,
the SelectionActions are disabled, because getSelectedObjects() of
SelectionAction returns an empty List.

After some debugging, I found out, that
GraphicalEditor.selectionChanged(....) doesn
Re: Editor -> MultiPageEditor [message #157312 is a reply to message #157307] Mon, 08 November 2004 13:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You need to override that method so that the condition it checks for is TRUE
at the appropriate times.

"Ingo Koch" <nospam@gmx.net> wrote in message
news:cmoecg$rpq$1@eclipse.org...
> Hello group!
>
> After having embedded my GEF Editor into an MultipageEditorPart,
> the SelectionActions are disabled, because getSelectedObjects() of
> SelectionAction returns an empty List.
>
> After some debugging, I found out, that
> GraphicalEditor.selectionChanged(....) doesn
Re: Editor -> MultiPageEditor [message #157467 is a reply to message #157307] Tue, 09 November 2004 16:55 Go to previous message
Eclipse UserFriend
I ran into the same thing, but concluded that although
GraphicalEditor.selectionChanged(....) was in fact called, it didn't do
anything because its call to getActiveEditor() returned the wrong thing
thanks to Eclipse bug #71345. My work-around was to listen for SWT.Activate
and SWT.Deactivate in my editor and do what selectionChanged(....) was
doing.

Carl

This is a consequence of Eclipse bug #71345, which causes the call to
getActiveEditor() in
"Ingo Koch" <nospam@gmx.net> wrote in message
news:cmoecg$rpq$1@eclipse.org...
> Hello group!
>
> After having embedded my GEF Editor into an MultipageEditorPart,
> the SelectionActions are disabled, because getSelectedObjects() of
> SelectionAction returns an empty List.
>
> After some debugging, I found out, that
> GraphicalEditor.selectionChanged(....) doesn
Previous Topic:Migrating 2.x to 3.x ActionBarContributor
Next Topic:Migrating to 3.x TransferDropTargetListener
Goto Forum:
  


Current Time: Tue May 06 13:23:27 EDT 2025

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

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

Back to the top