Register preferences action on cocoa [message #485835] |
Tue, 15 September 2009 09:35 |
Eclipse User |
|
|
|
Originally posted by: victor.conesa.justinmind.com
Hi all,
I've recently moved 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
running 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 #486438 is a reply to message #485948] |
Thu, 17 September 2009 15:56 |
Eclipse User |
|
|
|
Originally posted by: victor.conesa.justinmind.com
Hi all,
Thanks for the answer. I've taken a look at WorkbenchActionBuilder and I did
the same on my ActionBarAdvisor but it didn't worked. What I did was to
insert this lines on the "makeActions" method of the ActionBarAdvisor class
I'm using in my RCP application:
aboutAction = ActionFactory.ABOUT.create(window);
register(aboutAction);
and then I added to the "fillMenuBar" method of the same class this lines:
ActionContributionItem aboutItem = new ActionContributionItem(aboutAction);
aboutItem.setVisible(!Util.isMac());
helpMenu.add(aboutItem);
But the only thing that appears when I launch the product and select the
"[Product name] -> About [Product Name]" menu option is the strange about
dialog I attach with this email.
I'm quite frustrated with this...
"Paul Webster" <pwebster@ca.ibm.com> escribi
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02253 seconds