Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Register preferences action on cocoa
Register preferences action on cocoa [message #485726] Mon, 14 September 2009 12:48 Go to next message
Eclipse User
Originally posted by: victor.conesa.justinmind.com

Hi all,

I've recently move from eclipse 3.4 to eclipse 3.5 and I ve found some
problems. I have a RCP application running on MacOS that was previously
runned over Carbon and now is running over Cocoa. The first issue is how to
make the Preferences appear at the Main Menu of the application. The other
is how to register my own About action. I've search over the web some weeks
but I didn't found any clues. Could you please give me a hand on this?

Thanks in advance!
Re: Register preferences action on cocoa [message #485734 is a reply to message #485726] Mon, 14 September 2009 13:18 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6850
Registered: July 2009
Location: Ottawa
Senior Member

You want the eclipse platform or RCP newsgroups.

See how the openPreferencesAction is added in org.eclipse.ui.internal.ide.WorkbenchActionBuilder

PW


Re: Register preferences action on cocoa [message #485836 is a reply to message #485734] Tue, 15 September 2009 05:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: victor.conesa.justinmind.com

Thanks, I will post the message on the rcp newsgroup then.
"Paul Webster" <pwebster@ca.ibm.com> escribi
Re: Register preferences action on cocoa [message #488289 is a reply to message #485734] Sun, 27 September 2009 13:58 Go to previous messageGo to next message
Peter Kanzler is currently offline Peter Kanzler
Messages: 9
Registered: July 2009
Junior Member
Yeah but how do you do it if you use SWT only?
No Workbench, no RCP.

cheers
Peter

On 14.09.09 19:18, Paul Webster wrote:
> You want the eclipse platform or RCP newsgroups.
>
> See how the openPreferencesAction is added in
> org.eclipse.ui.internal.ide.WorkbenchActionBuilder
>
> PW
>
Re: Register preferences action on cocoa [message #488394 is a reply to message #488289] Mon, 28 September 2009 10:14 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6850
Registered: July 2009
Location: Ottawa
Senior Member

You would need to write something like http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.coco a/src/org/eclipse/ui/internal/cocoa/CocoaUIEnhancer.java?vie w=co

That accesses the Cocoa specific SWT classes to hook into the Mac OS

PW


Previous Topic:I can't scale my images.
Next Topic:SWT Slider does not work on RHEL4
Goto Forum:
  


Current Time: Fri Apr 18 11:56:23 EDT 2014

Powered by FUDForum. Page generated in 0.01900 seconds