Home » Eclipse Projects » GEF » ActionBarContributor help (eclipse 2.1 M5 & GEF 2/4/2003)
ActionBarContributor help (eclipse 2.1 M5 & GEF 2/4/2003) [message #63351] |
Sat, 08 February 2003 00:32 |
Erik Johnson Messages: 36 Registered: July 2009 |
Member |
|
|
I've been busily writing code for the past couple months and formerly
working on Eclipse 2.0.1 and using a GEF build from 11/19/2002. Now that I
have some free cycles, I took the opportunity to upgrade to 2.1. In the
process, I also tried to bring the GEF framework up to date.
After some cleanup because of renamed/deleted GEF classes (DefaultPalette
classes, AbstractCommand, DeleteRequest, etc.), I got things to compile and
run; however I can't seem to get actions to work, as a result, delete is
unavailable and undo/redo behave quite strangly.
When my editor is active, I am unable to get the Delete action to be
enabled--regardless of which items are selected. In addition, if I move a
node around, or draw connections, etc., the undo button is not enabled until
I click outside of the editor (another view for example), when the editor is
re-activated, undo is enabled. After undoing one or more commands, redo is
not enabled unless I again click outside of the editor and re-enable it.
My action bar contributor extends from
org.eclipse.gef.ui.actions.ActionBarContributor.
All of this functionality worked with the older GEF build (11/19/2002).
Also, the Logic Editor example from 2/4/2003 seems to work just fine.
Any ideas?
Thanks in advance,
Erik
|
|
| |
Re: ActionBarContributor help (eclipse 2.1 M5 & GEF 2/4/2003) [message #63529 is a reply to message #63351] |
Sat, 08 February 2003 13:49 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The action changes were mentioned on the GEF plan. Our action organization
is much closer to AbstractTextEditor now. The main difference is that we
don't require the EditorPart to implement any special interface. We just
ask it for its Actions using getAdapter(ActionRegistry.class). This allows
you to use MultiPageEditorPart or your own Editor implementation.
The EditorActionBarContributor contains RetargetActions that get retarget to
their corrsponding handlers from the EditorPart. This allows the Outline
View or other views to hook into your retargetactions. Take a look at the
attached image.
"Erik Johnson" <ejohnson@avaya.com> wrote in message
news:b21hna$fpi$1@rogue.oti.com...
> I've been busily writing code for the past couple months and formerly
> working on Eclipse 2.0.1 and using a GEF build from 11/19/2002. Now that
I
> have some free cycles, I took the opportunity to upgrade to 2.1. In the
> process, I also tried to bring the GEF framework up to date.
>
> After some cleanup because of renamed/deleted GEF classes (DefaultPalette
> classes, AbstractCommand, DeleteRequest, etc.), I got things to compile
and
> run; however I can't seem to get actions to work, as a result, delete is
> unavailable and undo/redo behave quite strangly.
>
> When my editor is active, I am unable to get the Delete action to be
> enabled--regardless of which items are selected. In addition, if I move a
> node around, or draw connections, etc., the undo button is not enabled
until
> I click outside of the editor (another view for example), when the editor
is
> re-activated, undo is enabled. After undoing one or more commands, redo
is
> not enabled unless I again click outside of the editor and re-enable it.
>
> My action bar contributor extends from
> org.eclipse.gef.ui.actions.ActionBarContributor.
>
> All of this functionality worked with the older GEF build (11/19/2002).
> Also, the Logic Editor example from 2/4/2003 seems to work just fine.
>
> Any ideas?
> Thanks in advance,
> Erik
>
>
>
>
|
|
|
Goto Forum:
Current Time: Sun Dec 22 01:25:44 GMT 2024
Powered by FUDForum. Page generated in 0.04521 seconds
|