Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » EditorContributors
EditorContributors [message #96472] Fri, 18 July 2003 13:10 Go to next message
Andy Yang is currently offline Andy YangFriend
Messages: 42
Registered: July 2009
Member
Hello,

I'm not sure if I fully understand the nuances of Editors and
EditorContributors - is there a way for the Editor to get a reference to
its Contributor?

I'm implementing my Actions as inner classes extending
org.eclipse.jface.action.Action in the EditorContributor. This allows me
to add them to the ToolBars and the Menu. Is this the correct approach?

However, what is the recommended approach to producing PopUp/Context
menus in the Editor itself?

Thanks,
Andy
Re: EditorContributors [message #96532 is a reply to message #96472] Fri, 18 July 2003 14:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

IEditorPart.getEditorSite().getActionBarContributor()

Simon :-)

"Andy Yang" <ayang_ml3@yahoo.com> wrote in message
news:bf8rjb$7u9$1@eclipse.org...
> Hello,
>
> I'm not sure if I fully understand the nuances of Editors and
> EditorContributors - is there a way for the Editor to get a reference to
> its Contributor?
>
> I'm implementing my Actions as inner classes extending
> org.eclipse.jface.action.Action in the EditorContributor. This allows me
> to add them to the ToolBars and the Menu. Is this the correct approach?
>
> However, what is the recommended approach to producing PopUp/Context
> menus in the Editor itself?
>
> Thanks,
> Andy
>
Re: EditorContributors [message #96784 is a reply to message #96532] Fri, 18 July 2003 19:04 Go to previous message
Andy Yang is currently offline Andy YangFriend
Messages: 42
Registered: July 2009
Member
That's perfect. Thanks for the clarification!

Andy

Simon Arsenault wrote:

> IEditorPart.getEditorSite().getActionBarContributor()
>
> Simon :-)
>
> "Andy Yang" <ayang_ml3@yahoo.com> wrote in message
> news:bf8rjb$7u9$1@eclipse.org...
>
>>Hello,
>>
>>I'm not sure if I fully understand the nuances of Editors and
>>EditorContributors - is there a way for the Editor to get a reference to
>>its Contributor?
>>
>>I'm implementing my Actions as inner classes extending
>>org.eclipse.jface.action.Action in the EditorContributor. This allows me
>>to add them to the ToolBars and the Menu. Is this the correct approach?
>>
>>However, what is the recommended approach to producing PopUp/Context
>>menus in the Editor itself?
>>
>>Thanks,
>>Andy
>>
>
>
>
Previous Topic:Howto access org.eclipse.team.internal.ccvs.ui at compile-time?
Next Topic:Hooks into the Synchronize View Context Menu
Goto Forum:
  


Current Time: Tue Jan 28 18:26:51 GMT 2025

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

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

Back to the top