Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Activating "print" button and menu selection
Activating "print" button and menu selection [message #115796] Mon, 25 August 2003 03:57 Go to next message
Eclipse UserFriend
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 11:53 Go to previous messageGo to next message
Eclipse UserFriend
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 12:10 Go to previous messageGo to next message
Eclipse UserFriend
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 12: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 13:34 Go to previous message
Eclipse UserFriend
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: Sun May 04 16:18:45 EDT 2025

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

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

Back to the top