Skip to main content



      Home
Home » Eclipse Projects » GEF » How do I trigger createActions to be called in the Editor class?
How do I trigger createActions to be called in the Editor class? [message #86491] Thu, 03 July 2003 20:08 Go to next message
Eclipse UserFriend
Originally posted by: m.spork.NOSPAMtpg.com.au

Hi,

I'm in the process of upgrading from I20030107 to I20030327 - I have
everything working except I can't seem to register my actions
correctly in my editor.

I believe this is happening because my implementation of createActions
is not being called in my Editor class.

Can some one please tell me where this is called from and what I have
to do to make sure it is called?

By putting a break point in the LogicEditor's createActions method I
can see that it is called by the EditorManager class - but ultimately
I do not know what triggers this in my code.

Thanks,

Murray Spork
Re: How do I trigger createActions to be called in the Editor class? [message #86533 is a reply to message #86491] Fri, 04 July 2003 12:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Browse references in the hierarchy to GraphicalEditor#createAction().
You are probably overriding init without calling super

"Murray Spork" <m.spork@NOSPAMtpg.com.au> wrote in message
news:bog9gvgjqh88qd0h9q2apjnekshsgnhvds@4ax.com...
>
> Hi,
>
> I'm in the process of upgrading from I20030107 to I20030327 - I have
> everything working except I can't seem to register my actions
> correctly in my editor.
>
> I believe this is happening because my implementation of createActions
> is not being called in my Editor class.
>
> Can some one please tell me where this is called from and what I have
> to do to make sure it is called?
>
> By putting a break point in the LogicEditor's createActions method I
> can see that it is called by the EditorManager class - but ultimately
> I do not know what triggers this in my code.
>
> Thanks,
>
> Murray Spork
Re: How do I trigger createActions to be called in the Editor class? [message #86592 is a reply to message #86533] Mon, 07 July 2003 09:32 Go to previous message
Eclipse UserFriend
Originally posted by: m.spork.SPAMMENOTtpg.com.au

On Fri, 4 Jul 2003 12:56:06 -0400, "Randy Hudson" <none@us.ibm.com>
wrote:

Thanks Randy,

>Browse references in the hierarchy to GraphicalEditor#createAction().
>You are probably overriding init without calling super
>

I found two problems - but I think the main problem was as you said -
I was overriding init without calling super. So I just deleted the
overriden init method (it seems it is not neccessary to override it ).

The other problem was that I was not calling
super.getAdapter(type) in my overriden getAdapter() method.

Murray
Previous Topic:how can i use SWT widget in draw2d
Next Topic:Connection with Labels
Goto Forum:
  


Current Time: Tue Jul 22 22:55:15 EDT 2025

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

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

Back to the top