Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Eclipse plugin - MultiPageEditorPart
Eclipse plugin - MultiPageEditorPart [message #36660] Wed, 10 December 2008 03:48 Go to next message
Eclipse UserFriend
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.
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Eclipse plugin - MultiPageEditorPart
Next Topic:Exported product doesn't contain Eclipse dependencies - only my features
Goto Forum:
  


Current Time: Tue Jul 08 02:52:04 EDT 2025

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

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

Back to the top