Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to set input to each editor in a multipart editor?
How to set input to each editor in a multipart editor? [message #302542] Mon, 24 April 2006 06:49 Go to next message
Eclipse UserFriend
Hi all,
I have a mulitpart editor that gets its content from a single file.
Can any one describe the general process of supply each editor within the
multipart editor with the content that they need, and also the best practice
to update the original file once editing has finished?

I am not sure if I have to create an EditorInput for each editor or if I can
use just a single FileEditorInput and use something like addPage(editor,
getEditorInput()).

regards

Martin
Re: How to set input to each editor in a multipart editor? [message #302560 is a reply to message #302542] Mon, 24 April 2006 08:58 Go to previous message
Eclipse UserFriend
Martin Holmes wrote:
>
> I am not sure if I have to create an EditorInput for each editor or if I can
> use just a single FileEditorInput and use something like addPage(editor,
> getEditorInput()).

That should work fine ... I've seen a couple of MultiPageEditorParts
that create 2 TextEditors and pass in the the MPEP#getEditorInput().

Later,
PW
Previous Topic:System.loadLibrary Succeeds, but still UnsatisifedLinkError
Next Topic:C/C++ config
Goto Forum:
  


Current Time: Tue Jul 22 07:36:38 EDT 2025

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

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

Back to the top