Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editor -> MultiPageEditor
Editor -> MultiPageEditor [message #157307] Mon, 08 November 2004 18: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 18: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 21:55 Go to previous message
Carl McConnell is currently offline Carl McConnellFriend
Messages: 4
Registered: July 2009
Junior Member
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: Thu Apr 25 19:08:05 GMT 2024

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

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

Back to the top