thanks
!
I just
did as you said
The
problem is that , although the getAdapter method get invoked again, but
the platform will not get adaptor from the editor, it has register the adapter
in its own factory, the reason is that , the active editor is the parent editor
and not it's child, so platfom will not invoke the getAdapter method again.
I
think if there is some methods to modify the adapter factory which register
the adapter, or make the child editor current active editor , but I have
not find the method:(
The GEF gurus can
correct me if I am wrong but try this.
In the
GetAdapter(Class adapter) method of your editor part, when you encounter the
IContentOutlinePage.class, in your implementation method return the contents
of the current editor part. When the new editor part gets activated, the
GetAdapter method will get invoked again, hence you can return the new outline
page for this editor part. Keep in mind, you need two derived classes
that extend Page and implement the IContentOutlinePage
interface.
Regards,
Harsh
From:
gef-dev-bounces@xxxxxxxxxxx [mailto:gef-dev-bounces@xxxxxxxxxxx] On Behalf Of LiuJF Sent: Thursday, May 26, 2005 5:56
AM To:
gef-dev@xxxxxxxxxxx Subject:
[gef-dev] help about multipageEditor and
outlinepage
I am making a
multipageEditorPart, and it has two child editor, each one has it's own
outlinepage
How can I
do to get the result
that:
when I choose a
child editor, outlineviewer
can show the correct outLinePage.
I found that ,
the platform register the adapter at the first time , it will not change
again,
|