Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How can I employ Print Action?
How can I employ Print Action? [message #202346] Tue, 08 November 2005 22:34 Go to next message
Eclipse UserFriend
Originally posted by: ciulbecca.yahoo.it

hi everybody,
how can I employ Print Action to my project?

I have added: "
protected void declareGlobalActionKeys() {
addGlobalActionKey(ActionFactory.PRINT.getId());

};"
in my ActionBarContributor and now....what code should I add and where?
Could you give me the implementing code?
help me!
Thank's a lot!
Re: How can I employ Print Action? [message #202557 is a reply to message #202346] Thu, 10 November 2005 21:30 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

keys are used to extract actions from the action registry. So you need to
add the print action to the editor's action registry.

"Antonio Neretum" <ciulbecca@yahoo.it> wrote in message
news:c7e29f13b1b5dc195b17e1434e737e88$1@www.eclipse.org...
> hi everybody,
> how can I employ Print Action to my project?
>
> I have added: "
> protected void declareGlobalActionKeys() {
> addGlobalActionKey(ActionFactory.PRINT.getId());
>
> };"
> in my ActionBarContributor and now....what code should I add and where?
> Could you give me the implementing code?
> help me!
> Thank's a lot!
>
Previous Topic:how to access the commandstack
Next Topic:FigureUtilities.getTextExtents
Goto Forum:
  


Current Time: Tue Dec 10 01:02:26 GMT 2024

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

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

Back to the top