How to provide printing functionality in GEF application? [message #227190] |
Thu, 30 November 2006 09:56 |
Eclipse User |
|
|
|
Originally posted by: vikas.khengare.unnat-e.com
Hi friends,
I have created sample application which contain a single Circle figure and
Text. I want to provide printing facility to my editor.
Can someone tell me what are the steps to do this / where to make changes?
--
With best regards
From
Vikas R. Khengare
|
|
|
|
Re: How to provide printing functionality in GEF application? [message #227277 is a reply to message #227230] |
Fri, 01 December 2006 11:25 |
Eclipse User |
|
|
|
Originally posted by: vikas.khengare.unnat-e.com
thanks Alex ......
But I dont want specify for "SWT" ....
I have done something like this .......I have put following code in
"MultiPageEditorContributor",
protected void declareGlobalActionKeys() {
// TODO Auto-generated method stub
addGlobalActionKey(ActionFactory.PRINT.getId());
}
Is this okey? Now it is enabling Print button.
:) But I haven't checked it by taking printout.
--
With best regards
From
Vikas R. Khengare
"Alex Boyko" <aboyko@ca.ibm.com> wrote in message
news:b7ae4a95c31832c7504cba38584325c1$1@www.eclipse.org...
> Hi Vikas,
>
> There is an example of printing functionality in the Logic Editor Example.
> (look for LogicPrintAction). Perhaps, you didn't notice it...
>
> Cheers,
> Alex
>
|
|
|
Powered by
FUDForum. Page generated in 0.04592 seconds