Turning an EditorPart into a MultiPageEditorPart [message #224294] |
Thu, 08 April 2004 05:06 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #225550 is a reply to message #224665] |
Fri, 09 April 2004 20:53 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03363 seconds