Eclipse plugin - MultiPageEditorPart [message #36660] |
Wed, 10 December 2008 03:48  |
Eclipse User |
|
|
|
Hi,
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 wont 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.
2. Schema files are located in a jar file and I am not able to access them
to validate xml files. Is there any difference in accessing files in jar
as compared to normal java project and plug in project.
3. How to close all opened editors on close of eclipse so that they are
not restored back on opening eclipse. Please provide the code snippet.
It will be great if anyone can help me on above issues as it very urgent.
Regards,
Rupa
|
|
|
Re: Eclipse plugin - MultiPageEditorPart [message #36694 is a reply to message #36660] |
Wed, 10 December 2008 07:38  |
Eclipse User |
|
|
|
Originally posted by: mihael.rpgnextgen.com
Am Mittwoch, den 10.12.2008, 08:48 +0000 schrieb rupa :
> Hi,
>
> 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.
Regards
Mihael
|
|
|
Re: Eclipse plugin - MultiPageEditorPart [message #586778 is a reply to message #36660] |
Wed, 10 December 2008 07:38  |
Eclipse User |
|
|
|
Am Mittwoch, den 10.12.2008, 08:48 +0000 schrieb rupa :
> Hi,
>
> 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.
Regards
Mihael
|
|
|
Powered by
FUDForum. Page generated in 0.03586 seconds