Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Eclipse plugin - MultiPageEditorPart
Eclipse plugin - MultiPageEditorPart [message #36660] Wed, 10 December 2008 08:48 Go to next message
rupa is currently offline rupaFriend
Messages: 2
Registered: July 2009
Junior Member
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 12: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 12:38 Go to previous message
Mihael Schmidt is currently offline Mihael SchmidtFriend
Messages: 81
Registered: August 2010
Member
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 Apr 16 17:25:19 GMT 2024

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

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

Back to the top