|Re: Eclipse plugin - MultiPageEditorPart [message #36694 is a reply to message #36660]
||Wed, 10 December 2008 12:38
Originally posted by: mihael.rpgnextgen.com|
Am Mittwoch, den 10.12.2008, 08:48 +0000 schrieb rupa :
> I am working on eclipse plugin project with MultiPageEditorPart.
> 1. The package explorer contains two files for each project. When clicked
> on each file it opens one new tab/editor. Once both the files are opened,
> then it won’t open a new tab again on click of that file, but instead
> refers to the opened instance of the tab. How to get only one tab instance
> for both the files? i.e, there should be only one tab/editor for one
> project even if there are two files in each project. Both the files should
> refer to single view.
Perhaps you look at the equals() method of your IEditorInput implementation..
Perhaps if the editor input equals both files it wouldn't open a new editor
for it but jump to the already open one. Just a thought.
Powered by FUDForum
. Page generated in 0.01468 seconds