Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Activating "print" button and menu selection
Activating "print" button and menu selection [message #115796] Mon, 25 August 2003 07:57 Go to next message
Peter Williams is currently offline Peter WilliamsFriend
Messages: 4
Registered: July 2009
Junior Member
I've tried everything that I can think of. Read the FAQ. Scoured the
manual. But have been unable to figure out how to activate the "print"
button in the tool bar and the "print" option in the "file" menu. Can
someone please give me a hint about how to solve this problem?

Thanks
Peter
Re: Activating "print" button and menu selection [message #116280 is a reply to message #115796] Mon, 25 August 2003 15:53 Go to previous messageGo to next message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
IEditorActionBarContributor --> IActionBars --> access to the toolbar

Chris

"Peter Williams" <peterw@aurema.com> wrote in message
news:bicfhd$510$1@eclipse.org...
> I've tried everything that I can think of. Read the FAQ. Scoured the
> manual. But have been unable to figure out how to activate the "print"
> button in the tool bar and the "print" option in the "file" menu. Can
> someone please give me a hint about how to solve this problem?
>
> Thanks
> Peter
>
Re: Activating "print" button and menu selection [message #116343 is a reply to message #116280] Mon, 25 August 2003 16:10 Go to previous messageGo to next message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
Also, if you haven't done so, read the parts on "delegates" in this article:


http://www.eclipse.org/articles/Article-action-contribution/ Contributing%20A
ctions%20to%20the%20Eclipse%20Workbench.html

Chris


"Chris Laffra" <Chris_Laffra@oti.com> wrote in message
news:bidbd7$vs1$1@eclipse.org...
> IEditorActionBarContributor --> IActionBars --> access to the toolbar
>
> Chris
>
> "Peter Williams" <peterw@aurema.com> wrote in message
> news:bicfhd$510$1@eclipse.org...
> > I've tried everything that I can think of. Read the FAQ. Scoured the
> > manual. But have been unable to figure out how to activate the "print"
> > button in the tool bar and the "print" option in the "file" menu. Can
> > someone please give me a hint about how to solve this problem?
> >
> > Thanks
> > Peter
> >
>
>
Re: Activating "print" button and menu selection [message #116350 is a reply to message #115796] Mon, 25 August 2003 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

Its a retarget action with no default implementation provided. Your part
needs to call
part.getView/EditorSite().getActionBars().setGlobalActionHan dler(). The id
to use is IWorkbenchActionConstants.PRINT.

Simon :-)

"Peter Williams" <peterw@aurema.com> wrote in message
news:bicfhd$510$1@eclipse.org...
> I've tried everything that I can think of. Read the FAQ. Scoured the
> manual. But have been unable to figure out how to activate the "print"
> button in the tool bar and the "print" option in the "file" menu. Can
> someone please give me a hint about how to solve this problem?
>
> Thanks
> Peter
>
Re: Activating "print" button and menu selection [message #116366 is a reply to message #116350] Mon, 25 August 2003 17:34 Go to previous message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
This may work:
actionBars.setGlobalActionHandler(IWorkbenchActionConstants. PRINT, new
Action() {
public boolean isEnabled() {
return true;
}
public void run() {
// do your action
}
});


Chris Laffra

"Simon Arsenault" <simon@ibm.oti.lab> wrote in message
news:bidclt$1k9$1@eclipse.org...
> Its a retarget action with no default implementation provided. Your part
> needs to call
> part.getView/EditorSite().getActionBars().setGlobalActionHan dler(). The id
> to use is IWorkbenchActionConstants.PRINT.
>
> Simon :-)
>
> "Peter Williams" <peterw@aurema.com> wrote in message
> news:bicfhd$510$1@eclipse.org...
> > I've tried everything that I can think of. Read the FAQ. Scoured the
> > manual. But have been unable to figure out how to activate the "print"
> > button in the tool bar and the "print" option in the "file" menu. Can
> > someone please give me a hint about how to solve this problem?
> >
> > Thanks
> > Peter
> >
>
>
Previous Topic:how to adapt projects to new plugin versions
Next Topic:Recognize changes to Install/Update site
Goto Forum:
  


Current Time: Thu Jul 04 21:24:05 GMT 2024

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

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

Back to the top