Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Adding a (text editor) page
Adding a (text editor) page [message #325786] Wed, 27 February 2008 03:46 Go to next message
leo escorido is currently offline leo escoridoFriend
Messages: 5
Registered: July 2009
Junior Member
I followed this link to create multi-page form editor and had been
successful.
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/forms_editors.htm

I'd like to add a text editor page that shows contents of the actual file.
The closest solution i found is to call addPage(IEditorPart, IEditorInput
input), but I don't know how.
I will appreciate any link or an example how to achieve it.


Thanks,
Leo
Re: Adding a (text editor) page [message #325802 is a reply to message #325786] Wed, 27 February 2008 14:04 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Leo Escorido wrote:
>
> I'd like to add a text editor page that shows contents of the actual
> file. The closest solution i found is to call addPage(IEditorPart,
> IEditorInput input), but I don't know how.
> I will appreciate any link or an example how to achieve it.

right, you would call addPage(new TextEditor(), getEditorInput())

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:activeFocusControlId with detached view
Next Topic:Activator.getURLConverter crashes ImageRegistry
Goto Forum:
  


Current Time: Tue Jul 16 05:05:56 GMT 2024

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

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

Back to the top