Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » File -> Print is not available (under Linux)
File -> Print is not available (under Linux) [message #289522] Sun, 07 August 2005 15:18 Go to next message
Jimisola Laursen is currently offline Jimisola LaursenFriend
Messages: 134
Registered: July 2009
Senior Member
Hi!

I am using Eclipse under Linux (Mandriva LE2005) and have so been since 2.x.
However, one thing irritates me and it is that I can't print from Eclipse as
the menu alternative File -> Print is shaded/faded/gray.

Is there something in particular that Eclipse needs to be able to print?
I have cups installed and printing works fine from other programs, such as
Firefox.

Jimisola
Re: File -> Print is not available (under Linux) [message #289529 is a reply to message #289522] Sun, 07 August 2005 21:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.nospam.gmail.com

Jimisola,

Please see this FAQ entry and the one below it:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#printOnGTK

Hope this helps,
- Jeff

Jimisola Laursen wrote:
> Hi!
>
> I am using Eclipse under Linux (Mandriva LE2005) and have so been since 2.x.
> However, one thing irritates me and it is that I can't print from Eclipse as
> the menu alternative File -> Print is shaded/faded/gray.
>
> Is there something in particular that Eclipse needs to be able to print?
> I have cups installed and printing works fine from other programs, such as
> Firefox.
>
> Jimisola
>
>
>
Re: File -> Print is not available (under Linux) [message #289578 is a reply to message #289529] Mon, 08 August 2005 13:47 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
and also
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -swt-home/faq.html#printOnMotif

"Jeff Myers" <myersj@nospam.gmail.com> wrote in message
news:dd5ta0$nd1$2@news.eclipse.org...
> Jimisola,
>
> Please see this FAQ entry and the one below it:
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#printOnGTK
>
> Hope this helps,
> - Jeff
>
> Jimisola Laursen wrote:
> > Hi!
> >
> > I am using Eclipse under Linux (Mandriva LE2005) and have so been since
2.x.
> > However, one thing irritates me and it is that I can't print from
Eclipse as
> > the menu alternative File -> Print is shaded/faded/gray.
> >
> > Is there something in particular that Eclipse needs to be able to print?
> > I have cups installed and printing works fine from other programs, such
as
> > Firefox.
> >
> > Jimisola
> >
> >
> >
Re: File -> Print is not available (under Linux) [message #289592 is a reply to message #289578] Mon, 08 August 2005 15:10 Go to previous messageGo to next message
David Goodenough is currently offline David GoodenoughFriend
Messages: 157
Registered: July 2009
Senior Member
Grant Gayed wrote:

> and also
>
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform -swt-home/faq.html#printOnMotif
>
> "Jeff Myers" <myersj@nospam.gmail.com> wrote in message
> news:dd5ta0$nd1$2@news.eclipse.org...
>> Jimisola,
>>
>> Please see this FAQ entry and the one below it:
>>
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#printOnGTK
>>
>> Hope this helps,
>> - Jeff
>>
>> Jimisola Laursen wrote:
>> > Hi!
>> >
>> > I am using Eclipse under Linux (Mandriva LE2005) and have so been since
> 2.x.
>> > However, one thing irritates me and it is that I can't print from
> Eclipse as
>> > the menu alternative File -> Print is shaded/faded/gray.
>> >
>> > Is there something in particular that Eclipse needs to be able to
>> > print? I have cups installed and printing works fine from other
>> > programs, such
> as
>> > Firefox.
>> >
>> > Jimisola
>> >
>> >
>> >
It does seem absolutely extraordinary that we are now up to Eclipse 3.1 and
this is still a problem. It is particularly a problem as of the two under
Linux the only one I can get to work is the gtk version which means no
printing.

To ask what may be a silly question, if xprint can be used to print under
Motif why can not it not also be used to print under Gtk? Even if it did
not produce a 100% solution at least it would give us something. Looking
at the Debian package for xprint there are no dependancies on Motif, so
presumably it can be used without Motif in the Gtk environment.

The old excuse for not implementing this was that finding printers could
take a very long time, and that would slow the startup considerably. There
is a very simple solution to that (as I noted at the time) which is to get
the list of printers asynchronously, and only enable the greyed out Print
entry once the list of printers was complete.

David
Re: File -> Print is not available (under Linux) [message #289609 is a reply to message #289592] Mon, 08 August 2005 19:35 Go to previous message
Eclipse UserFriend
Originally posted by: bbiggs.ca.ibm.com

David Goodenough wrote:
> It does seem absolutely extraordinary that we are now up to Eclipse 3.1 and
> this is still a problem. It is particularly a problem as of the two under
> Linux the only one I can get to work is the gtk version which means no
> printing.

Well, it means you can still print files using the external tools
thing, and map that to lpr or your favourite printing tool.

> To ask what may be a silly question, if xprint can be used to print under
> Motif why can not it not also be used to print under Gtk? Even if it did
> not produce a 100% solution at least it would give us something. Looking
> at the Debian package for xprint there are no dependancies on Motif, so
> presumably it can be used without Motif in the Gtk environment.

A major issue would be converting from pango fonts to X11 fonts,
which often isn't possible.

GTK+ does not support printing. It was on the plan for GTK+ 2.8 but
it ended up getting dropped. Now that cairo is going into GTK+ this
will likely become the basis of their printing support. I think
libgnomeprint is currently looking to be the best option, although they
have broken ABI in the past and some people do not consider this library
safe yet for ISVs. As well, it will likely be deprecated soon when GTK+
gets printing.

I think the two best options now are to try and leverage the cairo
ps/pdf backend, but then we'd still need a printer dialog (maybe do this
in concert with GTK+), or try and do the libgnomeprint work in some safe
way.

-Billy
Previous Topic:TableViewer in Editor: only one column of date via TableLabelProvider?
Next Topic:Preferred method for displaying splash screen in 3.x
Goto Forum:
  


Current Time: Tue May 07 23:13:04 GMT 2024

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

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

Back to the top