Adapting XmlMultiPageEditorPart [message #177049] |
Tue, 15 August 2006 10:37  |
Eclipse User |
|
|
|
Hi,
I am having problems adapting the XmlMultiPageEditorPart. It will only
allow me to adapt the textEditor contained within it. If you look at the
code in XmlMultiPageEditorPart.getAdapter(class), it does not follow the
contract given in IWorkbenchPart.getAdapter(Class):
/**
*Subclasses may override this method (however, if they do so, they should
*invoke the method on their superclass to ensure that the Platform's
adapter *manager is consulted).
**/
Any clues as to why this is not done for XmlMultiPageEditorPart? If I
later ask for IWorkbenchPage.getActivePart() I am returned the
XmlMultiPageEditorPart. How would I determine whether the TextEditor is
the active part?
thanks,
Karen
|
|
|
|
Re: Adapting XmlMultiPageEditorPart [message #177435 is a reply to message #177427] |
Fri, 18 August 2006 11:42  |
Eclipse User |
|
|
|
Trying again:
Hi,
I am having problems adapting the XmlMultiPageEditorPart. It will only
allow me to adapt the textEditor contained within it. If you look at the
code in XmlMultiPageEditorPart.getAdapter(class), it does not follow the
contract given in IWorkbenchPart.getAdapter(Class):
/**
*Subclasses may override this method (however, if they do so, they should
*invoke the method on their superclass to ensure that the Platform's
adapter *manager is consulted).
**/
Any clues as to why this is not done for XmlMultiPageEditorPart? If I
later ask for IWorkbenchPage.getActivePart() I am returned the
XmlMultiPageEditorPart. How would I determine whether the TextEditor is
the active part?
thanks,
Karen
|
|
|
Powered by
FUDForum. Page generated in 0.03696 seconds