Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Print from multi-page editor w/ a GEF page
Print from multi-page editor w/ a GEF page [message #216821] Thu, 25 May 2006 11:16 Go to next message
Eclipse UserFriend
Originally posted by:


I know about GEF's PrintAction and it works well for a single-page editor.
Now I'm extending the editor to have multiple pages. One page has a GEF
viewer, another page just has some text. I would like the print action to
work on both pages. I register a print action in the action bar
contributor and in the editor, and GEF print fires up fine. The problem
is that I need to use different print actions for the different pages: the
GEF print action for the GEF page, and a text print action for the other
page. I don't know how to do this. I guess I could implement some kind
of delegating print action, but I don't think I have found the plain-text
print action used in stock Eclipse editors.

If it is impossible to have different print actions, then it would be ok
if I could simply disable print when the non-GEF page is showing, but I
have not figured that out either. Something has to manage the enablement
of the Print item in the File menu.

The plugin manifest editor demonstrates something like this: the forms
pages cannot be printed, but the plain-text pages (plugin.xml,
MANIFEST.MF) can be printed just fine. I think this comes from
AbstractTextEditor.createActions() where a TextOperationAction is created
and registered. But I have not been able to find how that multi-page
editor manages the enablement of the print action.

I feel like the pieces of this puzzle are right in front of me, yet I
cannot quite fit them together. Thanks in advance for any and all help!

Re: Print from multi-page editor w/ a GEF page [message #503491 is a reply to message #216821] Mon, 14 December 2009 13:42 Go to previous message
Deepak Singla is currently offline Deepak SinglaFriend
Messages: 27
Registered: December 2009
Junior Member
Hi Chris,

I am new to GEF and I want to run Shape Example in MultiPage Editor.

I am trying to do so but I am gettign streamCorrupt Exception. Can you please share your expericnec for telling me steps or share your code so that I can do .

It is very urgent fro me.

Thanks in advance.
Previous Topic:Problem with running RCP with GEF editor
Next Topic:[GEF] paint/layout operations
Goto Forum:

Current Time: Sun Jan 29 07:05:29 GMT 2023

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

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

Back to the top