Bug 23431 - Unable to instantiate a CompilationUnitEditor inside a MulitPageEditor.
Summary: Unable to instantiate a CompilationUnitEditor inside a MulitPageEditor.
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-11 15:12 EDT by David J. Orme CLA
Modified: 2006-11-17 10:45 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David J. Orme CLA 2002-09-11 15:12:14 EDT
CompilationUnitEditor is marked as Internal api so its mostly undocumented and
I'm not allowed to instantiate it directly.  However, if a plugin writer has the
need/desire to put the Java editor inside a MultiPageEditor (for example in a
Java code documentation plugin), it is necessary to create an instance of
CompilationUnitEditor as a page of the MultiPageEditor.

I think either of the following would resolve the issue (there may be other
resolutions I haven't thought of):

1) CompilationUnitEditor to be minimally documented--enough so it can be
instantiated in another plugin.

2) A JavaMultiPageEditor component that isn't internal API but that uses
CompilationUnitEditor could be published.  Then I could use non-internal API and
get what I want while CompilationUnitEditor could remain internal.
Comment 1 Kai-Uwe Maetzel CLA 2002-09-12 13:49:24 EDT
There will be improvements as part of the code moves to Platform Text, but the 
rest is rather unlikely to happen.
Comment 2 David J. Orme CLA 2002-09-12 16:22:28 EDT
>>There will be improvements as part of the code moves to Platform Text, but 
the rest is rather unlikely to happen.<<

I'm not sure I understand this.  Are you saying that enough of the API will be 
moved to Platform Text that I will be able to do what I need to do?

Thanks,

Dave