[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: 答复: [gef-dev] help about multipageEditor and outlinepage
|
Please take this discussion to the newsgroup.
Your questions have already been answered a few times on there, so
search for it. In the future, keep in mind that the mailing list
is not the right place to ask such questions. Refer to these guidelines:
http://www.eclipse.org/mail/main.html
Pratik Shah
Graphical Editing Framework (GEF)
http://www.eclipse.org/gef
Ph: (919) 254-5043
Fx: (919) 254-8169
LiuJF <liu-jf@xxxxxxxxxxx>
Sent by: gef-dev-bounces@xxxxxxxxxxx
05/27/2005 02:46 AM
Please respond to
liu-jf and GEF development |
|
To
| "Sabikhi, Harsh"
<harsh@xxxxxx>, GEF development <gef-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| 答复: [gef-dev] help about
multipageEditor and outlinepage |
|
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:(
-----原始邮件-----
发件人: Sabikhi, Harsh [mailto:harsh@xxxxxx]
发送时间: 2005年5月26日 21:15
收件人: liu-jf@xxxxxxxxxxx; GEF development
主题: RE: [gef-dev] help about multipageEditor and outlinepage
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,
how can I
do?
thanks for any helps!_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/gef-dev