Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Turning an EditorPart into a MultiPageEditorPart
Turning an EditorPart into a MultiPageEditorPart [message #224294] Thu, 08 April 2004 05:06 Go to next message
Eclipse UserFriend
Originally posted by: smallpocks.yahoo.com

Hey Guys,
I currently have an Editor that has a lot of working functionality and
development was going along quite smoothly. However, I have come to a point
where I need to use a MultiPageEditorPart instead of just my single page
editor (EditorPart). Does anyone have any help on converting from one to the
other? Is the best course to change my editor to extend MultiPageEditorPart
? Or should I have a new class that extends MultiPageEditorPart and then
uses my old editor in some way? If the answer is the former, what do I need
to put in the createPages() method to make my program function correctly?
Any help would be greatly appreciated!
Thanks
Guy
Re: Turning an EditorPart into a MultiPageEditorPart [message #224575 is a reply to message #224294] Thu, 08 April 2004 14:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paull.NOSPAMcodetelligence.com

Create a new MultiPageEditorPart. In the createPages method create a page
with your existing editor and the other pages based on what you need.

Paul
www.codetelligence.com
"Guy Beckman" <smallpocks@yahoo.com> wrote in message
news:c52m0s$uhf$1@eclipse.org...
> Hey Guys,
> I currently have an Editor that has a lot of working functionality and
> development was going along quite smoothly. However, I have come to a
point
> where I need to use a MultiPageEditorPart instead of just my single page
> editor (EditorPart). Does anyone have any help on converting from one to
the
> other? Is the best course to change my editor to extend
MultiPageEditorPart
> ? Or should I have a new class that extends MultiPageEditorPart and then
> uses my old editor in some way? If the answer is the former, what do I
need
> to put in the createPages() method to make my program function correctly?
> Any help would be greatly appreciated!
> Thanks
> Guy
>
>
Re: Turning an EditorPart into a MultiPageEditorPart [message #224665 is a reply to message #224575] Thu, 08 April 2004 16:22 Go to previous messageGo to next message
Jean-Christophe Deprez is currently offline Jean-Christophe DeprezFriend
Messages: 133
Registered: July 2009
Senior Member
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 4/8/2004, 7:12:20 AM, "Paul L" <paull@NOSPAMcodetelligence.com> wrote
regarding Re: Turning an EditorPart into a MultiPageEditorPart:


> Create a new MultiPageEditorPart. In the createPages method create a page
> with your existing editor and the other pages based on what you need.

I did this as well. Couple of things I came across along the way
o Be aware that there are assumptions that the selection provider
will be a MultiPageSelectionProvider. ( Think there is one
in MultiPageEditorSite. )

To deal with this I subclassed MultiPageSelectionProvider and
and made the subclass so that it could delegate to the
selection provider of the active editor page.

o You may want to make sure that your new MultiPageEditorPart
is adaptable to IGotoMarker. Without this double clicking
on markers on your resource type in the problems view will
get the file opened in the editor but not bring the correct
location into view.

-- Regards, Dan S

> Paul
> www.codetelligence.com
> "Guy Beckman" <smallpocks@yahoo.com> wrote in message
> news:c52m0s$uhf$1@eclipse.org...
> > Hey Guys,
> > I currently have an Editor that has a lot of working functionality and
> > development was going along quite smoothly. However, I have come to a
> point
> > where I need to use a MultiPageEditorPart instead of just my single page
> > editor (EditorPart). Does anyone have any help on converting from one to
> the
> > other? Is the best course to change my editor to extend
> MultiPageEditorPart
> > ? Or should I have a new class that extends MultiPageEditorPart and then
> > uses my old editor in some way? If the answer is the former, what do I
> need
> > to put in the createPages() method to make my program function correctly?
> > Any help would be greatly appreciated!
> > Thanks
> > Guy
> >
> >
Re: Turning an EditorPart into a MultiPageEditorPart [message #225550 is a reply to message #224665] Fri, 09 April 2004 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smallpocks.yahoo.com

Thanks a lot guys. I'll try it out and see how I do.


<nobody@nowhere.com> wrote in message
news:20040408.16224484@mis.configured.host...


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 4/8/2004, 7:12:20 AM, "Paul L" <paull@NOSPAMcodetelligence.com> wrote
regarding Re: Turning an EditorPart into a MultiPageEditorPart:


> Create a new MultiPageEditorPart. In the createPages method create a page
> with your existing editor and the other pages based on what you need.

I did this as well. Couple of things I came across along the way
o Be aware that there are assumptions that the selection provider
will be a MultiPageSelectionProvider. ( Think there is one
in MultiPageEditorSite. )

To deal with this I subclassed MultiPageSelectionProvider and
and made the subclass so that it could delegate to the
selection provider of the active editor page.

o You may want to make sure that your new MultiPageEditorPart
is adaptable to IGotoMarker. Without this double clicking
on markers on your resource type in the problems view will
get the file opened in the editor but not bring the correct
location into view.

-- Regards, Dan S

> Paul
> www.codetelligence.com
> "Guy Beckman" <smallpocks@yahoo.com> wrote in message
> news:c52m0s$uhf$1@eclipse.org...
> > Hey Guys,
> > I currently have an Editor that has a lot of working functionality and
> > development was going along quite smoothly. However, I have come to a
> point
> > where I need to use a MultiPageEditorPart instead of just my single page
> > editor (EditorPart). Does anyone have any help on converting from one to
> the
> > other? Is the best course to change my editor to extend
> MultiPageEditorPart
> > ? Or should I have a new class that extends MultiPageEditorPart and then
> > uses my old editor in some way? If the answer is the former, what do I
> need
> > to put in the createPages() method to make my program function
correctly?
> > Any help would be greatly appreciated!
> > Thanks
> > Guy
> >
> >
Re: Turning an EditorPart into a MultiPageEditorPart [message #225594 is a reply to message #224665] Fri, 09 April 2004 22:18 Go to previous message
Eclipse UserFriend
Originally posted by: smallpocks.yahoo.com

Well I do seem to be running into a few problems.

If my original editor had an ActionBarContributer and now I have a multipage
editor, do I have to make the ActionBarContributer a
MultiPageEditorActionBarContributor? And if so, how do I do that, since
everything seemed to be working inside my single page editor.
Thanks


<nobody@nowhere.com> wrote in message
news:20040408.16224484@mis.configured.host...


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 4/8/2004, 7:12:20 AM, "Paul L" <paull@NOSPAMcodetelligence.com> wrote
regarding Re: Turning an EditorPart into a MultiPageEditorPart:


> Create a new MultiPageEditorPart. In the createPages method create a page
> with your existing editor and the other pages based on what you need.

I did this as well. Couple of things I came across along the way
o Be aware that there are assumptions that the selection provider
will be a MultiPageSelectionProvider. ( Think there is one
in MultiPageEditorSite. )

To deal with this I subclassed MultiPageSelectionProvider and
and made the subclass so that it could delegate to the
selection provider of the active editor page.

o You may want to make sure that your new MultiPageEditorPart
is adaptable to IGotoMarker. Without this double clicking
on markers on your resource type in the problems view will
get the file opened in the editor but not bring the correct
location into view.

-- Regards, Dan S

> Paul
> www.codetelligence.com
> "Guy Beckman" <smallpocks@yahoo.com> wrote in message
> news:c52m0s$uhf$1@eclipse.org...
> > Hey Guys,
> > I currently have an Editor that has a lot of working functionality and
> > development was going along quite smoothly. However, I have come to a
> point
> > where I need to use a MultiPageEditorPart instead of just my single page
> > editor (EditorPart). Does anyone have any help on converting from one to
> the
> > other? Is the best course to change my editor to extend
> MultiPageEditorPart
> > ? Or should I have a new class that extends MultiPageEditorPart and then
> > uses my old editor in some way? If the answer is the former, what do I
> need
> > to put in the createPages() method to make my program function
correctly?
> > Any help would be greatly appreciated!
> > Thanks
> > Guy
> >
> >
Previous Topic:Where do i post CVS question
Next Topic:M8 feature.xml editor
Goto Forum:
  


Current Time: Thu Apr 25 01:03:36 GMT 2024

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

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

Back to the top