Bug 567627 - Provide API to embed the Generic Text Editor in a MultiPage Editor
Summary: Provide API to embed the Generic Text Editor in a MultiPage Editor
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.18   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-06 05:31 EDT by Aurelien Pupier CLA
Modified: 2020-10-07 03:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Pupier CLA 2020-10-06 05:31:11 EDT
unless I missed something, to embed an editor in the Multipage editor, you need to instantiate it. The org.eclipse.ui.internal.genericeditor.ExtensionBasedTextEditor.ExtensionBasedTextEditor() is unfortunately part of internal API.

It is already used in m2e for the MavenPomEditor for instance https://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/MavenPomEditor.java#n337

it would be nice to have an API o create the editor in order to embed in a multipage editor. Either by making the class part of public API or by providing a specific method.